[GraphHopper] optimal route
Дмитрий Пучков
d-puchkov at mail.ru
Fri Oct 25 07:27:19 UTC 2013
I try req.setType("fastest") but argument must be WeightCalculation, help please.
Пятница, 25 октября 2013, 11:23 +04:00 от Дмитрий Пучков <d-puchkov at mail.ru>:
>thanks for this hint request.setType("fastest"|"shortest").
>I mean that t he route is built not on a main road.
>http://graphhopper.com/maps/?point=56.848485%2C53.257985&point=56.853607%2C53.279529&locale=en-US
>
>Пятница, 25 октября 2013, 8:59 +02:00 от Peter K <peathal at yahoo.de>:
>>Hi,
>>
>>if you use CH you can set this only up-front (when preparing the
graph). If not, you can do request.setType("fastest"|"shortest")
... what do you mean with optimal?
>>
>>Regards,
>>Peter.
>>
>>>Hi!
>>>I use graphhopper on android and use it:
>>>GHRequest req = new GHRequest(fromLat, fromLon, toLat,
>>>
toLon).setAlgorithm("dijkstrabi").putHint(
>>> "douglas.minprecision", 1);
>>>GHResponse resp = hopper.route(req);
>>>
>>>Can I choose which route to build? the
shortest or the fastest or the
optimal ?
>>>--
>>>Дмитрий Пучков
>>>
>>>_______________________________________________
GraphHopper mailing list
>>>GraphHopper at openstreetmap.org
>>>https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>_______________________________________________
>>GraphHopper mailing list
>>GraphHopper at openstreetmap.org
>>https://lists.openstreetmap.org/listinfo/graphhopper
>>
>
>
>--
>Дмитрий Пучков
>_______________________________________________
>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/20131025/f8472867/attachment.html>
More information about the GraphHopper
mailing list