i did follow the tutorial steps and I am able to start the sample app. With the help of tutorial I am able to load Romania map area only. Now I want to load some other area like California USA. I ran below command to download the file
Take a look at the import-sample.sh file. It creates a GRAPH_FILE=âgraph-data.osm.pbfâ in the graphhopper directory of the sample app. You can take that and use it where you need it in your app, once you imported it in the sample app.
cd graphhopper
if [ -z ${FILE+x} ]; then
FILE="romania-latest.osm.pbf"
fi
GRAPH_FILE=âgraph-data.osm.pbf"
if [ ! -e $FILE ] && [ ! -e $GRAPH_FILE ]; then
echo âDownloading http://download.geofabrik.de/europe/$FILE"
curl -O http://download.geofabrik.de/europe/$FILE
fi
if [ ! -e $GRAPH_FILE ]; then
mv $FILE $GRAPH_FILE
fi
rm -rf $(expr $GRAPH_FILE : â([^.]*).â)â.osm-ghâ
Itâs enough to specify FILE before the import script as you say you did, you donât need to modify it in the script since it will be overwritten by your value anyway.
However this is just a sample import script, you could import it using GraphHopperâs official instructions, just make sure youâre using the same GraphHopper version when importing as the version in the iOS port (thus the git checkout 0.8.2 in the script).