开发者

W3C Geolocation API Places Database

开发者 https://www.devze.com 2023-03-15 07:38 出处:网络
Can i get the exact name of a place by providing the latitude and longitudes of a pl开发者_如何转开发ace or do i have to build a database of places based on their longitudes and latitudes first?.you c

Can i get the exact name of a place by providing the latitude and longitudes of a pl开发者_如何转开发ace or do i have to build a database of places based on their longitudes and latitudes first?.


you can use Google's Geocoding API.

By doing Reverse Geocoding (Address Lookup):

for example make a request for: http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452

check http://code.google.com/apis/maps/documentation/geocoding/.

Cheers


Google Maps API can provide detailed information for a location, see http://code.google.com/intl/en/apis/maps/documentation/geocoding/. Example: https://maps.googleapis.com/maps/api/geocode/json?latlng=37.423021,-122.083739&sensor=false

0

精彩评论

暂无评论...
验证码 换一张
取 消