If you have the project_id
of an existing Routific project, you can easily add stops to it. In the example above, the project_id
returned in the API responses was 5baaf01793438c1bebfac786.
https://product-api.routific.com/v0.1/project/{project_id}/stops/
In your request header make sure to include Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
.
Input
[
{
"name": "Rogers Arena",
"location": {
"address": "800 Griffiths Way, Vancouver, BC V6B 6G1, Canada",
"lat": 49.2778358,
"lng": -123.1088227
}
}
]
API Response
[
{
"name": "Rogers Arena",
"location": {
"address": "800 Griffiths Way, Vancouver, BC V6B 6G1, Canada",
"lat": 49.2778358,
"lng": -123.1088227
},
"id": "stop_BkGxLHCKU",
"status": "pending-geocode"
}
]
If you open the Routific project referenced above, you will see your new stop added, unoptimized.
![Screenshot 2020-05-04 21.07.12.png 3376](https://files.readme.io/1feb9a0-Screenshot_2020-05-04_21.07.12.png)
The new stop "Rogers Arena" (in green) is added to the project.