user3626048
user3626048

Reputation: 736

OpenStreetMap Direct Routing Request via GET error

I have problem with OpenRouteService API (Direct Routing Request via GET described in here http://wiki.openstreetmap.org/wiki/OpenRouteService#Direct_Routing_Request_.28via_GET.29).

My request is:

http://openls.geog.uni-heidelberg.de/route?start=18.609%2C53.02&end=18.749%2C53.49&via=18.01%2C53.12&lang=pl&distunit=KM&routepref=Pedestrian&&weighting=Recommended&avoidAreas&useTMC=false&noMotorways=false&noTollways=false&noUnpavedroads=false&noSteps=false&noFerries=false&instructions=false

(from Toruń in Poland to Grudziądz via Bydgoszcz).

Unfortonatly, I get error:

"validation error: Expected element 'EndPoint@http://www.opengis.net/xls' instead of 'viaPoint@http://www.opengis.net/xls' here in element WayPointList@http://www.opengis.net/xls"

If I put antyhing in "via=" this error appear.

When I change "via=" to empty value:

http://openls.geog.uni-heidelberg.de/route?start=18.609%2C53.02&end=18.749%2C53.49&via=&lang=pl&distunit=KM&routepref=Pedestrian&&weighting=Recommended&avoidAreas&useTMC=false&noMotorways=false&noTollways=false&noUnpavedroads=false&noSteps=false&noFerries=false&instructions=false
all works fine.

Is it problem with my request or api isn't working correctly?

Upvotes: 0

Views: 244

Answers (1)

headuck
headuck

Reputation: 2793

It seems that the frontend API of OpenRouteService receives the GET requests correctly, but after it builds the request in xml and relays it to the backend server the server fails to validate the request correctly. It should be a problem with the backend server.

The frontend php code is here for reference.

The web frontend, which POSTs the xml directly to another backend server, seems to work correctly with via points.

Upvotes: 1

Related Questions