mapbox / node-or-tools

Node.js bindings for or-tools vehicle routing problems
MIT License
146 stars 48 forks source link

output solution.geojson in example #40

Closed andrewharvey closed 7 years ago

andrewharvey commented 7 years ago

I couldn't work out how to get the pretty solution.geojson provided from the example (perhaps it was fixed up manually?). So I made some changes to the example script to output a pretty solution.geojson.

solution

The routes are different now though, perhaps just due to the Directions API returning different results than when originally run?

daniel-j-h commented 7 years ago

Hm I think I just put the output solution into geojson.io and captured the image, or something like that. I appreciate the changes here! Much better now to have a fully working example.

The routes are not stable at all, could be that the underlying routing engines tuned its internal weights just a bit, or some roads are closed now, or tags have changed, etc.