Questions tagged [graphhopper]

GraphHopper is a fast and Open Source route planner library and server written in Java.

GraphHopper is a fast and Open Source road routing engine written in Java. Running in desktop, mobile and server environments. It is customizable but provides pedestrian, bicycle and car routing per default.

223 questions
1
vote
1 answer

Graphhopper Route for Pedestrian android

How do i set route type to Pedestrian in Graphhopper android? I have been using GHRequest.setVehicle() method in android, and it does not work. I have tried using "foot", and "bike". None worked. Also, it doesn't work when i changed Algorithms too.…
user2070333
  • 335
  • 2
  • 11
1
vote
0 answers

How to use DataAccess to store Long Int map in GraphHopper

I found this : https://github.com/karussell/graphhopper-osm-id-mapping/blob/master/src/main/java/com/graphhopper/osmidexample/MyGraphHopper.java // Set long pointer = 8L * edgeId; edgeMapping.ensureCapacity(pointer +…
user163695
  • 13
  • 3
1
vote
2 answers

Why does graphopper use some OpenStreeMap railway elements for car graph build up

The project graphhopper (Open Source Routing for OpenStreetMap) imports specific railway elements to be later used in the road network graph. In File CarFlagEncoder.java some specific railway types, which are stored in acceptedRailways, are allowed…
AlexWien
  • 28,470
  • 6
  • 53
  • 83
1
vote
0 answers

File lock exception when using graphHopper in java program

I'm using GraphHopper in the following way: GraphHopper hopper = new GraphHopper().forServer(); hopper.setCHEnable(false); hopper.setGraphHopperLocation(GraphHoperMasterFile); hopper.setOSMFile(OSMFile); …
MTA
  • 739
  • 2
  • 9
  • 29
1
vote
2 answers

how add via(watpoints) points in android osm map using GraphHopper

how to add multiple via(way points) in android OSM map using GraphHopper? i am using the following code for route from A to B GHRequest req = new GHRequest(fromLat, fromLon, toLat, toLon); GHResponse rsp = hopper.route(req); here how i add another…
1
vote
1 answer

GraphHopper - Using truck profile

I use the "Routing Web Server" application from graphHopper. In the "config-example-properties" file I can only use a car as vehicletype. But I need a profile for trucks. In the demos I can see, that they use also trucks. How I have to change the…
Ace
  • 65
  • 6
1
vote
0 answers

Shape File To Convert Realtion tag in OSM Data

I am Routing Working routing application which is working in osm data but i have data in shape file so by using JOSM i convert in to OSM data but i have another file for turn restriction where i have get to , form and Junction data so how to…
user4894180
1
vote
1 answer

Graphhopper. Understanding InstructionList.find(...)

I have a problem with Graphhopper (ver. 0.6) method find() inside InstructionList class.  public Instruction find(double lat, double lon, double maxDistance ) It returns me next instruction even when a distance (between current location and next…
Derek K
  • 2,756
  • 1
  • 21
  • 37
1
vote
3 answers

Determining highway direction

I was wondering if there is a way to get the highway direction of the route. To be more specific, I am interested in routes on interstate highways in the United States only. I'll give an example: Interstate I45 is a north-south highway. When the…
Igor
  • 329
  • 1
  • 3
  • 10
1
vote
1 answer

How to draw alternative route in graphhopper?

I have working on routing application . I need to draw alternative route . Please suggest me how to possible it to change code or some thing else
user4894180
1
vote
1 answer

Support for returning multiple routes

We are looking at using graph hopper for one of our projects. In this regard, given point A and point B, we wanted to get top 10 different routes in the ascending order of transit time. Does graph hopper support this out of the box and yes, what API…
BASS
  • 21
  • 1
1
vote
0 answers

Android Graphhopper : An error happend while creating graph:Version of nodes unsupported: 4, expected: 3

I'm sorry if there any duplicate post, but I've tried to solve this for week and search for the solution, but haven't got it till now. I have a problem when trying to run code from here :…
1
vote
1 answer

How edge indexing works in graphhopper?

I'm here with a new question. I'm making a custom algorithm that need precomputed data for the graph edges. I use the AllEdgesIterator like this : AllEdgesIterator it = graph.getAllEdges(); int nbEdges = it.getCount(); int count = 0; int[] myData =…
user3890394
  • 99
  • 1
  • 7
1
vote
1 answer

Re-use EdgeIterator

If I understand well, an EdgeIterator can be used only one time. If this is correct, why can't we simply reset it to avoid creating a new instance of EdgeIterator each time we need to loop over the same node edges ? Thanks !
user3890394
  • 99
  • 1
  • 7
1
vote
0 answers

java.lang.IllegalStateException: Couldn't load graph

I am Working Graphhoper code . I have shape file and Graphhoper work in .pbf,.OSM (Open Street Map) . but I have shape file so I am convert shape file to osm file by using Merkaartor but and use in Graphopper but I am Facing following error INFO:…
user4894180