[mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
From greg crago gregcrago at gmail.com on Sat Mar 19 00:34:49 GMT 2016
I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My *line* file contains: dest_hint=* { delete dest_hint } highway=* & mkgmap:dest_hint=true { set destination:ref = '${destination:ref|subst:South=> S|subst:North=> N|subst:East=> E|subst:West=> W|subst:I =>I-|subst:M =>M-|subst:US =>US-}'; set destination = '${destination|subst:/=>,}'; set destination:street = '${destination:street|subst:;=>,|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy|subst: Southwest=> SW|subst: Northwest=> NW|subst: Southeast=> SE|subst: Northeast=> NE}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | *'${destination:street} ~ ${destination}' *| '${destination:ref} ^ ${destination}' | '${destination:street}' | '${exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # 'Exit ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | # 'Exit ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | # 'Exit ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing *'${destination:street} ~ ${destination}' *which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160318/97420d2f/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Beck road JOSM screenshot.JPG Type: image/jpeg Size: 80202 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160318/97420d2f/attachment-0002.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: Beck Rd Exit.JPG Type: image/jpeg Size: 56244 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160318/97420d2f/attachment-0003.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: lines Type: application/octet-stream Size: 23146 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160318/97420d2f/attachment-0002.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: beck-road.osm.pbf Type: application/octet-stream Size: 72525 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160318/97420d2f/attachment-0003.obj>
- Previous message: [mkgmap-dev] strange problem: addr:housenumber added to highway name
- Next message: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list