使用其他旅行模式的Google地图方向XML或JSON
我试图获得除驾驶以外的其他行驶方式的指示,但是api似乎并不尊重dirflg参数。
http://maps.googleapis.com/maps/api/directions/json?origin=111%20Davisville%20Avenue,Toronto,ON&destination=469%20King%20Street%20West,%20Toronto,%20ON&sensor=false&dirflg=w
谁能告诉我什么是正确的url? 先谢谢你。
参数是mode,如mode = walking: http : //maps.googleapis.com/maps/api/directions/json?origin =111% 20Davisville%20Avenue,Toronto,ON&destination =469% 20King%20Street%20West,% 20Toronto,%20ON&传感器=假模式=行走