如何在谷歌地图api的Json中设置语言?

mum*_*mum 0 android google-maps

我得到谷歌地图的json:

http://maps.googleapis.com/maps/api/directions/json?origin=34.431741,135.392299&destination=34.631741,135.992299&sensor=false
Run Code Online (Sandbox Code Playgroud)

谷歌回归的结果:

 "legs" : [
            {
               "distance" : {
                  "text" : "79,8 km",
                  "value" : 79756
               },
               "duration" : {
                  "text" : "1 gi? 20 phút",
                  "value" : 4818
               },
               "end_address" : "Meihan National Hwy, Nara 632-0102, Nh?t B?n",
               "end_location" : {
                  "lat" : 34.630910,
                  "lng" : 135.992630
               },
               "start_address" : "Nh?t B?n ?sakaKishiwadaNagaregicho, ?????",
               "start_location" : {
                  "lat" : 34.431530,
                  "lng" : 135.392670
               },
....
...
Run Code Online (Sandbox Code Playgroud)

如何以日语获取JSON数据?

Mic*_*uda 6

只需添加语言参数..

..&language=ja
Run Code Online (Sandbox Code Playgroud)

你调用示例这里,文档在这里.