playsign / fidemo

FIWARE Demo / Integration project
Other
16 stars 6 forks source link

end user bus & tram line codes to use #6

Closed antont closed 9 years ago

antont commented 9 years ago

HSL data currently gives us a lineref which seems to be some internal code.

For the UI we'd need the end user route IDs, like tram 4A or bus 63.

The documentation apparently doesn't have this information (CIE folks investigated that earlier).

This open source project from HSL itself seems to have code for this:

https://github.com/HSLdevcom/navigator-server/blob/master/src/helmi.coffee global state: a mapping from vehicle id to its current route code vehicle_to_route = {}

noticed from this commit: fix route id for Vantaa airport line 61 https://github.com/HSLdevcom/navigator-server/commit/97d864d27f9160eeb725f8d369ed645bdde03b43

Also Google Earth gets the numbers for trams at least somehow, are in http://hsl.seuranta.org/

And @Stinkfist0 checked http://www.pubtrans.it/hsl/vehicles and reported that lineids seem sane there.

Stinkfist0 commented 9 years ago

Should be now in order.