On my local version of ORS i’ve got some problems with the different profiles:
The profile “driving-car” is working well, all other profiles does not work!
curl -X POST -H ‘Content-Type: application/json; charset=utf-8’ -i ‘localhost:8080/ors/v2/isochrones/driving-car’ --data ‘{“locations”:[[7.2009147,51.5368948]],“range”:[100]}’ IS WORKING,
and e.g.
curl -X POST -H ‘Content-Type: application/json; charset=utf-8’ -i ‘localhost:8080/ors/v2/isochrones/wheelchair’ --data ‘{“locations”:[[7.2009147,51.5368948]],“range”:[100]}’ IS NOT WORKING
But i do NOT get an error. I just get a Error when i use a profile which does not exist e.g. wheelchair2.
ERROR: {“error”:{“code”:3003,“message”:“Parameter ‘profile’ has incorrect value or format.”},“info”:{“engine”:{“version”:“6.2.1”,“build_date”:“2020-09-07T12:55:33Z”},“timestamp”:1599557420954}}
I found this: Enable/Disable profiles
But in my app.config.sample looks everything good(?):
“profiles”: {
“active”: [
“car”,
“hgv”,
“bike-regular”,
“bike-mountain”,
“bike-road”,
“bike-electric”,
“walking”,
“hiking”,
“wheelchair”
]
For me it looks like everything is enabled… In my app.config there is just the car profile:
“profiles”: {
“active”: [
“car”
],
but i think that doesnt matters because i did the setup with the app.config sample!
Also i found this: https://github.com/GIScience/openrouteservice/issues/200
So i tried:
curl -X POST -H ‘Content-Type: application/json; charset=utf-8’ -i ‘localhost:8080/ors/v2/isochrones?profile=wheelchair’ --data ‘{“locations”:[[7.2009147,51.5368948]],“range”:[100]}’
But i get an error about missing profile:
{“error”:{“code”:3001,“message”:“Parameter ‘profile’ is missing.”},“info”:{“engine”:{“version”:“6.2.1”,“build_date”:“2020-09-07T12:55:33Z”},“timestamp”:1599557557286}}
So at last it tried:
curl -X POST -H ‘Content-Type: application/json; charset=utf-8’ -i ‘localhost:8080/ors/v2/isochrones/wheelchair?profile=wheelchair’ --data ‘{“locations”:[[7.2009147,51.5368948]],“range”:[100]}’
But i get nothing back, like i would hide “?profile=wheelchair”
Because i found this: No results for HGV profile
i tried it with the API Playground, and there everything works… so it does look for me there is a fault in my local setup(!?)
I addition i found a little fault(??) in the service:
When i use the “directions/driving-cat/json” , also without “/json”, because json is default i get very interesting geometry:
“geometry”: “{wpyHcl}j@kAGiApGo@pDEh@Bx@F\\hA|GaCtAyDjBYoE?gAFs@p@sBHs@?w@I}F?G?wA?s@@WHoAPqAHc@lA}EnBmHn@kA
A_D~@aCNq@F_@Da@FaBAm@AO”
That does not look correct for me!
At last i want to know if its make sense for you, when i post in a new topic my solution for setting up the service with a few commands??? when i fixed all the errors?
I think it would be nice for future Users, but i dont know if your place for questions is the right location…
Best regards!