1

我得到谷歌地图的 json 为:

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

谷歌返回结果:

 "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 数据?

4

1 回答 1

7

只需添加语言参数..

..&language=ja

您的示例电话在这里,文档在这里

于 2012-10-10T08:19:18.103 回答