### Is there an existing issue for this?
- [X] I have searched the existing iss…ues
### Where did you encounter this issue?
live API, self-hosted instance
### Request URL
https://api.openrouteservice.org/v2/directions/driving-car
### POST Request Body
```JSON
{"coordinates":[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]],"extra_info":["steepness","suitability","surface","waycategory","traildifficulty","waytype","tollways","osmid","roadaccessrestrictions","countryinfo","green","noise","csv","shadow"],"instructions":"false"}
```
### Response
<details><summary>Response</summary>
```JSON
{
"bbox": [
8.681423,
49.414599,
8.690123,
49.420514
],
"metadata": {
"attribution": "openrouteservice.org | OpenStreetMap contributors",
"service": "routing",
"timestamp": 1697810101378,
"query": {
"coordinates": [
[
8.681495,
49.41461
],
[
8.686507,
49.41943
],
[
8.687872,
49.420318
]
],
"profile": "driving-car",
"format": "json",
"extra_info": [
"steepness",
"suitability",
"surface",
"waycategory",
"traildifficulty",
"waytype",
"tollways",
"osmid",
"roadaccessrestrictions",
"countryinfo",
"green",
"noise",
"csv",
"shadow"
]
},
"engine": {
"version": "7.1.0",
"build_date": "2023-07-09T01:31:50Z",
"graph_date": "2023-10-15T10:21:39Z"
}
},
"routes": [
{
"summary": {
"distance": 1372.6,
"duration": 292.79999999999995
},
"bbox": [
8.681423,
49.414599,
8.690123,
49.420514
],
"geometry": "ghrlHir~s@?BIC{ELgDo@aBa@}@I?sB?k@BwD?_JgAJgHt@I@]iHC?B?KuB]oFASg@wImAt@y@f@d@bJ",
"way_points": [
0,
15,
23
],
"warnings": [
{
"code": 4,
"message": "Extra info requested but not available: green, noise, shadow, osmid, csv"
}
],
"legs": [],
"extras": {
"waycategory": {
"values": [
[
0,
23,
0
]
],
"summary": [
{
"value": 0,
"distance": 1372.6,
"amount": 100
}
]
},
"countryinfo": {
"values": [
[
0,
23,
74
]
],
"summary": [
{
"value": 74,
"distance": 1372.6,
"amount": 100
}
]
},
"surface": {
"values": [
[
0,
23,
3
]
],
"summary": [
{
"value": 3,
"distance": 1372.6,
"amount": 100
}
]
},
"waytypes": {
"values": [
[
0,
6,
3
],
[
6,
10,
2
],
[
10,
20,
3
],
[
20,
22,
1
],
[
22,
23,
3
]
],
"summary": [
{
"value": 3,
"distance": 1037.9,
"amount": 75.62
},
{
"value": 2,
"distance": 251.7,
"amount": 18.34
},
{
"value": 1,
"distance": 83,
"amount": 6.05
}
]
},
"steepness": {
"values": [
[
0,
23,
0
]
],
"summary": [
{
"value": 0,
"distance": 1372.6,
"amount": 100
}
]
},
"suitability": {
"values": [
[
0,
23,
3
]
],
"summary": [
{
"value": 3,
"distance": 1372.6,
"amount": 100
}
]
},
"roadaccessrestrictions": {
"values": [
[
0,
23,
0
]
],
"summary": [
{
"value": 0,
"distance": 1372.6,
"amount": 100
}
]
},
"traildifficulty": {
"values": [
[
0,
23,
0
]
],
"summary": [
{
"value": 0,
"distance": 1372.6,
"amount": 100
}
]
},
"tollways": {
"values": [
[
0,
23,
0
]
],
"summary": [
{
"value": 0,
"distance": 1372.6,
"amount": 100
}
]
}
}
}
]
}
```
</details>
### Current behavior
While the requested extra info is `waytype` the name in the response is `waytypes` instead.
### Expected behavior
The response should consistently have the same extra info name sas in the input. Otherwise mapping of the names fails.
Related to this i found this code handling the issue in the ors-map-client and asked myself why this is neccessary:
```
let show = (this.$store.getters.mapSettings[extraKey] === true)
if (!show) { // check if the extra is being returned in a singular keyed property
const singular = extraKey.substring(0, extraKey.length - 1)
show = this.$store.getters.mapSettings[singular] === true
}
return show
```
### Openrouteservice Version
7.1.0
### Build date
2023-07-09T01:31:50Z
### Graph date
2023-10-15T10:21:39Z
### Forum Topic Link
_No response_