<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Perhaps it may be easier to import traffic lights nodes as tower
nodes?<br>
<br>
<div class="moz-cite-prefix">On 27.02.2015 22:54, Peter wrote:<br>
</div>
<blockquote cite="mid:54F0CB5D.1050604@gmx.de" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">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" class="moz-txt-link-freetext"
href="https://github.com/graphhopper/graphhopper/issues/75">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
cite="mid:CAGT7ENc8EOa-wqUrS84BvAQdvUTxWjr92GzpvWT0VG5C5w72Vg@mail.gmail.com"
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.01080101.04020002@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>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
<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>