[GraphHopper] How to initialize my own flagEncoder?

John Zhao johnthu at gmail.com
Thu May 28 18:14:23 UTC 2015


Hi,

I have a project which use GH as a library.
I have implemented my own flag encoder, like xxxFlagEncoder.
I don't figure out a good way to initialize it, except to change the
EncodingManger to insert xxxFlagEncoder on parseEncoderString().
I think it's better the change the way EncodingManger initialize all the
flagEncoders.
EncodingManger can use reflection to find the class or flagEncoder from its
name, if we standardize the name and toString method.

Do you think it's a good idea, or there is a better way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150528/4be2acde/attachment.html>


More information about the GraphHopper mailing list