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 16:23:34 BST 2017

Hi Nick,

fine, you probably need a bit more code to handle roundtrip routes (start=end)

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 16:58:46
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] How to identify beginning and end of a route?

Hi Gerd

Brilliant , many thanks !

I use 0x6412 which Garmin has earmarked for its 'trails' .

Great stuff!

Nick

On 18/08/2017 13:35, Gerd Petermann [via GIS] wrote:
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 <[hidden email]</user/SendEmail.jtp?type=node&node=5900883&i=0>> im Auftrag von nwillink <[hidden email]</user/SendEmail.jtp?type=node&node=5900883&i=1>>
Gesendet: Freitag, 18. August 2017 11:00:21
An: [hidden email]</user/SendEmail.jtp?type=node&node=5900883&i=2>
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
[hidden email]</user/SendEmail.jtp?type=node&node=5900883&i=3>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=5900883&i=4>
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


________________________________
If you reply to this email, your message will be added to the discussion below:
http://gis.19327.n8.nabble.com/How-to-identify-beginning-and-end-of-a-route-tp5900869p5900883.html
To unsubscribe from How to identify beginning and end of a route?, click here.
NAML<http://gis.19327.n8.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


________________________________
View this message in context: Re: How to identify beginning and end of a route?<http://gis.19327.n8.nabble.com/How-to-identify-beginning-and-end-of-a-route-tp5900869p5900892.html>
Sent from the Mkgmap Development mailing list archive<http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html> at Nabble.com.


More information about the mkgmap-dev mailing list