-
Notifications
You must be signed in to change notification settings - Fork 75
Offline routing
graphhopper is creating open source Java routing library which can run also on Android device. It uses Mapsforge .map files, and creates own graphs on top of it.
AdvancedMap sample has GraphhopperRouteActivity.java which enables to open a graphhopper graph file package and calculates route between two clicks on map. It shows route as Line, and puts Markers to start, end and turn points. To detect clicks there is special MapListener RouteMapEventListener.java.
Sample data for Ontario, Canada: canada-ontario-gh3.zip (207 MB). AdvancedMap3D sample app requires data files to be uncompressed, so you would need two extra steps after downloading a ghz or zip file:
- rename ghz to zip (if it was not zip alread), and unzip it
- put all unzipped files (.map, edges, nodes etc) to a folder called <filename>-gh. For example europe_great-britain-gh must have europe_great-britain.map and all the other files
Please contact [email protected] about availability of routable map data packages with OpenStreetMap or commercial map data.