Assigned
Status Update
Comments
ra...@google.com <ra...@google.com> #2
Thanks for your suggestion! We are currently evaluating this request, but do not have any plans to implement it at the moment. Please star to add your vote and receive further updates, and feel free to add any comments to discuss your use case.
[Deleted User] <[Deleted User]> #3
Comment has been deleted.
in...@loadifysolutions.com <in...@loadifysolutions.com> #4
I'm use nothing special. Js code on FE
this.directionsService.route({
origin: 'Iowa City, IA, USA',
destination: '5600 Nebraska Furniture Mart Dr, The Colony, TX 75056, USA',
travelMode: google.maps.TravelMode.DRIVING,
},
function(response, status) {
if (status === google.maps.DirectionsStatus.OK) {
/* display markers and polylines*/
}
But I need calculate miles by state like on image on BE (Symfony 5.4 with php 8) but directions api return distance by legs
I tried calculate crossing with geocoder.geocode by steps but that's too many requests to check State
Ideally, if we could optionally get such an object for each
"routes": [
{
"legs": [
{
"tool_roads_by_state": {
"IL": {
"toll": {
"distance": {
"text": "86.66 mi",
"value": 138403
},
"duration": {
text: "3 hours",
value: 10800
},
"free": {
"distance": {
"text": "75.469 mi",
"value": 120700
},
"duration": {
text: "2 hours, 29 mins",
value: 43755
},
}
},
}
},
},
}
}
]
mu...@fleetcor.com <mu...@fleetcor.com> #5
Google team, any updates on this ?
Description
I would like to get information between two addresses in this format:
State Toll Miles Free Miles Total Miles Tolls
DE 3 21.13 24.13 10
IN 5 35 40 25
Now Directions APi returns distance but without per state
Feature Request
-----------------------