graphhopper

Graphhopper flexible routing ignore street segment

萝らか妹 提交于 2019-12-12 03:02:18
问题 I've read alot about flexible queries but unfortunatelly I couldn't find something satisfying yet. I want the routing algorithm to ignore a street segmet, because its flooded or broken. Is that possible (maybe by putting geopoints into the GHRequest)? If it is, what is the best practice for the implementation? update: Do i need to create a custom Weighting and set the forbiddenEdges which i get out of OpenStreetMap.org? Thanks for answers 回答1: Yes, a custom Weighting is currently necessary

How does GraphHopper handle a point on a highway intersections?

 ̄綄美尐妖づ 提交于 2019-12-11 10:44:45
问题 I have 2750 city centers in Belgium. I need to know the distances between every 2 city centers. But that results in an matrix of 57MB, just to remember those distances (not even the routes), so that scales terribly. Instead, I am looking at using Highway intersections as hubs. Basically, every city knows it's nearby cities and it's nearby hubs (= highway intersection). All hubs know the distance to each other. So the distance from 1 city A to another non-nearby city B, can be calculated by

Graphhopper: Cannot create location index when graph has invalid bounds

北城余情 提交于 2019-12-11 05:38:24
问题 I am using graphhopper 0.8 via maven in my java project. I create a network with the folling code FlagEncoder encoder = new CarFlagEncoder(); EncodingManager em = new EncodingManager(encoder); // Creating and saving the graph GraphBuilder gb = new GraphBuilder(em). setLocation(testDir). setStore(true). setCHGraph(new FastestWeighting(encoder)); GraphHopperStorage graph = gb.create(); for (Node node : ALL NODES OF MY NETWORK) { graph.getNodeAccess().setNode(uniqueNodeId, nodeX, nodeY); } for

Gradle: How to use specific version of snapshot?

最后都变了- 提交于 2019-12-10 19:47:43
问题 I'm using SNAPSHOT version of graphhopper library. Is there posibility to use older version of snapshot? I tried: compile(group: 'com.graphhopper', name: 'graphhopper', version: '0.6-20151126.110118-54') { exclude group: 'com.google.protobuf', module: 'protobuf-java' exclude group: 'org.openstreetmap.osmosis', module: 'osmosis-osm-binary' exclude group: 'org.apache.xmlgraphics', module: 'xmlgraphics-commons' } As repository I use: maven { url "https://oss.sonatype.org/content/groups/public/"

Self hosting GraphHopper Directions API

眉间皱痕 提交于 2019-12-10 04:24:42
问题 We are looking for an offline routing and reverse geocoding service. GraphHopper advertises that its Directions API can be self-hosted: GraphHopper Directions API Self-Hosting / On-Premises The Directions API comes as a cloud service where you pay on-demand. The API is also available as on-premises solution (self-hosted), which gives you maximum performance, customization possibilities, independence; all in your hands! After installing GraphHopper on my local instance as per these

Self hosting GraphHopper Directions API

人盡茶涼 提交于 2019-12-05 07:47:40
We are looking for an offline routing and reverse geocoding service. GraphHopper advertises that its Directions API can be self-hosted : GraphHopper Directions API Self-Hosting / On-Premises The Directions API comes as a cloud service where you pay on-demand. The API is also available as on-premises solution (self-hosted), which gives you maximum performance, customization possibilities, independence; all in your hands! After installing GraphHopper on my local instance as per these instructions , I am able to perform routing queries successfully through the localhost HTTP API. How do I get

GraphHopper vehicle=car works but foot or bike don't work

放肆的年华 提交于 2019-12-04 01:24:35
问题 I have an issue with the GraphHopper routing engine stable version 0.5 I can get directions when using the vehicle=car , but this fails with bike and foot . Here is an example of a roughly 3-minute walk on GraphHopper Maps: This yields a result on the map, which is great. I have used the exact same coordinates when running this locally, to obtain the JSON data as follows: http://localhost:8989/routes?point=-33.916567%2C18.417914&point=-33.917584%2C18.418935&locale=en-US&vehicle=foot This

Graphhopper, osmdroid for osmdroid offline routing

﹥>﹥吖頭↗ 提交于 2019-12-03 13:50:53
问题 I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix: The official Wiki guide is as following: Download a raw map file(.osm, .osm.pbf, etc.). Run ./graphhopper.sh import map_file Now, this is designed to work with MapsForge, and I haven't had the chance to check out

Graphhopper, osmdroid for osmdroid offline routing

末鹿安然 提交于 2019-12-03 03:51:37
I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix: The official Wiki guide is as following: Download a raw map file(.osm, .osm.pbf, etc.). Run ./graphhopper.sh import map_file Now, this is designed to work with MapsForge, and I haven't had the chance to check out the resulting .ghz file, containing the routing data for the map, BUT my question is this, could it be

Graphhopper returns “not found”

陌路散爱 提交于 2019-12-02 07:13:25
问题 I'm testing graphhopper for some days now but there is a strange problem when a Location ist to far away for the next street graphhopper returns the error "not found" the strange thing is that it works on the graphhopper-demo-server I tried with alps, europe and now with the whole planet - the error keeps the same so here it works: https://graphhopper.com/maps/?point=47.50562070,14.10270890&point=47.80000740,13.04219230&locale=de&layer=Lyrk but not on my server: http://osm.testerl.webseiten