-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo Crash #4
Comments
The "graphHopperLocation is not specified. call init before" error is in the GraphHopperTest.java#L397 file, which is part of the test suite and the iOS project doesn't call that.
|
When i run the sample App
and the stack trace
|
This looks like a graph data import issue. If you imported the data as described in the sample app, make sure you have all the Requirements, especially Maven. Check if the import succeeded by running $ ls -l graphhopper/graph-data.osm-gh/
total 204912
-rw-r--r-- 1 calin staff 50M Apr 20 20:57 edges
-rw-r--r-- 1 calin staff 26M Apr 20 20:57 geometry
-rw-r--r-- 1 calin staff 12M Apr 20 20:56 location_index
-rw-r--r-- 1 calin staff 2.0M Apr 20 20:57 names
-rw-r--r-- 1 calin staff 10M Apr 20 20:57 nodes
-rw-r--r-- 1 calin staff 32K Apr 20 20:57 properties If you don't have this then most probably your import failed and you need to reimport the data. If everything checks out, try running everything again, from scratch. Below is the sequence of commands I just ran successfully on my local machine. They are exactly like in the docs but I wrote them here for convenience. Watch out for any errors. $ git clone --recursive https://github.com/graphhopper/graphhopper-ios.git
$ cd graphhopper-ios
$ ./graphhopper-ios-sample/import-sample.sh
$ curl -L -o j2objc-0.9.6.1.zip "https://github.com/google/j2objc/releases/download/0.9.6.1/j2objc-0.9.6.1.zip" && unzip j2objc-0.9.6.1.zip && mv j2objc-0.9.6.1 j2objc && rm j2objc-0.9.6.1.zip
$ open graphhopper-ios-sample/graphhopper-ios-sample.xcodeproj
# in Xcode, Build & Run on Simulator |
graph-data.osm-gh my file is graph-data.osm.pbf |
|
i have graph-data.osm.pbf how i can make it as graph-data.osm-gh |
By running |
when i run it Downloading http://download.geofabrik.de/europe/romania-latest.osm.pbf |
If the download starts it means you don't have it in the right place. However that's fine, after the download finishes the graph data will be created automatically and you can start playing with it in Xcode. There are instructions for importing Germany as well in the sample app. |
in xcode i will import romania-latest.osm.pbf file? |
Yes, by default the import script imports romania-latest.osm.pbf, so you can only create routes within Romania. This is just an example, you can follow the instructions on the sample app to import any country you want. |
i found the problem in marven ,did it take time when convert |
i still have problem but from marven Now
|
I'm not familiar with Maven, it is used by GraphHopper as its build system. Try google-ing the errors to see if you can find something useful. This popped up on a very quick search, not sure if it will be of any help. As this error is not related to graphhopper-ios but core graphhopper maybe @karussell would know why Maven is complaining. |
thanks Again I try in it |
It looks, like some HTTPS/host problems with maven central. Maybe you just try it again? If that does not help try what was suggested in @clns its link: |
How was this fixed? @dimohamdy |
I install Maven that use to convert graph-data.osm.pbf to graph-data.osm-gh |
There is exception when demo try to make route and this message apper
"graphHopperLocation is not specified. call init before"
graphHopperFolder is nil please help me
The text was updated successfully, but these errors were encountered: