[Graphhopper] TomTom data's integration
Peter K
peathal at yahoo.de
Mon Mar 11 12:42:59 UTC 2013
Hey Philippe,
edges (and also nodes) is one big 'array' as explained in the developer
guide:
https://github.com/graphhopper/graphhopper/wiki/Developers (Technical
Overview)
So, every edge has the same number of properties. E.g. the distance, but
also an integer reference to the wayGeometry.
the loc2index serves the purpose of retrieving a node-id from a gps
coordinate. See Location2IDIndex.
Also this file is just a big integer array (although this will change in
the upcomming push) and it is a simplistic quadtree.
To integrate a different source other than OpenStreetMap you will need
to adjust the import (see the OSMReader* classes).
E.g. create edges like this
graph.edge(a, b, distance,
flagsLikeVelocityAndDirection).wayGeometry(listOfCoordinatesBetween_a_and_b)
and add node information like so:
graph.setNode(nodeIndex, latitude, longitude)
If you want to store more information than this you'll have to extend
GraphStorage - see LevelGraphStorage or GraphStorage3D.
Let me know if you need more information!
Regards,
Peter.
> Hi Peter,
>
>
>
> We would like to start our TomTom data's integration into GraphHopper.
>
>
>
> Could you describe us how your data's are organised on the file system?
>
> Could you describe the different concept: edge, nodes, loc2index, ...?
>
>
>
> Thank you for your help.
>
>
>
> Regards.
>
>
>
> *Suray Philippe*
>
> Product & Project Manager
>
>
>
> *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/>
>
> Description : Description : cid:image003.png at 01CD5521.849F3340
> <http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g>
>
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
--
GraphHopper.com - Your way is our destination!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130311/eb5907ef/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 1263 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130311/eb5907ef/attachment.png>
More information about the GraphHopper
mailing list