andyshon

google maps api direction response

Oct 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.61 KB | None | 0 0
  1.                                       "geocoded_waypoints" : [
  2.                                          {
  3.                                             "geocoder_status" : "OK",
  4.                                             "place_id" : "ChIJ-6PfBkw4zDERZjDiZn995Z0",
  5.                                             "types" : [ "street_address" ]
  6.                                          },
  7.                                          {
  8.                                             "geocoder_status" : "OK",
  9.                                             "place_id" : "ChIJmaY7eEs4zDERo771BipHhR8",
  10.                                             "types" : [ "street_address" ]
  11.                                          }
  12.                                       ],
  13.                                       "routes" : [
  14.                                          {
  15.                                             "bounds" : {
  16.                                                "northeast" : {
  17.                                                   "lat" : 3.2147219,
  18.                                                   "lng" : 101.7496975
  19.                                                },
  20.                                                "southwest" : {
  21.                                                   "lat" : 3.2145128,
  22.                                                   "lng" : 101.7470464
  23.                                                }
  24.                                             },
  25.                                             "copyrights" : "Map data ©2018 Google",
  26.                                             "legs" : [
  27.                                                {
  28.                                                   "distance" : {
  29.                                                      "text" : "0.3 km",
  30.                                                      "value" : 295
  31.                                                   },
  32.                                                   "duration" : {
  33.                                                      "text" : "1 min",
  34.                                                      "value" : 31
  35.                                                   },
  36.                                                   "end_address" : "298, Jalan B 8, Taman Melawati, 53100 Kuala Lumpur, Selangor, Malaysia",
  37.                                                   "end_location" : {
  38.                                                      "lat" : 3.2145128,
  39.                                                      "lng" : 101.7496975
  40.                                                   },
  41.                                                   "start_address" : "106, Jalan A 3, Taman Melawati, 53100 Kuala Lumpur, Selangor, Malaysia",
  42.                                                   "start_location" : {
  43.                                                      "lat" : 3.2147219,
  44.                                                      "lng" : 101.7470464
  45.                                                   },
  46.                                                   "steps" : [
  47.                                                      {
  48.                                                         "distance" : {
  49.                                                            "text" : "0.3 km",
  50.                                                            "value" : 295
  51.                                                         },
  52.                                                         "duration" : {
  53.                                                            "text" : "1 min",
  54.                                                            "value" : 31
  55.                                                         },
  56.                                                         "end_location" : {
  57.                                                            "lat" : 3.2145128,
  58.                                                            "lng" : 101.7496975
  59.                                                         },
  60.                                                         "html_instructions" : "Head \u003cb\u003eeast\u003c/b\u003e on \u003cb\u003eJalan Melawati 2\u003c/b\u003e toward \u003cb\u003eJalan A 1\u003c/b\u003e",
  61.                                                         "polyline" : {
  62.                                                            "points" : "_{rRan_lR?QBc@N}EPiEBs@"
  63.                                                         },
  64.                                                         "start_location" : {
  65.                                                            "lat" : 3.2147219,
  66.                                                            "lng" : 101.7470464
  67.                                                         },
  68.                                                         "travel_mode" : "DRIVING"
  69.                                                      }
  70.                                                   ],
  71.                                                   "traffic_speed_entry" : [],
  72.                                                   "via_waypoint" : []
  73.                                                }
  74.                                             ],
  75.                                             "overview_polyline" : {
  76.                                                "points" : "_{rRan_lRh@qO"
  77.                                             },
  78.                                             "summary" : "Jalan Melawati 2",
  79.                                             "warnings" : [],
  80.                                             "waypoint_order" : []
  81.                                          }
  82.                                       ],
  83.                                       "status" : "OK"
  84.                                    }
Add Comment
Please, Sign In to add comment