I am trying to implement a user system, one of the system requirements is find other users that are near you.
Location will be filtered by countries but not by cities, so users can get other users from the same country but from different city.
The question is how to calculate distances between cities? It doesn't have to be 100% accurate but it have to give some priority for closer users.
Will Google Geo location API will satisfy those requirements? What are the alternatives?
Any idea how to implement it without a very heavy calculation?
I thought of asking the user it's country and city just for writing in his profile, and get it's geo location from it's IP OR import a database which contains all cities and their geo location.
Please direct me.