[GraphHopper] Load a custom edge weight
Peter
graphhopper at gmx.de
Sat Mar 7 16:07:43 UTC 2015
Hi
>>
>> yes, there is algo.setWeightLimit (where you can e.g. use
>> weighting.getMinWeight(distance)) and we'll probably add or change this
>> to a more controllable feature like visited nodes very soon.
> Just a clarification. Suppose I have a source and destination point
> that are geographically distant D. My weighting function is something
> in the range [0,1] not related to distance. For having a path that
> minimizes w and is not longer than, for example, than 2*D (I mean
> globally) should I use algo.setWeightLimit?
Probably not, I'm not sure about your exact use case. Having the
weighting AND the distance available would mean more complex algorithms
so it is unlikely to happen. Why would you need the limitation?
> In the positive, how can I set this limit for each GHRequest?
Currently that is not from GHRequest only 'global' for GraphHopper
Regards,
Peter
More information about the GraphHopper
mailing list