How to find nearest location using latitude and longitude from SQL database?

前端 未结 7 1434
离开以前
离开以前 2020-11-30 17:41

I want to find a nearest location from following database table

Address                            Latitude                longitude 

Kathmandu 44600, Nepal          


        
7条回答
  •  萌比男神i
    2020-11-30 17:49

    To find the nearby location , you can use the Geocoder Class.Since you have the Geopoints(latitude and longitude), Reverse geocoding can be used. Reverse Geocoding is the process of transforming a (latitude, longitude) coordinate into a (partial) address. Check out this for more information.

提交回复
热议问题