# Wheelchair direction problem

**URL:** <https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142>\
**Category:** directions\
**Created:** [September 14, 2021, 2:22pm UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142 "2021-09-14T14:22:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![COM-ADD](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@COM-ADD](https://ask.openrouteservice.org/u/COM-ADD)\
**Post date:** [September 14, 2021, 2:22pm UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142/1 "2021-09-14T14:22:15Z")

</div>

Hello,

In a free app, I’m trying to integrate the direction calculation for wheelchairs like: “v2/directions/wheelchair/gpx”

For this I am inspired by your documentation: [GitHub - GIScience/openrouteservice-docs: This repository stores the swagger specifications of the openrouteservice API. Browse to swagger for a detailed overview.](https://github.com/GIScience/openrouteservice-docs)

However, I cannot get a correct response from your server, I get a 400 (bad request) error.

Please note that I have already implemented a successful “cycling” and “foot-hiking” call, so the problem must be with the JSON sent.

The JSON file is as follows:

```json
{
	"coordinates":[[lon1,lat1],[lon2,lat2]],
	"elevation":true,
	"preference":"recommended",
	"units":"km",
	"language":"en-us",
	"profile_params":
	{
		"restrictions":
		{
			"surface_type":"cobblestone",
			"track_type":"grade1",
			"smoothness_type":"good",
			"maximum_sloped_curb":0.06,
			"maximum_incline":6
		}
	}
}

```

Another note: you write for the type of surface : default is “cobblestone:flattened”.

While on the site openstreetmap, it is specified that this value should not be used !?

Thank you in advance for your answer

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [September 15, 2021, 9:39am UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142/2 "2021-09-15T09:39:45Z")

</div>

Hi @COM-ADD,

i’d suggest you use our [API playground](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/gpx/post) to get familiar with the API, together with the [backend documentation](https://giscience.github.io/openrouteservice/) instead of the deprecated openrouteservice-docs repository.

I guess your problem is the usage of `maximum_sloped_curb` instead of `maximum_sloped_kerb`.

Regarding the surface type, you are indeed correct.

I have [opened an Issue](https://github.com/GIScience/openrouteservice/issues/1059) in our backend repo where you can track the status and comment if something is missing.

Best regards

---

<div class="post-metadata">

**Author:** ![COM-ADD](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@COM-ADD](https://ask.openrouteservice.org/u/COM-ADD)\
**Post date:** [September 15, 2021, 12:21pm UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142/3 "2021-09-15T12:21:30Z")

</div>

> [@amandus](#):
>
> [API playground](https://openrouteservice.org/dev/#/api-docs/v2/directions/%7Bprofile%7D/gpx/post)

Thank you very much for your very fast answer.

I did not see that in your API Playground that “profile\_params” are under “options” section.

So the new JSON is:

```json
{
	"coordinates":[[8.47672367095947,49.484676361084],[8.483469,49.486174]],
        "elevation":true,
        "preference":"recommended",
        "units":"km",
        "language":"fr-fr",
	"options":
	{
		"profile_params":
		{
			"restrictions":
			{
				"maximum_incline":6,
				"maximum_sloped_kerb":0.06,
				"minimum_width":2.5,
				"smoothness_type":"good",
				"surface_type":"cobblestone",
				"track_type":"grade1"
			}
		}
	}
}

```

Note that the 2 points are in Mannheim Germany.

But now, I have a 404 Notfound error with the message “Route Could Not Be Found - Unable to Find a road Between points 1 and point 2”.

And, my code have the same error as your API Playground !

What is amazing because using your [OpenRouteService route planner - directions, isochrones and places](https://maps.openrouteService.org/#/directions/) service for a Wheelchair and the same data abd same coordinates of points 1 and 2, the interactive application finds a path and visualize it on the map ?!

Any suggestion ?

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [September 15, 2021, 12:30pm UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142/4 "2021-09-15T12:30:50Z")

</div>

For me it doesn’t find a route for this setting:

[https://maps.openrouteservice.org/#/directions/49.484676361084,8.47672367095947/49.486174,8.483469/data/{"coordinates":"8.47672367095947,49.484676361084;8.483469,49.486174","options":{"zoom":8,"profile":"wheelchair","preference":"recommended","options":{"profile\_params":{"restrictions":{"maximum\_incline":"6","maximum\_sloped\_kerb":"0.06","minimum\_width":2,"smoothness\_type":"good","surface\_type":"cobblestone","track\_type":"grade1"}}}}}](https://maps.openrouteservice.org/#/directions/49.484676361084,8.47672367095947/49.486174,8.483469/data/%7B%22coordinates%22:%228.47672367095947,49.484676361084;8.483469,49.486174%22,%22options%22:%7B%22zoom%22:8,%22profile%22:%22wheelchair%22,%22preference%22:%22recommended%22,%22options%22:%7B%22profile_params%22:%7B%22restrictions%22:%7B%22maximum_incline%22:%226%22,%22maximum_sloped_kerb%22:%220.06%22,%22minimum_width%22:2,%22smoothness_type%22:%22good%22,%22surface_type%22:%22cobblestone%22,%22track_type%22:%22grade1%22%7D%7D%7D%7D%7D)

Did you choose `sett` instead of `cobblestone` as `surface_type` in the planner?  
Because with `sett` it can find a route …

---

<div class="post-metadata">

**Author:** ![COM-ADD](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@COM-ADD](https://ask.openrouteservice.org/u/COM-ADD)\
**Post date:** [September 16, 2021, 12:02pm UTC](https://ask.openrouteservice.org/t/wheelchair-direction-problem/3142/5 "2021-09-16T12:02:38Z")

</div>

Hello,

In fact now your service “[maps.openrouteservice.org](http://maps.openrouteservice.org)” also gives an error for the 2 points that I had indicated to you.

So I tried with two other points and it works.

Thank you for your help and thank you for making such a fantastic job available.

Best regards
