[GraphHopper] finding points along a route

Konrad Bauckmeier kontakt at dd4kids.de
Fri Aug 23 09:14:55 UTC 2013


Hello Nicolas
Thank you for the very comprehensive answer!
Greetings Konrad


Am 23.08.2013, 09:57 Uhr, schrieb Nicolas Gillet  
<nicolas.gillet at market-ip.com>:

> 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



More information about the GraphHopper mailing list