[OSRM-talk] OSM Way Ids

André Siefken siefken at geozelot.com
Wed Jul 29 14:50:48 UTC 2020


Hi Mateusz, hi @all,

thanks a lot, that does sound promising. I know you said it's been a
while, but you may have a better idea still about two things:

  * assuming I would attempt to replace the result.ref with the actual
    way ID, how would I retrieve the actual ID from the passed in way,
    as it is no tag? Can I use property notation like way.id or similar?
    I can't seem to find a function, or any other attempt to access a
    first level property other than tags, but I may have missed it.

  * can I simply add items to the result object (i.e. result.id), or
    would they not get piped through to the actual output result set, or
    even error out?

(I couldn't get my hands on my machine until just now, thus my asking
before trying)

All the best,

André


On 7/27/20 5:45 PM, Mateusz Loskot wrote:

> On Mon, 27 Jul 2020 at 11:43, André Siefken <siefken at geozelot.com> wrote:
>> Can I easily change the tag selection, somewhere in the code (and rebuild), to fetch the way ID instead? Or is there even are profile setting for this?
> It's been a while, but try to customise the Lua profile scripts
> assigning custom properties to `result` created in node_function
> and way_function.
>
> Best regards,

-- 

pgp-key attached

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20200729/944a4733/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x0024705C4FC20AF6.asc
Type: application/pgp-keys
Size: 3155 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20200729/944a4733/attachment.key>


More information about the OSRM-talk mailing list