<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I'm not sure, but i think you need create extendedStorage like
TurnCosts.<br>
<br>
<div class="moz-cite-prefix">On 02.03.2015 23:32, 高安琪 wrote:<br>
</div>
<blockquote
cite="mid:CAGT7ENcNWZtMgxVbNJOZ5SYT4oz2Vp2hA05PMNSmHaZzMQZfYg@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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:part3.08040103.03090407@gmail.com"
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 moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>