Groups
Groups
Sign in
Groups
Groups
谷歌地图 API 论坛
Conversations
About
Send feedback
Help
如何添加“逆地理编码”功能,就是说根据经纬度得到实际地址
404 views
Skip to first unread message
Jemy
unread,
Nov 6, 2008, 12:19:58 AM
11/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google 地图 API 讨论组
请教达人:如何利用Google Map API在地图上添加“逆地理编码”和“地理编码”的功能?
“逆地理编码”:根据经纬度信息得到地址信息,比如“E120.2398 N37.23983”得到“中国南阳河清县”
万分感谢,有例子更好
Phinix
unread,
Nov 6, 2008, 1:12:01 AM
11/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google 地图 API 讨论组
使用GClientGeocoder就可以了
简单的说,使用GClientGeocoder.getLocations(query, callback)就可以了,是地址解码还是反向解码由
query决定
这个API的使用需要注意谷歌对每天次数的限制,每天不能超过1.5万次,因为这种服务的服务端代价很大。
可以看看这里的文档说明
http://code.google.com/intl/zh-CN/apis/maps/documentation/services.html#Geocoding
类的详细参考在这里
http://code.google.com/apis/maps/documentation/reference.html#GClientGeocoder
Jemy
unread,
Nov 12, 2008, 2:25:47 AM
11/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google 地图 API 讨论组
这种方式得到的地址只能到某个区或某个县,怎么没有再详细的了,假如我要做一个实时监控的web系统,我数据库里有需要监控车辆的经纬度,但还是得不到
它的详细地址,都不知道它在某个具体位置
On Nov 6, 2:12 pm, Phinix <
phinix.c...@gmail.com
> wrote:
> 使用GClientGeocoder就可以了
> 简单的说,使用GClientGeocoder.getLocations(query, callback)就可以了,是地址解码还是反向解码由
> query决定
> 这个API的使用需要注意谷歌对每天次数的限制,每天不能超过1.5万次,因为这种服务的服务端代价很大。
>
> 可以看看这里的文档说明
http://code.google.com/intl/zh-CN/apis/maps/documentation/services.ht.
..
> 类的详细参考在这里
http://code.google.com/apis/maps/documentation/reference.html#GClient.
..
Phinix Chen
unread,
Nov 12, 2008, 2:50:52 AM
11/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google-Map...@googlegroups.com
这个结果和实际的数据以及你在什么位置解析也有关系,如果在北京等数据比较丰富的地方解析的精度就比较高,可以详细到街道和门牌号,在中小城市或者乡村可能就要粗略一些,反向地址解析就没有直接的地址解析精度高。你现在拿这个来做实时的监控有点困难吧,估计每天的geocode的请求数量要超标的,谷歌地图有企业版,不知道中国支不支持
2008/11/12 Jemy
<
jemy...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages