Guest User

GoogleMapsAPIJsonExampleForPgJsonParsing

a guest
Dec 31st, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.16 KB | None | 0 0
  1. {
  2.    "geocoded_waypoints" : [
  3.       {
  4.          "geocoder_status" : "OK",
  5.          "place_id" : "ChIJ-eJnqhzyLogRgq7G9yJZ29M",
  6.          "types" : [ "establishment", "point_of_interest" ]
  7.       },
  8.       {
  9.          "geocoder_status" : "OK",
  10.          "place_id" : "ChIJnzYKB_HtLogRFxXNEFRdcGs",
  11.          "types" : [
  12.             "bar",
  13.             "bowling_alley",
  14.             "establishment",
  15.             "food",
  16.             "point_of_interest",
  17.             "restaurant"
  18.          ]
  19.       }
  20.    ],
  21.    "routes" : [
  22.       {
  23.          "bounds" : {
  24.             "northeast" : {
  25.                "lat" : 43.0007463,
  26.                "lng" : -81.2310954
  27.             },
  28.             "southwest" : {
  29.                "lat" : 42.9839597,
  30.                "lng" : -81.2438823
  31.             }
  32.          },
  33.          "copyrights" : "Map data ©2018 Google",
  34.          "legs" : [
  35.             {
  36.                "distance" : {
  37.                   "text" : "2.7 km",
  38.                   "value" : 2678
  39.                },
  40.                "duration" : {
  41.                   "text" : "6 mins",
  42.                   "value" : 362
  43.                },
  44.                "end_address" : "777 Adelaide St N, London, ON N5Y 2L8, Canada",
  45.                "end_location" : {
  46.                   "lat" : 43.0007463,
  47.                   "lng" : -81.23745529999999
  48.                },
  49.                "start_address" : "291 King St #715, London, ON N6B 1R8, Canada",
  50.                "start_location" : {
  51.                   "lat" : 42.9839597,
  52.                   "lng" : -81.2438823
  53.                },
  54.                "steps" : [
  55.                   {
  56.                      "distance" : {
  57.                         "text" : "1.1 km",
  58.                         "value" : 1061
  59.                      },
  60.                      "duration" : {
  61.                         "text" : "2 mins",
  62.                         "value" : 130
  63.                      },
  64.                      "end_location" : {
  65.                         "lat" : 42.9873227,
  66.                         "lng" : -81.2316826
  67.                      },
  68.                      "html_instructions" : "Head \u003cb\u003eeast\u003c/b\u003e on \u003cb\u003eKing St E\u003c/b\u003e towards \u003cb\u003eWaterloo St\u003c/b\u003e",
  69.                      "polyline" : {
  70.                         "points" : "whjeGf}znNoBkKyCoPcA_Gc@gCYgBUiAO}@cCaN}AeIKk@"
  71.                      },
  72.                      "start_location" : {
  73.                         "lat" : 42.9839597,
  74.                         "lng" : -81.2438823
  75.                      },
  76.                      "travel_mode" : "DRIVING"
  77.                   },
  78.                   {
  79.                      "distance" : {
  80.                         "text" : "1.6 km",
  81.                         "value" : 1617
  82.                      },
  83.                      "duration" : {
  84.                         "text" : "4 mins",
  85.                         "value" : 232
  86.                      },
  87.                      "end_location" : {
  88.                         "lat" : 43.0007463,
  89.                         "lng" : -81.23745529999999
  90.                      },
  91.                      "html_instructions" : "Turn \u003cb\u003eleft\u003c/b\u003e onto \u003cb\u003eAdelaide St N\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eDestination will be on the left\u003c/div\u003e",
  92.                      "maneuver" : "turn-left",
  93.                      "polyline" : {
  94.                         "points" : "w}jeG~pxnNYyAGYU?[Bi@FWDSFMBaCt@IPcA^sAh@kAb@{DzAaA`@{Bz@yClAa@NyCjAeA`@uChAi@TYLy@^yAp@EBGBwAh@{Al@IDQFy@ZyFpBuAl@eA`@QHw@ZgBp@q@XQFm@V"
  95.                      },
  96.                      "start_location" : {
  97.                         "lat" : 42.9873227,
  98.                         "lng" : -81.2316826
  99.                      },
  100.                      "travel_mode" : "DRIVING"
  101.                   }
  102.                ],
  103.                "traffic_speed_entry" : [],
  104.                "via_waypoint" : []
  105.             }
  106.          ],
  107.          "overview_polyline" : {
  108.             "points" : "whjeGf}znNiG{\\gBgKcEqUkCeNq@BaALa@JaCt@IPwChAgG~ByJzD_LlEsDbBeE`BkAb@yFpBuAl@wAj@_DlAqBx@"
  109.          },
  110.          "summary" : "King St E and Adelaide St N",
  111.          "warnings" : [],
  112.          "waypoint_order" : []
  113.       }
  114.    ],
  115.    "status" : "OK"
  116. }
Add Comment
Please, Sign In to add comment