Highway name or ref

There's a question on the OSM forum about the naming of highways in the default stylesheet which comes down to this: if a ref is available then that seems always used even if a name is also available, can this be changed to show the name as well? http://forum.openstreetmap.org/viewtopic.php?pid=68439#p68439

I confirm this behavior using this style: # Set highway names to include the reference if there is one highway=motorway {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}' } highway=trunk {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}' } highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}' } highway=secondary {name '${ref|highway-symbol:oval} ${name}' | '${ref|highway-symbol:oval}' | '${name}' } highway=* {name '${ref} ${name}' | '${ref}' | '${name}' } ref name was used even if there is name On Wed, Mar 31, 2010 at 3:52 PM, Lambertus <osm@na1400.info> wrote:
There's a question on the OSM forum about the naming of highways in the default stylesheet which comes down to this: if a ref is available then that seems always used even if a name is also available, can this be changed to show the name as well?
http://forum.openstreetmap.org/viewtopic.php?pid=68439#p68439 _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Wed, Mar 31, 2010 at 09:52:57AM +0200, Lambertus wrote:
There's a question on the OSM forum about the naming of highways in the default stylesheet which comes down to this: if a ref is available then that seems always used even if a name is also available, can this be changed to show the name as well?
http://forum.openstreetmap.org/viewtopic.php?pid=68439#p68439
I can't repeat this as described on my Edge 705 and today's map from http://www.polkupyoraily.net/osm/. I do see the "mouseover" label "ref name", but if I hit Enter on it, the "POI window" displays either "ref" or "ref name", i.e., "152" or "1521 Jokivarrentie". I tried it here: http://www.openstreetmap.org/?lat=60.3470937&lon=25.1346522&zoom=18 http://www.openstreetmap.org/browse/node/374125267 The 1521 is a lesser-class road that lacks the highway shield. It says "1521 Jokivarrentie" on the map without a shield. The 152 (when I zoom in) displays the ref=152 in an oval shield and the name=Sipoontie below that. Also, if I select the motorway a few hundred meters west from that point, it says just "4" (the ref), but the mouseover tooltip says "4 Lahdenväylä (E)" [E=etelä=south]. When I zoom in, the map displays the ref in a box and the name below that. It would be nice if the "POI window" displayed the name in addition to the ref for roads that carry a highway shield. Could this be arranged with display_name? For some reason, QLandkarteGT is not showing me any street names or labels; only POI names. Best regards, Marko

Someone on the forum seems to have found the solution: Quote by Vclaw:
I noticed this same thing on some Garmin maps I was making. I think its caused by the highway shields, as the Garmin can't display those as well as the name at the same time. I fixed it by setting the "display_name" for the highways. eg a style rule like this:
highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '$
It's aparently the second part of this patch of which only the first part has been committed: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/005056.html> Marko Mäkelä wrote:
On Wed, Mar 31, 2010 at 09:52:57AM +0200, Lambertus wrote:
There's a question on the OSM forum about the naming of highways in the default stylesheet which comes down to this: if a ref is available then that seems always used even if a name is also available, can this be changed to show the name as well?
http://forum.openstreetmap.org/viewtopic.php?pid=68439#p68439
I can't repeat this as described on my Edge 705 and today's map from http://www.polkupyoraily.net/osm/. I do see the "mouseover" label "ref name", but if I hit Enter on it, the "POI window" displays either "ref" or "ref name", i.e., "152" or "1521 Jokivarrentie". I tried it here:
http://www.openstreetmap.org/?lat=60.3470937&lon=25.1346522&zoom=18 http://www.openstreetmap.org/browse/node/374125267
The 1521 is a lesser-class road that lacks the highway shield. It says "1521 Jokivarrentie" on the map without a shield. The 152 (when I zoom in) displays the ref=152 in an oval shield and the name=Sipoontie below that.
Also, if I select the motorway a few hundred meters west from that point, it says just "4" (the ref), but the mouseover tooltip says "4 Lahdenväylä (E)" [E=etelä=south]. When I zoom in, the map displays the ref in a box and the name below that.
It would be nice if the "POI window" displayed the name in addition to the ref for roads that carry a highway shield. Could this be arranged with display_name?
For some reason, QLandkarteGT is not showing me any street names or labels; only POI names.
Best regards,
Marko _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On Apr 6, 2010, at 20:51, Lambertus wrote:
Someone on the forum seems to have found the solution:
Quote by Vclaw:
I noticed this same thing on some Garmin maps I was making. I think its caused by the highway shields, as the Garmin can't display those as well as the name at the same time. I fixed it by setting the "display_name" for the highways. eg a style rule like this:
highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '$
It's aparently the second part of this patch of which only the first part has been committed: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/005056.html>
Yes, I think it was decided not to include the display_name stuff in the default style, since it was unclear if this would be generally useful. However if more people find this helpful, and if we now have more functions which make use of the multiple labels, it may be time to reconsider adding some display_name statements to the lines file in the default style. Cheers.

Just to confirm, route instructions are using ref - name. Tested on mac roadtrip and mapsource. Will try with GPS later. highway=motorway {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}' ; add display_name = '${ref} - ${name}' } highway=trunk {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}'; add display_name = '${ref} - ${name}' } highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${ref} - ${name}' } highway=secondary {name '${ref|highway-symbol:oval} ${name}' | '${ref|highway-symbol:oval}' | '${name}' ; add display_name = '${ref} - ${name}' } On Wed, Apr 7, 2010 at 5:18 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On Apr 6, 2010, at 20:51, Lambertus wrote:
Someone on the forum seems to have found the solution:
Quote by Vclaw:
I noticed this same thing on some Garmin maps I was making. I think its caused by the highway shields, as the Garmin can't display those as well as the name at the same time. I fixed it by setting the "display_name" for the highways. eg a style rule like this:
highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '$
It's aparently the second part of this patch of which only the first part has been committed: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/005056.html>
Yes, I think it was decided not to include the display_name stuff in the default style, since it was unclear if this would be generally useful.
However if more people find this helpful, and if we now have more functions which make use of the multiple labels, it may be time to reconsider adding some display_name statements to the lines file in the default style.
Cheers. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Tested on etrex vista and the ref - name tag is visible in the routing guidance. On Wed, Apr 7, 2010 at 10:37 AM, maning sambale <emmanuel.sambale@gmail.com> wrote:
Just to confirm, route instructions are using ref - name. Tested on mac roadtrip and mapsource. Will try with GPS later.
highway=motorway {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}' ; add display_name = '${ref} - ${name}' } highway=trunk {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}'; add display_name = '${ref} - ${name}' } highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${ref} - ${name}' } highway=secondary {name '${ref|highway-symbol:oval} ${name}' | '${ref|highway-symbol:oval}' | '${name}' ; add display_name = '${ref} - ${name}' }
On Wed, Apr 7, 2010 at 5:18 AM, Clinton Gladstone <clinton.gladstone@googlemail.com> wrote:
On Apr 6, 2010, at 20:51, Lambertus wrote:
Someone on the forum seems to have found the solution:
Quote by Vclaw:
I noticed this same thing on some Garmin maps I was making. I think its caused by the highway shields, as the Garmin can't display those as well as the name at the same time. I fixed it by setting the "display_name" for the highways. eg a style rule like this:
highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '$
It's aparently the second part of this patch of which only the first part has been committed: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/005056.html>
Yes, I think it was decided not to include the display_name stuff in the default style, since it was unclear if this would be generally useful.
However if more people find this helpful, and if we now have more functions which make use of the multiple labels, it may be time to reconsider adding some display_name statements to the lines file in the default style.
Cheers. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Tue, Apr 06, 2010 at 11:18:03PM +0200, Clinton Gladstone wrote:
It's aparently the second part of this patch of which only the first part has been committed: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/005056.html>
Yes, I think it was decided not to include the display_name stuff in the default style, since it was unclear if this would be generally useful.
However if more people find this helpful, and if we now have more functions which make use of the multiple labels, it may be time to reconsider adding some display_name statements to the lines file in the default style.
I committed the style part in r1631 after testing it in my Edge 705. Marko

Lambertus <osm@na1400.info> writes:
There's a question on the OSM forum about the naming of highways in the default stylesheet which comes down to this: if a ref is available then that seems always used even if a name is also available, can this be changed to show the name as well?
http://forum.openstreetmap.org/viewtopic.php?pid=68439#p68439
Not what you asked, but it would be nice to have a way to represent in the db which of ref and name is the "primary name" from the point of view of signage and road users. Near me, proprietary maps sometime show Route 117 as "Great Road", but everyone calls it 117 to the point where saying Great Road risks miscommunicating. Also, Route 2 (state route) and US 202 overlap in central/western mass, and OSM/mapnik labels it US 202. This is wrong, because SR 2 is much more important than US 202. Everyone on that road knows they are on SR2, and only some people pay attention to US 202 coming and going for that stretch. (And yes, the motorway/trunk/primary distinctions are entirely correct -- thanks to whoever did it.) http://osm.org/go/ZfDIAyM-- So maybe having one of primary_name=name primary_name=ref:us_us primary_name=ref:us_sr as a hint for describing the road (in all contexts).
participants (5)
-
Clinton Gladstone
-
Greg Troxel
-
Lambertus
-
maning sambale
-
Marko Mäkelä