문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top