Hi Phil,

yes, you can put it into the hints and it will be available in the
WeightingMap which you can then read and use in your custom weighting.
See the docs regarding custom weighting for how to do this.

Regards,
Peter

On 07.03.2015 12:58, Philipp Kraus wrote:
> Hello,
>
> I would like to pass a specified java object on the GHRequest call that is 
> pushed into the calcWeight method of the Weighting class e.g.
>
> GHRequest l_request = new GHRequest( start_latitude, start_longitude, 
> end_latitude, end_longitude, myObject );
>
> and the calcWeight should be also:
>
> public final double calcWeight( final EdgeIteratorState p_edge, final boolean 
> p_reverse, final Object p_myobject )
>
> can I do this in any way?
>
> Phil
> _______________________________________________
> GraphHopper mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper


_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to