[GraphHopper] Inspect graph properties

Peter graphhopper at gmx.de
Sun Nov 9 10:27:56 UTC 2014


Hi Emux,

that should be indeed done automatically. Would you open an issue for it?

It should be simple to implement this via the StorableProperties e.g.
like we do it for graph.flagEncoders

There are the following properties:
graph.dimension -> elevation
prepare.done -> ch

But those internal property names are subject to change at any time. We
need this functionality in graphhopper.load

Regards,
Peter.

On 09.11.2014 10:52, Emux wrote:
> Hi Peter,
>
> Is there a way via the API to inspect a graph's properties prior
> loading it?
>
> GraphHopper class has to be initialized properly with setCHEnable,
> setElevation (and now with the turn restrictions too) prior calling
> load method.
> Too many combinations, or else the load will fail.
>
> Right now I catch these exceptions in order to cover all the cases,
> but is there a more elegant solution?
>
> -- 
> Emux
> Cruiser <http://wiki.openstreetmap.org/wiki/Cruiser> - Atlas
> <http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141109/d46fa419/attachment.html>


More information about the GraphHopper mailing list