[GraphHopper] finding points along a route
Nicolas Gillet
nicolas.gillet at market-ip.com
Fri Aug 23 07:57:09 UTC 2013
Hello,
GraphHopper is perfectly suited to compute the route.
For the POI part, you'll need few more process but not that much.
Databases like PostgreSQL and other have a spatial extension that can very easily do what you're looking for in one single, yet efficient, query.
You'll end up writing something like "select * from MyPoiTable where st_contains(st_buffer(my_route_geometry, my_distance), MyPoiTable.geometry))"
Passing this query the route's geometry and distance to include POI's and you're done.
If you need to do more geometry operation inside your code, I recommend you the GeoTools library.
Finally I suggest you the OpenLayers javascript library to display your POI's along with the route on the map.
Nicolas GILLET
Market-IP - Creating Mobile Intelligence
Phone : +32 81 33 11 11
Fax : +32 81 33 11 10
www.market-ip.com - www.telefleet.com - www.geoplanning.net - www.drivexpert.net
-----Message d'origine-----
De : Konrad Bauckmeier [mailto:kontakt at dd4kids.de]
Envoyé : vendredi 23 août 2013 09:12
À : graphhopper at openstreetmap.org
Objet : [GraphHopper] finding points along a route
Hello,
for a new (private) webproject, I would like to search and display POIs along a calculated route.
The POI-data would be stored in a database with lat/long-coordinates.
I suppose after getting a route from graphhopper, the program would have to search along this route and list all POIs with a given max distance/time from the original route?
Would it be possible to solve this problem in graphhopper with a reasonable amount of developing time at all? Or is graphhopper not the best starting point for this kind of questions?
Greetings Konrad
_______________________________________________
GraphHopper mailing list
GraphHopper at openstreetmap.org
http://lists.openstreetmap.org/listinfo/graphhopper
More information about the GraphHopper
mailing list