<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
i'm not sure if i really understand what you want.<br>
But maybe it helps if you take a look at<span
style="background-color:#e4e4ff;"> OSMreader.processWay</span>,
where barrier nodes are converted to towernodes?<br>
I for my part would use this method, which assigns OSMnodes to
GraphHopper edges anyhow, and directly covert the nodeflags directly
to edgeflags.<br>
<br>
Cheers,<br>
Jan <br>
<br>
<div class="moz-cite-prefix">Am 02.03.2015 um 21:32 schrieb 高安琪:<br>
</div>
<blockquote
cite="mid:CAGT7ENcNWZtMgxVbNJOZ5SYT4oz2Vp2hA05PMNSmHaZzMQZfYg@mail.gmail.com"
type="cite">
<pre wrap="">Hi all,
Thanks very much for your helps. :p
I am working on importing traffic lights nodes as tower nodes.
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.
:(
Could you please provide some details on how to do it?
Thx verrrry much~ :p
Regards,
Anqi
2015-02-27 20:34 GMT+00:00 Peter <a class="moz-txt-link-rfc2396E" href="mailto:graphhopper@gmx.de"><graphhopper@gmx.de></a>:
</pre>
<blockquote type="cite">
<pre wrap=""> Yes, good idea. Then you'll have a bit more nodes but an easier handling
Regards,
Peter
On 27.02.2015 21:29, dos65 wrote:
Perhaps it may be easier to import traffic lights nodes as tower nodes?
On 27.02.2015 22:54, Peter wrote:
Hi,
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 class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/75">https://github.com/graphhopper/graphhopper/issues/75</a>
Regards,
Peter
On 27.02.2015 20:24, 高安琪 wrote:
Hi,
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.
We try to show the number of traffic signals to user on Graphhopper.
We get the number of traffic signals by using node.hasTag(). Then store
it in OSMWay.
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)
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.
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.
[image: 内嵌图片 1]
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?
Regards,
Anqi
_______________________________________________
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>
<pre wrap="">
</pre>
<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>