[問題] (緯度,經度)怎樣可以個別存成一個變數呢?

看板Google作者 (我的生命因你而發光)時間15年前 (2008/08/30 08:44), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
function showAddress(address,dec) { if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " not found"); } else { alert(point) //顯示(25,31) } } } } point會是(25,31),好像有包含括號 不知道有辦法各別取其緯度和經度存成變數嗎? 例如: Lat=25 Lng=31 不知道這樣該怎樣寫呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.176.104

08/30 09:15, , 1F
lat = point.lat(); lng = point.lng();
08/30 09:15, 1F
文章代碼(AID): #18k9VzRx (Google)