Re: [OSRM-talk] Get route legs tags in response of route service

2018-01-23 Thread Michal Palenik
or add extra exclude classes to segments
https://github.com/Project-OSRM/osrm-backend/issues/4803


michal

On Mon, Jan 22, 2018 at 08:57:35AM -0800, Daniel Patterson wrote:
> Hi François,
> 
>   By default, no - OSRM doesn't save any data that it doesn't explicitly
> need.  There are two main approaches for getting extra OSM metadata along
> your route:
> 
>   1) Use something like https://github.com/mapbox/route-annotator to get
> the tag information *after* the route is found.
> 
>   2) Modify the `car.lua` script to encode the tags you want inside the
> `name` field.  Be aware that this can affect the generation of route steps,
> and not all steps may be returned due to obvious turn detection and step
> collapsing.
> 
> In general, (1) is probably the most robust approach, but you'll need a
> second server, and you'll have to write the code to do the extra lookup.
> 
> daniel
> 
> On Mon, Jan 22, 2018 at 8:29 AM, François Lacombe  > wrote:
> 
> > Hi everyone,
> >
> > i'm looking for the best strategy to get extra attributes of route legs
> > OSRM sends me in route service response.
> >
> > My goal is to know which type of path I should follow, e.g
> > highway=primary, highwy=secondary, man_made=pipeline or whatever.
> > Can I get in response every tags osm ways have in osm xml file processed
> > by osrm-extract ?
> >
> > Documentation gives examples with only name forwarded, but no extra tags.
> > Is this possible to get any id as to check against third party db?
> >
> > Thank you for any answer, all the best
> >
> > François
> >
> > ___
> > OSRM-talk mailing list
> > OSRM-talk@openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/osrm-talk
> >
> >

> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk


-- 
michal palenik
www.freemap.sk
www.oma.sk

___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


Re: [OSRM-talk] Get route legs tags in response of route service

2018-01-22 Thread François Lacombe
Hi Daniel,

For me, sending an id as name attribute sounds like the best solution.
I understand that osrm doesn't explicitly need osm (or third party) tags,
but it's pretty difficult to display comprehensive information to users or
ownstream services without them.

Would it introduce unbearable load to make tags forwarded in response of a
further osrm version?

François

2018-01-22 17:57 GMT+01:00 Daniel Patterson :

> Hi François,
>
>   By default, no - OSRM doesn't save any data that it doesn't explicitly
> need.  There are two main approaches for getting extra OSM metadata along
> your route:
>
>   1) Use something like https://github.com/mapbox/route-annotator to get
> the tag information *after* the route is found.
>
>   2) Modify the `car.lua` script to encode the tags you want inside the
> `name` field.  Be aware that this can affect the generation of route steps,
> and not all steps may be returned due to obvious turn detection and step
> collapsing.
>
> In general, (1) is probably the most robust approach, but you'll need a
> second server, and you'll have to write the code to do the extra lookup.
>
> daniel
>
> On Mon, Jan 22, 2018 at 8:29 AM, François Lacombe <
> fl.infosrese...@gmail.com> wrote:
>
>> Hi everyone,
>>
>> i'm looking for the best strategy to get extra attributes of route legs
>> OSRM sends me in route service response.
>>
>> My goal is to know which type of path I should follow, e.g
>> highway=primary, highwy=secondary, man_made=pipeline or whatever.
>> Can I get in response every tags osm ways have in osm xml file processed
>> by osrm-extract ?
>>
>> Documentation gives examples with only name forwarded, but no extra tags.
>> Is this possible to get any id as to check against third party db?
>>
>> Thank you for any answer, all the best
>>
>> François
>>
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
>>
>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] Get route legs tags in response of route service

2018-01-22 Thread François Lacombe
Hi everyone,

i'm looking for the best strategy to get extra attributes of route legs
OSRM sends me in route service response.

My goal is to know which type of path I should follow, e.g highway=primary,
highwy=secondary, man_made=pipeline or whatever.
Can I get in response every tags osm ways have in osm xml file processed by
osrm-extract ?

Documentation gives examples with only name forwarded, but no extra tags.
Is this possible to get any id as to check against third party db?

Thank you for any answer, all the best

François
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk