[GraphHopper] Additional Datasource for Graph Construction

Peter K peathal at yahoo.de
Mon May 27 08:55:14 UTC 2013


Hi Quinton,

do you mean external datasource like the elevation data in #43? Or more
in the direction of two graphs (like GTFS as external data source) which
should be merged?

Regards,
Peter.


> 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, 
>       o and add the functionality to extract the way ID
>       o 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/56daa383/attachment-0001.html>


More information about the GraphHopper mailing list