In this page
DIDN'T FIND WHAT YOU LOOKING FOR?
// we create a geojson object to send to our mapview elements
// It will be a feature collection of all the route polylines
checkStatus.result.routes.forEach((rte,idx) => {
//console.log(rte);
let feature = {
type: 'Feature',
properties: {
id: rte.vehicle,
vin: rte.description
},
geometry: {
coordinates: nextbillion.utils.polyline.decode(rte.geometry,5)
.map((c) => c.reverse()),
type: 'LineString'
}
}
"options": {
"routing": {
"traffic_timestamp": 1656302000
}
}
{
"locations": {
"id": 1,
"description": "testing",
"location": "1.29360227,103.80828989|1.29360227,103.8273062|1.30227739,103.84595327|1.31482858,103.84503015|1.31925839,103.86312334|1.3248957169,103.8285176106|1.2996042263,103.8112802999|1.2830643677,103.8343527086|1.2856021297,103.8384649827"
},
"vehicles": [
{
"id": 1,
"start_index": 3,
"end_index": 7,
"capacity": [
5
],
"max_tasks": 1
},
{
"id": 2,
"start_index": 8,
"end_index": 8,
"capacity": [
5
],
"max_tasks": 2
}
],
"jobs": [
{
"id": 1,
"location_index": 0,
"service": 300
},
{
"id": 2,
"location_index": 1,
"service": 300
},
{
"id": 3,
"location_index": 6,
"service": 300
}
]
}
{
"vehicles": [
{
"id": 1,
"description": "14 Ft- Eicher/709-14 Ft",
"capacity": [
3500
],
"skills": [
1
],
"max_tasks": 3,
"fixed_cost": 1320,
"time_window": [
1689053400,
1689186540
],
"start_index": 0,
"break": {
"id": 1,
"time_windows": [
[
1689071400,
1689136200
]
],
"service": 50400
}
}
]
}
NEXTBILLION.AI, INC.
21 E State Street,
Suite 200,
Columbus, OH 43215
#32-01, 80 Raffles Place, UOB Plaza,
Singapore, 048624
© 2022 NextBillion.ai all rights reserved.