2
的地址URL:如何在源地圖和目的地緯度點之間傳遞路標,並且在Google地圖中路徑的長度以kml爲長度?
http://maps.googleapis.com/maps/api/directions/json?origin=Chicago,IL&destination=Los+Angeles,CA&waypoints=Joplin,MO|Oklahoma+City,OK&sensor=false
在這個網址betwn源和目標
我們可以通過航點 但如何我可以通過航點爲KML網址
http://maps.google.com/maps?f=d&hl=en&saddr=9.036597,77.536&daddr=8.919942,77.669208&ie=UTF8&0&om=0&output=kml
我已經試過這樣
http://maps.google.com/maps?f=d&hl=en&saddr=9.157283,77.544239&daddr=9.035239,77.784564&waypoints=9.036597,77.536|8.919942,77.669208&sensor=false&ie=UTF8&0&om=0&output=kml
但它沒有工作,所以我怎麼能通過航點多個經緯度之間源和目的地?
這篇文章可以幫助你解決你的問題。 [http://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo/11745316#11745316][1] [1]:http://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo/11745316# 11745316 – 2012-10-12 14:10:16
@ girishce26你解決了這個問題嗎? – Noundla 2013-07-12 08:31:34