opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.19k stars 1.03k forks source link

OSM ways should be given better names #166

Closed novalis closed 13 years ago

novalis commented 13 years ago

OSM ways without names should be given better 'descriptions'.

For example, a 'highway=footway' tagged way could be named 'footway' if it lacked a name (same goes for paths, platforms, residential roads, ...).

Relations and ref=* tags should also be used. ('Platform 5', 'Route 15', ...).

Q: How should this be done in a language 'neutral' way? By adding mappings to graph_config.xml?

An alternative I've thought of, is to write a 'pre-processing' script, which takes an OSM xml input file, and creates another with names added to previously nameless ways.

novalis commented 13 years ago

I personally prefer the idea of a mapping in the config file, since we frequently use automatically downloaded OTP files.

--novalis

novalis commented 13 years ago

I've had a patch which gives OSM ways names better names locally for a while, but never got around to submitting/committing it... There is now a patch attached.

The following changes are made:

The mapping supports a few basic operations:

Mappings are processed on a first-matching basis.

Less generic naming didn't seem feasible, due to the lack of information/data. e.g. sidewalk/underpass/overpass...

These are the mappings I use: {{{

... ```


}}}

--flaktack
novalis commented 13 years ago

Applied in r1191. Thanks.

--novalis