[GraphHopper] State and Province crossings

Nicolas Gillet nicolas.gillet at market-ip.com
Tue Oct 15 06:52:33 UTC 2013


Hi Tim,

I basically see 2 ways of doing this

The first consist of catching provinces' border nodes while computing the path's distance. Iterating over the path's nodes and split the path each time the encountered node is a border node.
This would require some modification in OSM import process to ensure that there is always a node in the border. You'd also have to decorate node storage to store the "isBorder" info.

The second would be to use graphhopper as is and then use a library like GeoTools to split the road using the provinces' geometries as a "cookie cutter".

The first one might be more efficient, the second easier to implement.

Regards,

Nicolas GILLET


Market-IP - Creating Mobile Intelligence
Phone : +32 81 33 11 11
Fax : +32 81 33 11 10
www.market-ip.com<http://www.market-ip.com/> - www.telefleet.com<http://www.telefleet.com/> - www.geoplanning.net<http://www.geoplanning.net/> - www.drivexpert.net<http://www.drivexpert.net/>
[Description : cid:image003.png at 01CD5521.849F3340]<http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g>

De : Tim g [mailto:tgalla0102 at gmail.com]
Envoyé : mardi 15 octobre 2013 00:38
À : graphhopper at openstreetmap.org
Objet : [GraphHopper] State and Province crossings

Good afternoon all,

 - I came across this amazing project today, and was able to get the source up and running pretty quickly.   One of the needs of the project I am working on is to be able to break out mileages of a route by state/province.  I am quite comfortable in Java, but not as much with routing and the 'guts' of OSM data yet.
 - Would there happen to be anything in the works to possibly be able to do this, and if not any thoughts on if possible, and the size of the undertaking to be able to do so?     If the existing framework would reasonably support doing this, I'd appreciate any pointers in the right direction.

Thank you all for your time,
 ~Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131015/048bad6e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1263 bytes
Desc: image001.png
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131015/048bad6e/attachment.png>


More information about the GraphHopper mailing list