logo separator

[mkgmap-dev] How to identify beginning and end of a route?

From Gerd Petermann GPetermann_muenchen at hotmail.com on Fri Aug 18 13:35:45 BST 2017

Hi Nick,

not sure what result you need, but this rule in relations sets the tag route_node
and you can evaluate it in the points file

type=route & (route=bicycle | route = hiking | route=foot)
{
    apply role=start {
    	add route_node=start
    }
    apply role=end {
    	add route_node=end
    }
}

Does that help?
Gerd
________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von nwillink <osm at pinns.co.uk>
Gesendet: Freitag, 18. August 2017 11:00:21
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: [mkgmap-dev] How to identify beginning and end of a route?

Hi

I read the following:

Matching member roles by regular expression
Currently, apply role=value is for fixed strings.

I'm not quite sure what 'fixed strings ' means but perhaps it means that the
unique properties of individual members of a relation cannot be parsed.


This is a shame as it would be great to mark the start and end of  cycling /
hiking routes.

In osm we can mark the start of a route using role="start" ,ie

 <member type="node" ref="454189725" role="start"/>
  <tag k="name" v="Otter Valley Walk"/>
  <tag k="network" v="rwn"/>
  <tag k="osmc:symbol" v="blue:green:yellow_pointer"/>
  <tag k="ref" v="OVW"/>
  <tag k="roundtrip" v="no"/>
  <tag k="route" v="foot"/>
  <tag k="type" v="route"/>
 </relation>

However, I've not been able to capture this node.

I wonder if anyone has an answer?

r

Nick






--
View this message in context: http://gis.19327.n8.nabble.com/How-to-identify-beginning-and-end-of-a-route-tp5900869.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list