标签: ios google-maps directions
我正在尝试获取除驾驶之外的旅行模式的指示,但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
谁能告诉我正确的网址是什么?提前谢谢。
答案 0 :(得分:2)
参数是模式,如在mode = walking中: http://maps.googleapis.com/maps/api/directions/json?origin=111%20Davisville%20Avenue,Toronto,ON&destination=469%20King%20Street%20West,%20Toronto,%20ON&sensor=false&mode=walking