[OSRM-talk] external source

Emil Tin emil at tin.dk
Wed Jul 30 07:18:40 UTC 2014


Not directly i think, but if you have the osm data in postgis, then you can use the id to look up the geometry. This is how the example work.

Sendt fra min iPhone

> Den 29/07/2014 kl. 22.01 skrev Michal Palenik <michal.palenik at freemap.sk>:
> 
> hi,
> 
> is there any means to get which part of the way is considered? WKT or
> WKB or start-end point or any geometry description?
> 
> michal
>> On Tue, Jul 29, 2014 at 08:36:40PM +0200, Emil Tin wrote:
>> Hi,
>> Ways are split into segments before being processed by lua. And you can use way.osm_id from lua, see the example file.
>> 
>> Sendt fra min iPhone
>> 
>>> Den 29/07/2014 kl. 15.21 skrev Michal Palenik <michal.palenik at freemap.sk>:
>>> 
>>> hello
>>> 
>>> I am trying to reproduce the famous dublin no pub routing
>>> http://www.sotm-eu.org/slides/95-1.pdf
>>> which is fairly easy using postgis lua example
>>> https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/examples/postgis.lua
>>> however:
>>> 
>>> that would penalize all osm ways with a pub nearby. but if the way is
>>> 5km long, only the area around the pub should be bad (not whole 5km).
>>> 
>>> I assume osrm works in way:
>>> get data (way id is unique)
>>> lua profiles (way id still unique, each way id is processed just once)
>>> explode into proper node/edge architecture (way id not unique)
>>> 'magic'
>>> running osrm daemon
>>> 
>>> 
>>> is it possible in the 'magic' step process each segment for some
>>> additional info (# of nearby pubs; elevation change; ..)? having way.id
>>> and WKT/WKB available for postgis queries would be awesome.
>>> 
>>> 
>>> 
>>> 
>>> thanks
>>> 
>>> michal
>>> 
>>> -- 
>>> michal palenik
>>> www.freemap.sk
>>> www.oma.sk
>>> 
>>> _______________________________________________
>>> OSRM-talk mailing list
>>> OSRM-talk at openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>> 
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
> 
> -- 
> michal palenik
> www.freemap.sk
> www.oma.sk
> 
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk



More information about the OSRM-talk mailing list