Maybe I should open another post, I’m having some troubles with the POST request, is there any document explaining the format?
curl -i -X POST -H 'Content-Type: application/json' -d '{"request": { "points" : [[11.248630, 46.030340], [11.265450, 46.325830] ] }, "model": { "base":"car"} }' http://localhost:8989/flex
HTTP/1.1 400 Bad Request
Date: Wed, 10 Oct 2018 20:00:01 GMT
Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS
Access-Control-Allow-Headers: Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 188
{"message":"No path found due to maximum nodes exceeded 1000000","hints":[{"message":"No path found due to maximum nodes exceeded 1000000","details":"java.lang.IllegalArgumentException"}]}
Same thing if I try something more elaborated as in the java example linked above:
{
"request": {
"points": [
[11.248630, 46.030340],
[11.265450, 46.325830]
]
},
"model": {
"base": "car",
"no_access": {
"road_class": ["steps"]
}
}
}
note the GET query for same areas works:
http://localhost:8989/maps/?point=46.03034%2C11.24863&point=46.32583%2C11.26545&locale=en-US&vehicle=car&weighting=fastest&elevation=false&use_miles=false&layer=Omniscale