[GraphHopper] Shortest route (not fastest) from Paris to Rome

Peter graphhopper at gmx.de
Mon Sep 29 09:35:04 UTC 2014


Hi Geoffrey,

Yes, sure. If you use CH do before the import:
hopper.setCHShortest("shortest")
// on master this is called setCHWeighting

if you use GH without CH you can change this per request
ghRequest.setWeighting("shortest")

What you are after are probably more 'alternative routes', this is not
yet included but will at some point (and in some dev branch if you need
more details)

Kind Regards,
Peter.


On 29.09.2014 11:22, Geoffrey De Smet wrote:
> Is it possible to ask GraphHopper to find the absolute shortest path
> between 2 locations?
>
> Let's say we want to travel from Paris to Rome.
> The sensible road takes highways that go through Lyon, Nice and Milan.
> But the shortest road takes the dirt roads that cross the Alpes.
> Can I ask GraphHopper for that route?
>
> Wkr,
> Geoffrey
>
>
>
>
> _______________________________________________
> 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/20140929/171fb1b8/attachment.html>


More information about the GraphHopper mailing list