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
3
votes
1 answer

Graphhopper Server - Create and use a custom vehicle type

While browsing https://github.com/graphhopper/directions-api/blob/master/docs-routing.md I found the option to choose one of the preset vehicle types car, foot and bike. But unfortunately I have to calculate the duration based on vehicles with caped…
Haves
  • 152
  • 1
  • 9
3
votes
1 answer

Does GraphHopper support dynamic edge weights?

We are thinking to use it in our project where we need to do a route planner. The first problem we had is that we have very dyanimc variables representing our weight values; this means that we can't use the Contraction Hierarchy algorithm becouse…
Angelo Immediata
  • 6,635
  • 4
  • 33
  • 65
2
votes
1 answer

Rewriting a curl post call with file upload in Python as request

I have this curl call to a local graphhopper server which works: curl -XPOST -H "Content-Type: application/gpx+xml" -d @home/jd/test1.gpx "localhost:8989/match?vehicle=car&type=json" I now want to automate this call in python and got the following…
T.Klemmer
  • 41
  • 2
2
votes
1 answer

Graphhopper - how to set the routing profile 'foot'

How can I set the route profile 'foot'? Using the default profile 'car' I can't calculate the distance between any location (in the woods) and a nearby footpath. The error message I get is: > Encoding does not match: Graphhopper config: >…
tm1701
  • 7,307
  • 17
  • 79
  • 168
2
votes
0 answers

How can I get all posible paths between two nodes with Graphhopper

I'm trying to find all paths between 2 nodes by using graphhopper but there is something wrong with my code. When remove setAlgorith line, it returns only one path but when I add setAlgorithm(Parameters.Algorithms.ALT_ROUTE), it returns 0 path. Here…
2
votes
1 answer

Can python do custom route planning or do I need to rely on an API?

I have a goal to run every block of every street in my city. I've been keeping track of my progress on a custom google map that I draw. It's onerous to log and obnoxious to trial & error plot new routes As I get more into Python, I realized this…
ScottieB
  • 3,958
  • 6
  • 42
  • 60
2
votes
1 answer

Block certain road in graphhopper

I would like to block certain road and avoid it when generating route. I'm using the Graphhopper basic map sample I found this code Weighting. I believe this is the function I'm looking for but I have no luck integrating it. I really appreciate…
Mellorine
  • 265
  • 1
  • 5
  • 13
2
votes
1 answer

Graphhopper - calculating travel time

I'm developing a project using Graphhopper core to calculate optimal routes. I incorporated some real traffic data by modifying speed assigned to edges and calculated optimal routes in two ways: the "default" way and the way, which considers…
Łukasz Fijas
  • 113
  • 1
  • 8
2
votes
1 answer

Graphhopper getting Lat/Lon of tower nodes

i am trying to get lat/lon of base and adj node of an EdgeIteratorState e. I am routing and getting the paths from the routing request. From the Path objects i get the EdgeIteratorStates. I do it like so: double lat =…
obab
  • 75
  • 1
  • 6
2
votes
1 answer

Graphhopper Connection between locations not found

I create a graphHopper instance using: GraphHopper hopper = new GraphHopper().forServer(); hopper.setCHEnable(false); hopper.setGraphHopperLocation("hopper"); hopper.setOSMFile("greater-london-latest.osm"); hopper.setEncodingManager(new…
MTA
  • 739
  • 2
  • 9
  • 29
2
votes
1 answer

Turning MapsForge project into a navigation app using Graphhopper

I am trying to make a basic navigation app from my MapsForge project. It seems there is no MapsForge library for Navigation. I found out that it could be done with Graphhopper but I couldn't find any Jar files of it either. Is there any Graphhopper…
petebp
  • 33
  • 1
  • 5
2
votes
0 answers

Graphhopper as a background service on ubuntu

I want to run graphhopper as a background service and have it start on boot. I am running it on Ubuntu 14.04. Can anyone point me in the right direction.
fiscme
  • 422
  • 1
  • 6
  • 20
2
votes
2 answers

Embed graphhopper into project

I would like to embed graphhopper into my java application (J2EE) in order to calculate route distances between many points on the map. Points are given by their longitudes and latitudes. I don't need to render the map. Can you give step by step…
Nurlan
  • 2,860
  • 19
  • 47
  • 64
2
votes
1 answer

Graphhopper route direction weighting

Is it possible to write weighting based on direction? I see there is reverse parameter, but what does it means, and how can I compute it? For example I have a straight route from South to North (0) | | | (1) I need different weight from (1) to…
Michał Jurczuk
  • 3,728
  • 4
  • 32
  • 56
2
votes
1 answer

Graphhopper: Adding weight to edges using OSM id

I have a pbf file of the greater Chicago area and have been able to load this file using the graphhopper web viewer. I would like to improve bike routing using additional usage data that I have for road segments (each identified by an OSM id). From…
TomH
  • 2,950
  • 2
  • 26
  • 49
1
2
3
14 15