Hi Dave,
I agree that it is not trivial because the rules which set the highway name are
already quite complex.
I think you have to add a rule like this:
highway=* & maxspeed=* {set xxx_maxspeed_label = '($(maxspeed))'}
somewhere at the beginning of the lines rules, I leave it up to you to add rules
to convert the value to mph or add a unit, see also inc/roadspeed
Next you have to change all the rules which use the name
macro for highways.
Example for trunk roads:
change the rule
highway=trunk {name '${ref|highway-symbol:hbox} ${name}' |
'${ref|highway-symbol:hbox}' | '${name}'; addlabel '${name} (${ref})' }
to
highway=trunk {name '${name} ${ref|highway-symbol:hbox} $(xxx_maxspeed_label)'
| name '${name} ${ref|highway-symbol:hbox} ' | '${ref|highway-symbol:hbox}'
$(xxx_maxspeed_label)' |'${ref|highway-symbol:hbox}' | '${name}
$(xxx_maxspeed_label)' | '${name}'; addlabel '${name} (${ref})' }
If that doesn't help, I suggest to pose the question in the mkgmap experts list:
[email protected]
Gerd
________________________________
Von: Dave Swarthout <[email protected]>
Gesendet: Freitag, 22. Juli 2016 07:07:08
An: Tag discussion, strategy and related tools
Betreff: Re: [Tagging] How can I display maxspeed on my Garmin?
I understand that. I'm not asking for reverse engineering, only for a way to
write a style rule that appends the maxspeed tag value to the output string
that ends up being the name Garmin shows on the unit.
Let me put it another way. It seems to me that if one can use a style in such a
way to display a road name from the name tag, plus a route number from the ref
tag, then it ought to be possible for me to create a style that will show the
value of the maxspeed tag. I mean, certain of the style directives (like the
ones in my snippet) only create labels that are referenced later when styles
are actually being applied to objects during map creation. Instead of seeing
"driving on Ak 9 (Main Street)" on my Garmin screen I want to see "driving on
Main St (Ak 9)(30 mph)". It should be possible to make a style rule to create
that result. I'm just not clever enough to figure out how.
On Thu, Jul 21, 2016 at 8:02 PM, Warin
<[email protected]<mailto:[email protected]>> wrote:
Dave,
Garmins mapping has evolved over time. It is not open source nor do they
release the commands etc that they use.
So things are reverse engineered to get Garmin maps from various sources
(including OSM).
While maxspeed may be important for some .. it may not be high on the list of
things to do for those doing the reverse engineering.
So in terms of getting it on your Garmin .. not now. But maybe in the future.
On 7/22/2016 6:31 AM, Gerd Petermann wrote:
Hi Dave,
"there's no known way to simply append that tag to a label or highway name.
Correct?"
no, I think that should be possible when the way has the maxspeed tag.
I refered to a different feature which shows a road sign with the maxspeed value
and also allows to warn the driver when he is faster.
Gerd
________________________________
Von: Dave Swarthout <[email protected]><mailto:[email protected]>
Gesendet: Donnerstag, 21. Juli 2016 22:18:54
An: Tag discussion, strategy and related tools
Betreff: Re: [Tagging] How can I display maxspeed on my Garmin?
Thanks for the responses.
I assumed because we can append ref tags to a highway name one could just do
the same for maxspeed. It's just another tag after all. Obviously, there is a
lot of interplay between mkgmap and the Garmin internals that I don't
understand.
Gerd, what you're saying is that there's no known way to simply append that tag
to a label or highway name. Correct?
Dave
On Wed, Jul 20, 2016 at 11:11 PM, Gerd Petermann
<[email protected]<mailto:[email protected]>> wrote:
Well,
the default style rules in mkgmap evaluate maxspeed to calculate a so called
road speed value which is used
by the Garmin routing algo.
But we don't know any way to store the value in the map so that it woud show up
in the device when you
pass the node. I know that modern Garmin maps have this feature using so called
NT maps, I don't know
any place in the older img format where this information could be stored, but
maybe we just didn't find
it yet.
Gerd
________________________________
Von: Paul Johnson <[email protected]<mailto:[email protected]>>
Gesendet: Donnerstag, 21. Juli 2016 08:55:27
An: David Swarthout; Tag discussion, strategy and related tools
Betreff: Re: [Tagging] How can I display maxspeed on my Garmin?
On Tue, Jul 19, 2016 at 7:07 PM, Dave Swarthout
<[email protected]<mailto:[email protected]>> wrote:
I posted this on the Garmin OSM forum but nobody responded. Maybe someone here
can help with this.
I recently added maxspeed to many highways in my neighborhood and am looking
for a way to have them display on my Garmin Montana. Mostly I would use this
information while driving here and there to show me roads that don't have a
maxspeed tag already. I'm looking for a style directive that will append
maxspeed information to the highway-symbol and ref for the standard highway
types.
I'm not currently aware of anything in the OSM to Garmin toolchain that is
capable of encoding maxspeed as of yet. As far as I'm aware, the only data
consumer that is using lane or speed data is Osmand at this time.
_______________________________________________
Tagging mailing list
[email protected]<mailto:[email protected]>
https://lists.openstreetmap.org/listinfo/tagging
--
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
_______________________________________________
Tagging mailing list
[email protected]<mailto:[email protected]>
https://lists.openstreetmap.org/listinfo/tagging
_______________________________________________
Tagging mailing list
[email protected]<mailto:[email protected]>
https://lists.openstreetmap.org/listinfo/tagging
--
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
_______________________________________________
Tagging mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tagging