-1
嗯,我有一个使用Google Direction API的小应用程序。 如果我想2个地点之间获取路线我只是使用不便,如:通过Google Direction的API获取只有方向时间
https://maps.googleapis.com/maps/api/directions/json?origin=Moscow&destination=Perm&key=<My Key>
所以我会非常,非常长且重的JSON有详细的程序。 但有时我只需要旅行的时候,我可以很容易地执行它:
"legs" : [
{
"distance" : {
"text" : "1 443 км",
"value" : 1442738
},
"duration" : {
"text" : "18 ч. 3 мин.",
"value" : 64963 // this is travel time in seconds
},
所以我并不需要其他的数据(!这是非常大的。如果我用手机上网将花费很多时间来加载它) 。 所以我有一个问题:是否有任何API函数可以给我只有主要数据没有常规步骤?
在此先感谢