0
我試圖獲取google地圖api地址的經度和緯度,但我不知道該怎麼做呢?這是一個例子, m試試:谷歌地圖API無法獲取經度
GoogleObjectAdress("New york") -> and it should return the longitude and latitude for me!
任何解決方案?
我試圖獲取google地圖api地址的經度和緯度,但我不知道該怎麼做呢?這是一個例子, m試試:谷歌地圖API無法獲取經度
GoogleObjectAdress("New york") -> and it should return the longitude and latitude for me!
任何解決方案?
試試下面的代碼:
<script src="http://maps.google.com/maps?file=api&v=2.x&key=YourApiKey"
type="text/javascript"></script>
var geocoder = new GClientGeocoder();
geocoder.getLatLng("New York", function(point) {
//code
});
欲瞭解更多信息,請閱讀documentation。