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

时间:2012-10-10 08:15:18

标签: android google-maps

我得到谷歌地图的json:

http://maps.googleapis.com/maps/api/directions/json?origin=34.431741,135.392299&destination=34.631741,135.992299&sensor=false

google return的结果:

 "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, 396−3",
               "start_location" : {
                  "lat" : 34.431530,
                  "lng" : 135.392670
               },
....
...

如何以日语获取JSON数据?

1 个答案:

答案 0 :(得分:6)

只需添加语言参数..

..&language=ja

您的示例电话here,文档here