Skip to content

Instantly share code, notes, and snippets.

@rozkminiacz
Created February 23, 2018 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rozkminiacz/9873fafbc7385194443c331d278901e6 to your computer and use it in GitHub Desktop.
Save rozkminiacz/9873fafbc7385194443c331d278901e6 to your computer and use it in GitHub Desktop.
google directions api response
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "EilLcm93b2RlcnNrYSAxMC0xNCwgMzEtMTQxIEtyYWvDs3csIFBvbHNrYQ",
"types" : [ "street_address" ]
},
{
"geocoder_status" : "OK",
"place_id" : "EiNwbGFjIE5vd3kgNCwgMzMtMzMyIEtyYWvDs3csIFBvbHNrYQ",
"types" : [ "street_address" ]
}
],
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : 50.0678409,
"lng" : 19.9445666
},
"southwest" : {
"lat" : 50.0509129,
"lng" : 19.9324491
}
},
"copyrights" : "Dane do Mapy ©2018 Google",
"legs" : [
{
"distance" : {
"text" : "2,6 km",
"value" : 2650
},
"duration" : {
"text" : "33 min",
"value" : 1959
},
"end_address" : "plac Nowy 4, 33-332 Kraków, Polska",
"end_location" : {
"lat" : 50.0517861,
"lng" : 19.9444906
},
"start_address" : "Krowoderska 10-14, 31-141 Kraków, Polska",
"start_location" : {
"lat" : 50.06775349999999,
"lng" : 19.9375888
},
"steps" : [
{
"distance" : {
"text" : "11 m",
"value" : 11
},
"duration" : {
"text" : "1 min",
"value" : 8
},
"end_location" : {
"lat" : 50.0678409,
"lng" : 19.9375328
},
"html_instructions" : "Kieruj się \u003cb\u003eKrowoderska\u003c/b\u003e na \u003cb\u003epółnoc\u003c/b\u003e w stronę \u003cb\u003eBiskupia\u003c/b\u003e",
"polyline" : {
"points" : "mzqpH}`uxBQJ"
},
"start_location" : {
"lat" : 50.06775349999999,
"lng" : 19.9375888
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,2 km",
"value" : 208
},
"duration" : {
"text" : "2 min",
"value" : 143
},
"end_location" : {
"lat" : 50.0674128,
"lng" : 19.9347083
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eBiskupia\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "_{qpHq`uxB\\|Ef@jHBLBJFN"
},
"start_location" : {
"lat" : 50.0678409,
"lng" : 19.9375328
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,2 km",
"value" : 178
},
"duration" : {
"text" : "2 min",
"value" : 127
},
"end_location" : {
"lat" : 50.06583639999999,
"lng" : 19.9351237
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eAdama Asnyka\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "ixqpH}ntxBPEdFy@n@MPC"
},
"start_location" : {
"lat" : 50.0674128,
"lng" : 19.9347083
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "32 m",
"value" : 32
},
"duration" : {
"text" : "1 min",
"value" : 25
},
"end_location" : {
"lat" : 50.065749,
"lng" : 19.9355511
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eGarbarska\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "onqpHoqtxB@KDc@He@"
},
"start_location" : {
"lat" : 50.06583639999999,
"lng" : 19.9351237
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "21 m",
"value" : 21
},
"duration" : {
"text" : "1 min",
"value" : 16
},
"end_location" : {
"lat" : 50.0655943,
"lng" : 19.9353853
},
"html_instructions" : "Skręć \u003cb\u003ew prawo\u003c/b\u003e w \u003cb\u003eJuliana Dunajewskiego\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "}mqpHettxB^^"
},
"start_location" : {
"lat" : 50.065749,
"lng" : 19.9355511
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,8 km",
"value" : 800
},
"duration" : {
"text" : "9 min",
"value" : 566
},
"end_location" : {
"lat" : 50.0591191,
"lng" : 19.9333875
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "}lqpHestxBDE|AU`@`@fBbBDBVV`A`AHHJHPL|B`CTV`BdB^VbAx@RFD@F@H@H@D?H?Z?N?H?HCFCBAPUv@NJBH@D?NENYDGDEVOhDiAvAi@"
},
"start_location" : {
"lat" : 50.0655943,
"lng" : 19.9353853
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "17 m",
"value" : 17
},
"duration" : {
"text" : "1 min",
"value" : 13
},
"end_location" : {
"lat" : 50.05913109999999,
"lng" : 19.9336235
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e, kierunek: \u003cb\u003eI obwodnica\u003c/b\u003e/\u003cb\u003ePodzamcze\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "odppHuftxBAm@"
},
"start_location" : {
"lat" : 50.0591191,
"lng" : 19.9333875
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,5 km",
"value" : 453
},
"duration" : {
"text" : "6 min",
"value" : 351
},
"end_location" : {
"lat" : 50.05554,
"lng" : 19.9358946
},
"html_instructions" : "Skręć \u003cb\u003ew prawo\u003c/b\u003e, kierunek: \u003cb\u003eI obwodnica\u003c/b\u003e/\u003cb\u003ePodzamcze\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "qdppHchtxBRQHIPO^n@?@@@@?@?BCh@_@fBeA^UdAu@v@c@pAu@JEPIrA{@|BwA@A@A?A?A?A?AAM"
},
"start_location" : {
"lat" : 50.05913109999999,
"lng" : 19.9336235
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "6 m",
"value" : 6
},
"duration" : {
"text" : "1 min",
"value" : 7
},
"end_location" : {
"lat" : 50.0554869,
"lng" : 19.9359144
},
"html_instructions" : "Skręć \u003cb\u003ew prawo\u003c/b\u003e, kierunek: \u003cb\u003eI obwodnica\u003c/b\u003e/\u003cb\u003ePodzamcze\u003c/b\u003e",
"maneuver" : "turn-right",
"polyline" : {
"points" : "cnopHivtxBHC"
},
"start_location" : {
"lat" : 50.05554,
"lng" : 19.9358946
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,3 km",
"value" : 296
},
"duration" : {
"text" : "4 min",
"value" : 214
},
"end_location" : {
"lat" : 50.054073,
"lng" : 19.9391449
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eI obwodnica\u003c/b\u003e/\u003cb\u003ePodzamcze\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eJedź dalej I obwodnica\u003c/div\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "ymopHmvtxB?]@OB{@Bg@B_@Fs@B[Dc@@IBGFMNQ`@]TYV_@V_@JSFKFKt@qA@C`@s@"
},
"start_location" : {
"lat" : 50.0554869,
"lng" : 19.9359144
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,3 km",
"value" : 332
},
"duration" : {
"text" : "4 min",
"value" : 249
},
"end_location" : {
"lat" : 50.0516387,
"lng" : 19.9417914
},
"html_instructions" : "Kontynuuj wzdłuż \u003cb\u003eStradomska\u003c/b\u003e",
"polyline" : {
"points" : "}dopHsjuxBb@k@b@g@nAkAdAw@r@o@j@i@f@k@V[n@_ANQHOFQHMJU"
},
"start_location" : {
"lat" : 50.054073,
"lng" : 19.9391449
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "93 m",
"value" : 93
},
"duration" : {
"text" : "2 min",
"value" : 90
},
"end_location" : {
"lat" : 50.0509129,
"lng" : 19.9423653
},
"html_instructions" : "Kontynuuj wzdłuż \u003cb\u003eKrakowska\u003c/b\u003e",
"polyline" : {
"points" : "wunpHe{uxBFQBEBCNUHMJGJEPG\\M^O"
},
"start_location" : {
"lat" : 50.0516387,
"lng" : 19.9417914
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "0,2 km",
"value" : 171
},
"duration" : {
"text" : "2 min",
"value" : 127
},
"end_location" : {
"lat" : 50.0515068,
"lng" : 19.9445666
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eBeera Meiselsa\u003c/b\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "eqnpHy~uxBIg@Ig@Gm@Gu@GWQs@CIu@mD"
},
"start_location" : {
"lat" : 50.0509129,
"lng" : 19.9423653
},
"travel_mode" : "WALKING"
},
{
"distance" : {
"text" : "32 m",
"value" : 32
},
"duration" : {
"text" : "1 min",
"value" : 23
},
"end_location" : {
"lat" : 50.0517861,
"lng" : 19.9444906
},
"html_instructions" : "Skręć \u003cb\u003ew lewo\u003c/b\u003e w \u003cb\u003eplac Nowy\u003c/b\u003e\u003cdiv style=\"font-size:0.9em\"\u003eMiejsce docelowe będzie po lewej stronie\u003c/div\u003e",
"maneuver" : "turn-left",
"polyline" : {
"points" : "}tnpHqlvxBc@RG?A?A?CACA"
},
"start_location" : {
"lat" : 50.0515068,
"lng" : 19.9445666
},
"travel_mode" : "WALKING"
}
],
"traffic_speed_entry" : [],
"via_waypoint" : []
}
],
"overview_polyline" : {
"points" : "mzqpH}`uxBQJ\\|Ej@xHJZvF_A`AQFo@He@^^DE|AUhCdC\\ZjAjA\\VrCxC`BdB^VbAx@RFLBb@Bj@?RCJEPUv@NTDTEZg@VOhDiAvAi@Am@\\[PO^n@@BB?tD_C|ByA|A{@bF}CBE?CAOHC?]DkAFgAR}BBGV_@v@w@n@_ApA}Bb@w@fAsAnAkAdAw@~AyA~@gA~@qAf@eA^q@HMJG\\M|@]SoAOcBYkAy@wDk@RKC"
},
"summary" : "Stradomska",
"warnings" : [
"Funkcja wskazówek dla pieszych jest w fazie beta. Zachowaj ostrożność – na tej trasie może nie być chodników ani ścieżek dla pieszych."
],
"waypoint_order" : []
}
],
"status" : "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment