Skip to content

Instantly share code, notes, and snippets.

@davixz
Created February 24, 2021 17:53
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 davixz/7611e643be46dac092dcada579aa5411 to your computer and use it in GitHub Desktop.
Save davixz/7611e643be46dac092dcada579aa5411 to your computer and use it in GitHub Desktop.
REQUEST
estimate(
shopId: 10,
packagesDestination: [
{
lat: -23.5025491,
lng: -46.69607400000001
}
]
chargeMethod: 1,
optimize: true
)
RESPONSE
{
"data": {
"estimate": {
"packages": [
{
"error": null,
"eta": 1552,
"index": 1,
"rideCm": 21.84,
"outOfCityCover": false,
"outOfCoverageArea": true,
"originalIndex": 1,
"waypoint": {
"indexDisplay": "B",
"role": "ra"
}
}
],
"routeOptimized": false,
"normal": {
"cost": 21.84,
"distance": 7504,
"eta": 1852
},
"optimized": {
"cost": 21.84,
"distance": 7504,
"eta": 1852
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment