[GraphHopper] Problems with maven/mapsforge

Peter K peathal at yahoo.de
Mon Dec 16 19:58:25 UTC 2013


Hi Ignas,

> removed the space and ran Custom -> install&run and it worked. thank
> you! 
> had no idea that when you use maven you need to run it like that. need
> to catch up a little bit.

Yes, in Java it shouldn't matter but I have no idea. Maybe some bash
script bug somewhere ...


> just one more problem - when I ran ./graphhopper.sh import
> <your-osm-file> I got these errors (see images)

Where did you get the pbf file? Are you sure the pbf downloaded
successfully? Check the file size or checksum.


> As I understand it's one of limitations as it's written in wiki - 
>
>  *
>
>     For now OSMReader does not work on Android due to some javax.xml
>     dependencies. But you can simply create the graphhopper folder on
>     your desktop and copy them to the Android storage.
>
> but what I don't understand is what should I copy there? Map(s)? 
> As I understand - first you create routing data and only then add your
> map?

After you've created the routing files (via graphhopper.sh import or
API) the folder 'your-osm-file-gh/' will have some files. Then you'll
additionally need an offline map for that area. This is done with the
help of mapsforge. To see what I mean e.g. install the apk from the
download section and get the 'berlin' area. Now it will download and
extract routing data and map data under
/sdcard/graphhopper/maps/berlin-gh with an additional berlin.map file.

To make this working for your area you'll have to do like it is
described in the wiki (or ask me to add an area for download).

Kind Regards,
Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131216/1b3fb0e0/attachment.html>


More information about the GraphHopper mailing list