<div dir="ltr">Hi all,<div><br></div><div>Thanks very much for your helps. :p</div><div><br></div><div>I am working on importing traffic lights nodes as tower nodes.</div><div><br></div><div>However, I am not familiar with GraphHopper and get stuck in it. I have already encoded traffic lights into nodeflag. The problem is I don't know where I can add nodeflags into tower nodes. No ideas with how to handle it. :(</div><div><br></div><div>Could you please provide some details on how to do it?</div><div><br></div><div>Thx verrrry much~ :p</div><div><br></div><div>Regards,</div><div>Anqi</div>
</div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-27 20:34 GMT+00:00 Peter <span dir="ltr"><<a href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</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">
<div>Yes, good idea. Then you'll have a bit
more nodes but an easier handling<br>
<br>
Regards,<br>
Peter<span class=""><br>
<br>
On 27.02.2015 21:29, dos65 wrote:<br>
</span></div><span class="">
<blockquote type="cite">
Perhaps it may be easier to import traffic lights nodes as tower
nodes?<br>
<br>
<div>On 27.02.2015 22:54, Peter wrote:<br>
</div>
<blockquote type="cite">
<div>Hi,<br>
<br>
this is possible but kind of tricky with the current import
procedure. You'll have to determine which OSM nodes belond to
which GH node (keep in mind that for certain situations,
especially for car, one OSM node could also be on an GH edge).
So you will need to store a traffic signal counter per edge
and put it e.g. into the flags. Please read also through: <a href="https://github.com/graphhopper/graphhopper/issues/75" target="_blank">https://github.com/graphhopper/graphhopper/issues/75</a><br>
<br>
Regards,<br>
Peter<br>
<br>
On 27.02.2015 20:24, 高安琪 wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am a student majored in computer
science from University of Nottingham. There is a group
project for my second year module. We are working on
adding new features to Graphhopper.</div>
<div><br>
</div>
<div>We try to show the number of traffic signals to user
on Graphhopper.</div>
<div><br>
</div>
<div>We get the number of traffic signals by
using node.hasTag(). Then store it in OSMWay.</div>
<div><br>
</div>
<div>We show the number of traffic signals for specific
way on the front-end. (we do it in the same way as
showing road name of specific way)</div>
<div><br>
</div>
<div>The problem is that user may pass through a part of
road(OSMWay), not entire road(OSMWay) and it shows the
total traffic signals on this roads which is useless for
user.</div>
<div><br>
</div>
<div>E.g. There are 2 traffic signals on Ilkeston Road,
user will encounter one of them. We do it in the
way mentioned above and it just shows the total traffic
signals instead of the exact number of traffic signals
user may encounter.</div>
<div><br>
</div>
<div><img src="cid:part2.02070805.02040000@gmx.de" alt="内嵌图片 1" height="95" width="494"></div>
<div><br>
</div>
<div>May I ask is it possible for us to show exact number
of traffic signals user may encounter. If we could do
it, may I ask for some suggestions about how to
implement it?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Anqi</div>
<br>
</div>
</div>
</blockquote>
</blockquote>
</blockquote>
<br>
</span></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>