<div dir="ltr">I promise I'll try! But could you maybe just give me an example of how to specify the inclusion of a subway edge? </div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-26 16:11 GMT-04:00 Nate Wessel <span dir="ltr"><<a href="mailto:nate.wessel@mail.utoronto.ca" target="_blank">nate.wessel@mail.utoronto.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Precisely. I would suggest using the profile documentation to
build a simple profile from the ground up. The default profiles
are very complicated and take advantage of some features of the
Lua language that you may not understand when you first look at
them. I didn't. I do believe the profile documentation is pretty
complete though; the default profiles just have a lot of complex
stuff built on top of that.<br>
</p><span class="">
<div class="m_-3218405908745346692moz-signature">Nate Wessel<br>
<span style="font-size:10px;color:#777">Jack of all trades, Master
of Geography, PhD Candidate in Urban Planning <br>
<a href="http://sausy.ca" target="_blank">SAUSy Lab</a>, Sid Smith Hall,
University of Toronto</span>
<br>
<br>
</div>
</span><div><div class="h5"><div class="m_-3218405908745346692moz-cite-prefix">On 04/26/2018 04:00 PM, Patrick Agin
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">And by "handle subway lines", you mean "specify
that only subway edges are included"?
<div>Can I ask you to point in .lua profile where you specify
such a thing? In <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">restricted_highway_<wbr>whitelist </span>structure
maybe? </div>
<div>The readme on profiles seems good but it's general (for
example, there is nothing about this
restricted_highway_whitelist).<wbr> </div>
<div>Do you know where can I find a complete
tutorial/documentation on writing profiles?</div>
<div>thanks again Nate</div>
<div>Patrick</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-26 15:30 GMT-04:00 Nate Wessel
<span dir="ltr"><<a href="mailto:nate.wessel@mail.utoronto.ca" target="_blank">nate.wessel@mail.utoronto.ca</a>></span><wbr>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>You can use a profile to determine which edges are
included in the graph, which are accessible, etc. If for
example you only handled subway lines in the profile and
disregarded all other data from OSM, you would only be
able to match things to subways.<br>
<br>
A GPS trace from someone e.g. walking aboveground but
parallel to a subway track would also likely match to
the subway rails because there would be no more-likely
candidates to match to.<br>
</p>
<span>
<div class="m_-3218405908745346692m_832782489488424081moz-signature">Nate
Wessel<br>
<span style="font-size:10px;color:#777">Jack of all
trades, Master of Geography, PhD Candidate in Urban
Planning <br>
<a href="http://sausy.ca" target="_blank">SAUSy Lab</a>, Sid Smith
Hall, University of Toronto</span> <br>
<br>
</div>
</span>
<div>
<div class="m_-3218405908745346692h5">
<div class="m_-3218405908745346692m_832782489488424081moz-cite-prefix">On
04/26/2018 02:32 PM, Patrick Agin wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks again Nate, I will take a look
for sure. But just out of curiosity, what your ttc
profile is useful for then? And how do you (in
general, big picture only) define in a profile
that it's subway only? And does it mean that when
map matching against this profile, only subway
routes will be returned?
<div>Patrick</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-26 12:35
GMT-04:00 Nate Wessel <span dir="ltr"><<a href="mailto:nate.wessel@mail.utoronto.ca" target="_blank">nate.wessel@mail.utoronto.ca</a>></span><wbr>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>This one won't return a subway route
because I haven't configured it for that.
I don't have subway trains in the dataset
I'm working with for Toronto. But it would
be pretty easy to make a subway only
profile, or to add subways into this one
if you want to do all transit modes in one
profile. Take a look at this page for
documentation on how profiles work: <a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-txt-link-freetext" href="https://github.com/Project-OSRM/osrm-backend/blob/master/docs/profiles.md" target="_blank">https://github.com/Project-OSR<wbr>M/osrm-backend/blob/master/doc<wbr>s/profiles.md</a></p>
<p>If you want to understand how map
matching in OSRM works generally, I think
this paper is a good place to start: <a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-txt-link-freetext" href="https://www.microsoft.com/en-us/research/wp-content/uploads/2016/12/map-matching-ACM-GIS-camera-ready.pdf" target="_blank">https://www.microsoft.com/en-u<wbr>s/research/wp-content/uploads/<wbr>2016/12/map-matching-ACM-GIS-c<wbr>amera-ready.pdf</a><br>
<br>
When you change the profile, you're
essentially configuring the
street/rail/whatever network that your GPS
trace will match against. Montreal
definitely has subways in OSM; you can see
them in the main map at <a href="http://openstreetmap.org" target="_blank">openstreetmap.org</a>.</p>
<span>
<p>Best,<br>
</p>
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-signature">Nate
Wessel<br>
<span style="font-size:10px;color:#777">Jack
of all trades, Master of Geography,
PhD Candidate in Urban Planning <br>
<a href="http://sausy.ca" target="_blank">SAUSy Lab</a>,
Sid Smith Hall, University of Toronto</span>
<br>
<br>
</div>
</span>
<div>
<div class="m_-3218405908745346692m_832782489488424081h5">
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-cite-prefix">On
04/26/2018 10:52 AM, Patrick Agin
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Nate and thank you
very much for your help. I have a
very basic question about your ttc
profile (sorry if it's too silly).
When you match a GPS dataset against
this profile instance, will it
return a subway route for example?
If yes, why this subway route would
be declared much plausible by osrm
than the street route? Only because
of the ttc profile? I realize that I
don't understand very well the
involved mechanisms behind osrm and
profiles, if you can shed some light
on this, I would greatly appreciate.
Another question: I suppose that the
subway data has to be included in
the osm data of my city (Montreal)
in order to get subway routes from
match . How can I know if it's there
or not in my osm data?
<div>Thank you again Nate,</div>
<div>Patrick</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-26
9:36 GMT-04:00 Nate Wessel <span dir="ltr"><<a href="mailto:nate.wessel@mail.utoronto.ca" target="_blank">nate.wessel@mail.utoronto.ca</a>></span><wbr>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>I've had some success with
transit matching by simply
modifying the car profile to
allow routing on streetcar
tracks, allowing access for
buses and public service
vehicles, etc. Here's a
profile I'm using for
transit now:<br>
</p>
<p><a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-txt-link-freetext" href="https://github.com/SAUSy-Lab/retro-gtfs/blob/master/etc/ttc.lua#L347" target="_blank">https://github.com/SAUSy-Lab/r<wbr>etro-gtfs/blob/master/etc/ttc.<wbr>lua#L347</a></p>
<p>I had also tried to develop
a more transit specific
profile from the ground up.
My thought was that known
transit routes (provided in
the OSM data) would be
preferred by modifying their
edge weights. This however
ran into an issue with the
matching service which
hasn't been resolved yet;
edge weights simply aren't
used in match results. <a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-txt-link-freetext" href="https://github.com/Project-OSRM/osrm-backend/issues/4785" target="_blank">https://github.com/Project-OSR<wbr>M/osrm-backend/issues/4785</a></p>
<p> If anyone has a suggestion
for the question about
multimodal paths, I would be
very keen to hear it,
however I suspect this is
still an open topic of
research with no definite
best practices. <br>
</p>
<p>Best,<br>
</p>
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-signature">Nate
Wessel<br>
<span style="font-size:10px;color:#777">Jack
of all trades, Master of
Geography, PhD Candidate
in Urban Planning <br>
<a href="http://sausy.ca" target="_blank">SAUSy
Lab</a>, Sid Smith Hall,
University of Toronto</span>
<br>
<br>
</div>
<div>
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440h5">
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-cite-prefix">On
04/26/2018 09:01 AM,
Patrick Agin wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_-3218405908745346692m_832782489488424081m_6972360128466322440h5">
<div dir="ltr">
<p>Dear all,</p>
<p>I'm a newbie to
routing engines and
my first attempts
are with OSRM.
Specifically I want
to use the<span class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953gmail-Apple-converted-space"> </span><em style="font-family:inherit;font-variant-caps:inherit;font-weight:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">match </em>service.
Questions I have is
:<span class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953gmail-Apple-converted-space"> </span><br>
</p>
<p>1) is it possible
with match service
to specify public
transport (e.g.
subway) as the mode
of transportation? I
see only profiles
for car, bike and
foot. If not, is
there a solution?
I'm pretty sure it
it possible but how?
I saw in some
profiles the
public_transport
parameter but I
don't know how to
use it.</p>
<p>2) is it possible
for match to return
a multi-modal path
given the timestamps
of each coordinate?
For example, return
a sub-path that is
the most plausible
for pedestrian
(chosen because of
the low speed
inferred from
timestamps) followed
by another subpath
that is the most
plausible for car
(because of a higher
speed)? Or is the
only solution to
pre-process the data
to infer by myself
the mode of
transportation and
make subsequent
calls to the
corresponding
profile instance?</p>
<p>Thanks a lot,</p>
<p>Patrick</p>
</div>
<br>
<fieldset class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
OSRM-talk mailing list
<a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a>
<a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440m_6743982928765403953moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a>
</pre>
</blockquote>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="m_-3218405908745346692m_832782489488424081m_6972360128466322440mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
OSRM-talk mailing list
<a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a>
<a class="m_-3218405908745346692m_832782489488424081m_6972360128466322440moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="m_-3218405908745346692m_832782489488424081mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
OSRM-talk mailing list
<a class="m_-3218405908745346692m_832782489488424081moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a>
<a class="m_-3218405908745346692m_832782489488424081moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/osrm-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="m_-3218405908745346692mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
OSRM-talk mailing list
<a class="m_-3218405908745346692moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org" target="_blank">OSRM-talk@openstreetmap.org</a>
<a class="m_-3218405908745346692moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>