I am just starting a project on google map.
i am using below link to get user current location
Click Here
how can i find other nearby users / places based on current lat , long?
any suggestion help me a lot. thanks

Recommended Answers

All 2 Replies

Check this link:

In practice you have to save the current position for each user and calculate the distance through a database query.

Note MySQL supports spatial indexes only with MyISAM and InnoDB engines, the latter since 5.7.5. But you may want to consider PostGIS also.

thanx for your reply. it helped me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.