Finding nearest street given a lat-long location

半城伤御伤魂 提交于 2019-11-30 09:39:36
Mathias Schwarz

You can use the Google Maps Geocoding API which does exactly that: https://developers.google.com/maps/documentation/geocoding/intro

Take a look at the "Reverse Geocoding" section.

Google maps api provides reverse Geocoding api, you need to pass lat and long values to get address

http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false

Check this http://code.google.com/apis/maps/documentation/geocoding/#JSON

Jonatas Walker

Much simpler with OSRM (nearest) webservice. Look at my answer here:

https://stackoverflow.com/a/30403046/4640499

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!