Hello
i need in a job.done to have only this
"distance" : {
"text" : "1 m",
and
"duration" : {
"text" : "1 minute",
http://maps.googleapis.com/maps/api....7727185,4.852051&mode=driving&Language=fr-FR
i test with
i need in a job.done to have only this
"distance" : {
"text" : "1 m",
and
"duration" : {
"text" : "1 minute",
http://maps.googleapis.com/maps/api....7727185,4.852051&mode=driving&Language=fr-FR
B4X:
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "ChIJxbptqfLq9EcRlxYqj3eXILY",
"types" : [ "street_address" ]
},
{
"geocoder_status" : "OK",
"place_id" : "ChIJxbptqfLq9EcRlxYqj3eXILY",
"types" : [ "street_address" ]
}
],
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : 45.7725132,
"lng" : 4.852093
},
"southwest" : {
"lat" : 45.7725132,
"lng" : 4.852093
}
},
"copyrights" : "Données cartographiques ©2016 Google",
"legs" : [
{
"distance" : {
"text" : "1 m",
"value" : 0
},
"duration" : {
"text" : "1 minute",
"value" : 0
},
"end_address" : "2 Rue Jacques de Boissieu, 69006 Lyon, France",
"end_location" : {
"lat" : 45.7725132,
"lng" : 4.852093
},
"start_address" : "2 Rue Jacques de Boissieu, 69006 Lyon, France",
"start_location" : {
"lat" : 45.7725132,
"lng" : 4.852093
},
"steps" : [
{
"distance" : {
"text" : "1 m",
"value" : 0
},
"duration" : {
"text" : "1 minute",
"value" : 0
},
"end_location" : {
"lat" : 45.7725132,
"lng" : 4.852093
},
"html_instructions" : "Prendre \u003cb\u003eRue Jacques de Boissieu\u003c/b\u003e",
"polyline" : {
"points" : "e}jvGqtr\\"
},
"start_location" : {
"lat" : 45.7725132,
"lng" : 4.852093
},
"travel_mode" : "DRIVING"
}
],
"via_waypoint" : []
}
],
"overview_polyline" : {
"points" : "e}jvGqtr\\"
},
"summary" : "Rue Jacques de Boissieu",
"warnings" : [],
"waypoint_order" : []
}
],
"status" : "OK"
}
i test with
B4X:
Dim DistanceKm As List
DistanceKm.Initialize
Dim root As Map = parser.NextObject
Dim results As List = root.Get("routes")
For Each colresults As Map In results
....... But after ?
Next