1 打開 http://ditu.google.com/maps
2 找到你要獲得坐標的地點, 指着那個位置,鼠標右鍵,定位到中心,則自動居中
3 在瀏覽器欄輸入
1 |
javascript:void(prompt( '' ,gApplication.getMap().getCenter())); |
4 回車
方法二:通過地址http://maps.google.com/maps?獲取坐標,后面接的參數如下:
q 需要進行地址解析的地址
key 申請到的API密鑰
output 生成的輸出應有的格式,選項有xml,kml,csv或json.
另類方法:http://maps.google.com/maps?f=q&geocode=&q="+你要查找的位置+"&output=js