GNOME Bugzilla – Bug 728241
Recognize railway halts and tram stops as railway station place type
Last modified: 2015-12-28 09:40:49 UTC
Currently geocode-glib handles nodes with key/value railway=station using the GEOCODE_PLACE_TYPE_RAILWAY_STATION place type. Railway halts (simple stops) http://wiki.openstreetmap.org/wiki/Tag:railway%3Dhalt and tram stops http://wiki.openstreetmap.org/wiki/Tag:railway%3Dtram_stop are currently not handled this way, and as a result shows up in gnome-maps search using a generic place icon. Maybe these should be handled the same way as railway=station? Perhaps there should be an addional place type for tram? The Mapbox icon set has a "light rail" icon. What do you think?
Created attachment 274349 [details] [review] forward: expand railway station place type Also include simpler train stops using the OSM 'halt' tag.
Created attachment 274350 [details] [review] Add light rail station place type This type will also include tram stops.
Maybe something like that? Are you able to test those patches, or have any locations you would like screenshots of?
I don't have repository clones and build setups on my work laptop, but I could try it out at home tonight. If you like to test, you could search for "Selknä", there should be a halt location (note that this is along a rail line with railway=preserved, which is not rendered by mapnik, this is a preserved tourist "museum" railway, but I think there should be other places with regular service of this type). For trams, a search for "Solna Business Park", f.ex. will show two locations, where one is a tram stop.
Created attachment 274351 [details] railway=halt
Created attachment 274352 [details] railway=tram_stop
Great! That looks very nice!
I tried building geocode-glib at my home machine. I just ran a system installation of gnome-maps against the locally-compiled library (using LD_LIBRARY_PATH), it seems to work, I played around with it a bit.
Attachment 274349 [details] pushed as 0fa8247 - forward: expand railway station place type Attachment 274350 [details] pushed as 8686681 - Add light rail station place type