[GraphHopper] GraphReader factory

Nicolas Gillet nicolas.gillet at market-ip.com
Mon May 27 07:51:22 UTC 2013


Hello,

I developed a custom graph reader for our need which worked fine as I could create and use our own data to create a graph used by GraphHopper.
When I last synced on Friday with the /master, I saw that some OSM graph initialization was moved from OsmReader to the GrahHopper class.
For those like us who use custom data source and reader this require quite an amount of modification to use our graph and this will become hard to maintain.

What I suggest is to create a GraphFactory class that would return a graph making abstraction of the data source.
Several graph reader implementations could then easily be added to this factory for an easy integration.
A property would be added to guide the factory in choosing the right implementation according everyone's need.

Are you interested in such feature ?

Regards,

Nicolas GILLET

Market-IP - Creating Mobile Intelligence
Phone : +32 81 33 11 11
www.market-ip.com<http://www.market-ip.com/> - www.telefleet.com<http://www.telefleet.com/> - www.geoplanning.net<http://www.geoplanning.net/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130527/3a78f71e/attachment-0001.html>


More information about the GraphHopper mailing list