GraphHopper.com | Forum | GitHub | Maps | Blog

Help for Change config.properties


#1

Hi , i wanna create graph data for car,motorcycle,foot for using on android offline Routing
So Change config.properties like below :

# Possible options: car,foot,bike,bike2,mtb,racingbike,motorcycle (comma separated)
# bike2 takes elevation data into account (like up-hill is slower than down-hill) and requires enabling graph.elevation.provider below
graph.flag_encoders=car,motorcycle,foot

and add graph.bytes_for_flags=8 too .

after run ./graphhopper.sh import '/home/sm/Desktop/iran.map'
throw Exeption :

Exception in thread "main" java.lang.IllegalStateException: Couldn't load from existing folder: /home/sm/Desktop/iran-gh but also cannot use file for DataReader as it wasn't specified!

Any one can help me to fix it ?

I using - version 0.10 And java version "1.8.0_162"

Thanks .


#2

As input need to give the area osm/pbf file.

The map files are offline Mapsforge maps, suitable for map viewing, not for creating graphs.


#3

Oh … Sorry , I did not mention the file name .
thanks bro.


#4

I’m still in favor of putting a real, actual filename into our example config. Like, the Monaco dataset. What do you think?


#5

Why? E.g. in this case it would be overwritten from the iran.map file

And in other cases having a name in the default config could hide a wrongly specified datareader.file config, but I’m not insisting if you prefer it :slight_smile:


#6

Where do you put the config.properties file? Or how do you tell it where to read it from?