我正在尝试制作解析可能地址的文本并将其转换为Google地图链接的内容.对于Google地图将作为查询接受的最常规地址格式,是否有任何参考?看起来像是他们想要公开的东西,但我在文档中找不到任何东西.
You should give a look at Google Static Maps API.
Addresses
Most people don't speak in latitudes and longitudes; they denote locations using addresses. The process of turning an address into a geographic point is known as geocoding and the Static Maps service can perform geocoding for you if you provide valid addresses.
在您可以提供纬度/经度的任何参数中,您可以改为指定表示地址的字符串.Google会对地址进行地理编码,并为静态地图服务提供纬度/经度值,以用于放置标记或指定位置.该字符串应该是URL转义的,因此例如"City Hall,New York,NY"等地址应转换为"City + Hall,New + York,NY".
Note that addresses may reflect either precise locations, such as street addresses, polylines such as named routes, or polygonal areas such as cities, countries, or national parks. For polylinear and polygonal results, the Static Map server will use the center point of the line/area as the address center. If you have doubt about how an address may geocode, you can test out the address using this Geocoding Utility.
The following example generates a static map for Berkeley, CA:
Run Code Online (Sandbox Code Playgroud)http://maps.google.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false
Resources :
归档时间: |
|
查看次数: |
4554 次 |
最近记录: |