aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascript
diff options
context:
space:
mode:
authorTeddy Wing2018-03-09 15:55:49 +0100
committerLuc Donnet2018-03-23 17:16:43 +0100
commit33062580d8f4382e82095b74c0f72bb5872c8bb3 (patch)
tree01b8b5f6f4ab439b52f320fbaf4a2265bc39dc31 /spec/javascript
parentd11e86178155755b7c8713b3f791ee9ab5e89281 (diff)
downloadchouette-core-33062580d8f4382e82095b74c0f72bb5872c8bb3.tar.bz2
Add `TomTom` class to communicate with their API
Provides an interface to communicate with the TomTom API. Currently includes a method `#batch` to make a batch routing request (https://developer.tomtom.com/online-routing/online-routing-documentation/batch-routing). Left a bunch of development-related code in just to preserve my in-progress stages. Originally I was told to use the matrix routing API, but that turned out to not match what we wanted. Namely, matrix routing would produce a table with every point routed with every other point. We instead want routes of each segment in a line, in order (or, just the diagonal of the matrix). Using the batch API allows us to get the routes we need without doing unnecessary work. Update the `WayCost` class to provide `departure` and `arrival` methods as readers, and make `id` an optional parameter for now. (We still need to figure out how we're dealing with ID.) Refs #6095
Diffstat (limited to 'spec/javascript')
0 files changed, 0 insertions, 0 deletions