小编Bre*_*ode的帖子

在Android中与Google Direction API保持距离

http://maps.googleapis.com/maps/api/directions/json?origin=-20.291825,57.448668&destination=-20.179724,57.613463&sensor=false&mode=%22DRIVING%22

例如,此链接生成以下内容:

"routes" : [
      {
         "bounds" : {
            "northeast" : {
               "lat" : -20.1765204,
               "lng" : 57.6137001
            },
           "southwest" : {
               "lat" : -20.2921672,
               "lng" : 57.4472155
            }
         },
         "copyrights" : "Map data ©2014 Google",
         "legs" : [
            {
               "distance" : {
                  "text" : "24.6 km",
                  "value" : 24628
               },
Run Code Online (Sandbox Code Playgroud)

我想只提取距离并在android中显示它

android distance google-directions-api

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

distance ×1

google-directions-api ×1