我在NOKIA 6800瀏覽器上使用「google本地」 搜索結果頁面有鏈接「在地圖上查看?」 點擊它啓動Google地圖應用程序,並以搜索結果的位置 爲中心的地圖。從移動瀏覽器啓動谷歌地圖
怎麼做? Javascript?我見過類似的行爲在iPhone
我在NOKIA 6800瀏覽器上使用「google本地」 搜索結果頁面有鏈接「在地圖上查看?」 點擊它啓動Google地圖應用程序,並以搜索結果的位置 爲中心的地圖。從移動瀏覽器啓動谷歌地圖
怎麼做? Javascript?我見過類似的行爲在iPhone
對於靜態地圖,你可以使用:
http://maps.google.com/maps/api/staticmap?center=kerstendalseweg%2017,berg%20en%20dal,%20nederland&zoom=14&size=400x400&sensor=false
裹在一個HTML頁面中使用的錨:
<a href="http://maps.google.com/maps/api/staticmap?center=kerstendalseweg%2017,berg%20en%20dal,%20nederland&zoom=14&size=400x400&sensor=false">Go to Vette BSO</a>
對於開始導航我用這個(帶啓動EN目的地址)
<a href="http://maps.google.com/maps?saddr=kerstendalseweg 17, berg en dal, nederland&daddr=51.8285781,5.9287059">Go to Vette BSO</a>
從google maps API docs: 您還可以輕鬆鏈接到Google地圖以獲取行車路線。我們建議您在Google地圖上使用以下格式的行車路線:
http://maps.google.com/maps?saddr={start_address}&daddr={destination_address}
這取決於您使用的手機。
在Android上,您可以在網址中使用http://maps.google.com/maps?
前綴或geo:lat,long?
前綴。 Invoking Google Applications on Android Devices
在iPhone上,你可以使用comgooglemaps://?
前綴: Google Maps iOS URL Scheme
爲了檢測移動設備類型使用下面的Java腳本(這一個檢測iPhone或iPad):
if ((userAgent.indexOf('iPhone') != -1) || (userAgent.indexOf('iPad') != -1))
window.location = "comgooglemaps://?saddr=london&daddr=manchester"
這是我尋找。謝謝! – rpax 2014-08-25 17:20:30