diff options
| author | Teddy Wing | 2018-03-09 15:55:49 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-03-14 16:38:39 +0100 | 
| commit | b27dd5fe2f061e2ef94d250fc5a06c1d8e84179a (patch) | |
| tree | 900a3ddcc45526b03e5b026f39422573e02301a4 /spec/lib/range_ext_spec.rb | |
| parent | 23cc4317f72c3776307ee15344462e151ba1dc52 (diff) | |
| download | chouette-core-b27dd5fe2f061e2ef94d250fc5a06c1d8e84179a.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/lib/range_ext_spec.rb')
0 files changed, 0 insertions, 0 deletions
