Street does not seem a very good substitution, roads are only called streets in 
built up areas, where names are easily found. In the countryside, where names 
are harder to find, they are just roads.
Where available the reference is most useful.

Phil (trigpoint)
--

Sent from my Nokia N9



On 18/04/2013 9:49 Emil Tin wrote:

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 [email protected]
EAN 5798009493149




Fra: Alessandro Pasotti [mailto:[email protected]]
Sendt: 18. april 2013 10:39
Til: [email protected]
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

_______________________________________________
OSRM-talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to