问题描述
如何将地址或城市转换为纬度/经度?我可以从中租借"该服务的商业机构吗?它将用于具有全时Internet访问权限的Windows PC上的商用台式机应用程序中.
How would I go about converting an address or city to a latitude/longitude? Are there commercial outfits I can "rent" this service from? This would be used in a commercial desktop application on a Windows PC with fulltime internet access.
推荐答案
Google有一个地理编码API,对于他们拥有Google Maps数据的大多数位置来说,它似乎都可以很好地工作.
Google has a geocoding API which seems to work pretty well for most of the locations that they have Google Maps data for.
http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html
它们提供在线地理编码(通过JavaScript):
They provide online geocoding (via JavaScript):
http://code.google.com/apis/maps/documentation/services.html#Geocoding
或后端地理编码(通过HTTP请求):
Or backend geocoding (via an HTTP request):
http://code.google.com/apis/maps/documentation/services.html#Geocoding_Direct
数据通常与Google Maps本身使用的数据相同. (请注意,有一些例外,例如英国或以色列,它们的数据来自其他来源且质量略有降低)
The data is usually the same used by Google Maps itself. (note that there are some exceptions to this, such as the UK or Israel, where the data is from a different source and of slightly reduced quality)
这篇关于如何将地址转换为纬度/经度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!