diff options
| author | Teddy Wing | 2018-03-13 11:43:14 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-03-23 17:16:43 +0100 |
| commit | 80b52ae73b4fc72ec75309b1ccd8f04b833fd2d0 (patch) | |
| tree | a1e68bc1c14be475a9d845bac8181bf72125002c /spec/javascript | |
| parent | b1fb2030fe15bf4d778c7c19f941c8209e40281e (diff) | |
| download | chouette-core-80b52ae73b4fc72ec75309b1ccd8f04b833fd2d0.tar.bz2 | |
Add `StopAreasToWayCostsConverter`
A new class that converts a list of `StopArea`s to `WayCost`s. This will
be called from `Chouette::Route` to get `WayCost`s from its stops, which
will then be JSON serialised and stored in `Route#costs`.
Update `WayCost`:
* Remove comment about calculating the ID automatically. It actually
needs to be the same as the `JourneyPattern#cost` ID (`key`), which is
a string with the IDs of the departure and arrival stops.
* Make `#==` check that `id`s are the same, which necessitates making
`id` a reader.
Refs #6095
Diffstat (limited to 'spec/javascript')
0 files changed, 0 insertions, 0 deletions
