[GraphHopper] Offline model of Graphhopper

Peter K peathal at yahoo.de
Fri May 31 13:40:01 UTC 2013


Hi Andrey,

the routing service is available offline but you still need the online
map! For Android we've mapsforge which produces offline maps. And for
the desktop we could use an old version of mapsforge (or in some months
0.4 of it) but I cannot do this due to lack of time at the moment (your
contributions is welcome via pull request though :)) !

Regarding your issue: after one successful build with maven (with
internet) you can try to put "-o" on the command line (offline mode) and
the disconnect the internet + restart.
See http://stackoverflow.com/q/7233328/194609

Regards,
Peter.

> In my project I want to use web server without internet. So I've got :
> 1 Virtual machine with internet and one without internet.  On first VM
> I run GH-web server one time with internet and after that it starts
> without net. I copy GH-web server project from first machine(it works
> in offline) and starting in offline on second machine. And it try's to
> download files. What files should I download from first machine or
> previously download from internet to start web server without internet
> at all. 
>
>
>
> andrey at ubuntu:~/graphhopper-master$ ./graphhopper.sh web pskov.osm
> ## using java 1.7.0_21 (64bit) from /usr/lib/jvm/jdk1.7.0_21
> ## using existing osm file pskov.osm
> ## existing jar found
> core/target/graphhopper-0.1-SNAPSHOT-jar-with-dependencies.jar
> ## now web. JAVA_OPTS=-XX:PermSize=300m -XX:MaxPermSize=300m
> -XX:-UseGCOverheadLimit -Xmx1500m -Xms1500m
> *********************ALL MUST WORK*******************
> [INFO] Scanning for projects...
> Downloading:
> http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project com.graphhopper:graphhopper-web:0.1-SNAPSHOT
> (/home/andrey/graphhopper-master/./web/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM for
> com.graphhopper:graphhopper-parent:0.1-SNAPSHOT: Could not transfer
> artifact org.sonatype.oss:oss-parent:pom:7 from/to central
> (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or
> service not known and 'parent.relativePath' points at wrong local POM
> @ com.graphhopper:graphhopper-parent:0.1-SNAPSHOT,
> /home/andrey/graphhopper-master/pom.xml, line 16, column 13: Unknown
> host repo.maven.apache.org: Name or service not known -> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
>  
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper


-- 
GraphHopper.com Your way is our destination!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130531/4aa80814/attachment-0001.html>


More information about the GraphHopper mailing list