Frage

I have stored the location for different interesting places in my database. Now I have been trying to implement a button to "Show nearby places" (50km range).

I was wondering how to find the neighboring places within a given range from a selected location. I have taken a look at the GeoCoder class but I could not figure out how to do it.

War es hilfreich?

Lösung

For anyone interested, I ended up using PostreSQL and an extension called PostGIS. Places are saved to the database with a PostGIS geography special type column and geo calculations are then made using that data and the user's current location.

It seems to work just fine.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top