We are excited to announce a new feature which lets you specify whether you want to approach your delivery locations from the right or the left side. We call it curbside approach. It is as simple as adding a new field called “curbside” to your address object as follows:
"address": {
"location_id": "myLocation",
"lon": 11.539346,
"lat": 48.118248,
"curbside": "right"
}
The allowed values for “curbside” are right
, left
and any
.
If you want to ignore your curbside specifications, you can just add this:
"configuration": {
"routing": {
"ignore_curbsides": true
}
}
It is a beta feature. If you have questions or comments, please let us know. Happy testing!
Complete example:
{
"configuration": {
"routing": {
"ignore_curbsides": false
}
},
"vehicles": [
{
"vehicle_id": "my_vehicle",
"start_address": {
"location_id": "11.542511_48.118478",
"lon": 11.540194,
"lat": 48.119895
}
}
],
"services": [
{
"id": "1",
"address": {
"location_id": "11.539335_48.118421",
"lon": 11.539346,
"lat": 48.118248,
"curbside": "right"
}
},
{
"id": "2",
"address": {
"location_id": "11.538563_48.118450",
"lon": 11.538563,
"lat": 48.11845,
"curbside": "right"
}
},
{
"id": "3",
"address": {
"location_id": "same",
"lon": 11.538992,
"lat": 48.118448,
"curbside": "right"
}
},
{
"id": "4",
"address": {
"location_id": "same",
"lon": 11.538992,
"lat": 48.118448,
"curbside": "right"
}
},
{
"id": "5",
"address": {
"location_id": "11.537833_48.120212",
"lon": 11.537833,
"lat": 48.120212,
"curbside": "left"
}
}
]
}