[OSRM-talk] {highway:xxxx} in route instructions

Emil Tin ZF0F at tmf.kk.dk
Thu Apr 18 08:49:34 UTC 2013


When a way has no name, the highway tag is used next-best. The encoding was introduced (so far just in the bike profile) so that front-ends can translate way types.

The encoding happen in:
https://github.com/DennisOSRM/Project-OSRM/blob/develop/profiles/bicycle.lua


Example english translations done in the front end:

"{highway:motorway}" = "motorway";
"{highway:motorway_link}" = "motorway";
"{highway:trunk}" = "trunk road";
"{highway:trunk_link}" = "trunk road";
"{highway:primary}" = "primary road";
"{highway:primary_link}" = "primary road";
"{highway:secondary}" = "road";
"{highway:secondary_link}" = "road";
"{highway:tertiary}" = "street";
"{highway:tertiary_link}" = "street";
"{highway:living_street}" = "street";
"{highway:pedestrian}" = "pedestrian street";
"{highway:residential}" = "residential street";
"{highway:unclassified}" = "street";
"{highway:service}" = "service street";
"{highway:track}" = "track";
"{highway:road}" = "road";
"{highway:path}" = "path";
"{highway:footway}" = "footway";
"{highway:cycleway}" = "cycleway";
"{highway:bridleway}" = "bridleway";
"{highway:steps}" = "steps";
"{roundabout:yes}" = "roundabout";
"{area:yes}" = "area";


Common OSM highway tag values:
http://wiki.openstreetmap.org/wiki/Key:highway

You should probably have a fallback description, in case you get a tag value you don't have a translation for.




Kind regards,

Emil Tin
IT- and Process Specialist
Traffic Design
________________________________
CITY OF COPENHAGEN
The Technical and Environmental Administration
Traffic Department

Islands Brygge 37 Vær. 118
Postboks 450
2300 København S

Telefon +45 2369 5986
Email ZF0F at tmf.kk.dk<mailto:ZF0F at tmf.kk.dk>
EAN 5798009493149



Fra: Alessandro Pasotti [mailto:apasotti at gmail.com]
Sendt: 18. april 2013 10:39
Til: osrm-talk at openstreetmap.org
Emne: [OSRM-talk] {highway:xxxx} in route instructions

Hi,

I've switched to the latest develop branch and noticed that sometimes the tag in the subject  appears in the instructions strings, is there any place or file where I can get documentation about these strings?

I guess I should replace them (and translate) with something meaningful for the user.


--
Alessandro Pasotti
w3:   www.itopen.it<http://www.itopen.it>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20130418/fd47075e/attachment.html>


More information about the OSRM-talk mailing list