aboutsummaryrefslogtreecommitdiffstats
path: root/db/schema.rb
diff options
context:
space:
mode:
authorTeddy Wing2018-03-13 11:43:14 +0100
committerTeddy Wing2018-03-14 16:38:40 +0100
commit87947a7b6da52305029954341c6dc40b8cde6f86 (patch)
tree006391e653e92cf82b93cff37d9136e984f7fc2a /db/schema.rb
parent33c2dad6ba2483a4c71d7248979bf9d82a65f234 (diff)
downloadchouette-core-87947a7b6da52305029954341c6dc40b8cde6f86.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 'db/schema.rb')
0 files changed, 0 insertions, 0 deletions