[GraphHopper] Question about traffic signals

Jan Soelter jan.soelter at graphhopper.com
Fri Feb 27 19:52:05 UTC 2015


Hi Anqi,

an OSMway is split into "graphhopper edges" at OSMreader.addOSMway()
So I would suggest
(1) to store in every OSMway the NodeIds of traffic signs, and than in
addOSMway distribute them accordingly to the edges
(2) store the information per Node, e.g. in the nodeFlagsMap and than
add the information again in the addOSMway method

Cheers,
Jan


Am 27.02.2015 um 20:24 schrieb 高安琪:
> 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
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150227/7f4fa019/attachment.html>


More information about the GraphHopper mailing list