Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiles don't seem to work #34

Open
vasily-polonsky opened this issue Jun 26, 2023 · 1 comment
Open

Profiles don't seem to work #34

vasily-polonsky opened this issue Jun 26, 2023 · 1 comment

Comments

@vasily-polonsky
Copy link

Hi there,

I try to run on the docker image, it runs fine. The problem is that only the car profile is available. The command I use is as follows
docker run -p 8989:8989 israelhikingmap/graphhopper --url https://download.geofabrik.de/europe/andorra-latest.osm.pbf --host 0.0.0.0 --profiles car,bike,foot

In UI I see only car option, when I send the request I get this response.

curl --location --request POST 'http://localhost:8989/route?key=' \ --header 'Content-Type: application/json' \ --data-raw '{ "points": [ [ 37.629913, 55.751231 ], [ 37.63914,55.742873 ] ], "profile": "foot", "elevation": true, "debug": false, "instructions": true, "locale": "de_DE", "optimize": "false", "points_encoded": true, "snap_preventions": [ "ferry" ], "details": [ "road_class", "road_environment", "max_speed", "average_speed" ], "alternative_route.max_paths": 3, "algorithm": "alternative_route" }'

Tried with another card, same result, can you give advice or is it a mistake?

@HarelM
Copy link
Member

HarelM commented Jun 26, 2023

Yea, profile flag broke in the last version, we should remove it from the script I guess.
You need to create a gh config yaml file and mount it into the container to properly define the profiles you would like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants