[GraphHopper] Additional Datasource for Graph Construction

Quinton Anderson quintona at gmail.com
Mon May 27 04:35:44 UTC 2013


Hi,

I have a separate data source which needs to be merged into the graph as part of the OSM import process. The data essentially consists of a set of ways, each consisting of a way ID and a list of nodes. The Way id corresponds to the OSM way ID exactly. The nodes consist of a lat, long and sequence number within the way (which includes the version). My current thought process is: 
to process this separate datasource first
Override OSMReaderHelper.parseWay, 
and add the functionality to extract the way ID
Add the external nodes to the list where applicable based on a match of the way IDs between the datasets, and in the correct order.

This should allow my external data to mix in quite nicely. Can anyone suggest a better approach or a way to generalize it better?

Regards,
Quinton Anderson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130527/8b454687/attachment-0001.html>


More information about the GraphHopper mailing list