# Waytype value types

**URL:** https://ask.openrouteservice.org/t/waytype-value-types/1431
**Category:** openrouteservice
**Created:** [March 6, 2020, 11:32am UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431 "2020-03-06T11:32:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![capstone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@capstone](https://ask.openrouteservice.org/u/capstone)
#### Post date: [March 6, 2020, 11:32am UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431/1 "2020-03-06T11:32:52Z")

</div>

Hi, I have questions regarding extra\_info, especially waytype values. In the github document([https://github.com/GIScience/openrouteservice-docs#waytype](https://github.com/GIScience/openrouteservice-docs#waytype)), the waytype category seems to be in the range of 0~10.

However, if i apply this to my code, i get values which does not belong to the categories provided in the github like 83,87,115 and etc.

Would you be able to tell me what those number exactly mean?

Thank you.

---

<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: [March 6, 2020, 1:51pm UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431/2 "2020-03-06T13:51:17Z")

</div>

Hi @capstone

could you please provide an example request that gives you a response with the mentioned values ?

Best regards.

---

<div class="post-metadata">

### Author: ![capstone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@capstone](https://ask.openrouteservice.org/u/capstone)
#### Post date: [March 6, 2020, 2:14pm UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431/3 "2020-03-06T14:14:39Z")

</div>

I wrote the code in python.

request = {“coordinates”: [[data[i][0],data[i][1]],[remaining[j][0],remaining[j][1]]],  
“preference”: “fastest”,  
“extra\_info”: [  
“waycategory”,  
“waytype”],  
“profile” : ‘driving-car’  
}  
routing\_req = clnt.directions(\*\*request)  
time\_list.append((routing\_req[‘routes’][0][‘summary’][‘duration’]))

I’m curious about what I marked with the highlighter.

 ![04](https://ask.openrouteservice.org/uploads/default/original/1X/63a3622f9caceef0763a746e55867c06ccba6984.png)

---

<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: [March 6, 2020, 2:26pm UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431/4 "2020-03-06T14:26:23Z")

</div>

hmm normally this should be documented in the responses tab of the interactive documentation. I will have to fix that.

this i the documentation for the values array of any requested extra information:  
`A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://github.com/GIScience/openrouteservice-docs#routing-response) assigned to this section.`  
So these represent segments of the route that have the value you can derive from the tables at the ors-docs readme.  
`waytypes: {'values':[[startPointFirstSegment, endPointFirstSegment, waytype value],[startPointSecondSegment ...`

You will have to decode the geometry to extract the exact points or use the geojson endpoint.

best regards

---

<div class="post-metadata">

### Author: ![capstone](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@capstone](https://ask.openrouteservice.org/u/capstone)
#### Post date: [March 6, 2020, 2:34pm UTC](https://ask.openrouteservice.org/t/waytype-value-types/1431/5 "2020-03-06T14:34:53Z")

</div>

Thank you for answer.  
If I have any questions, I will ask you again.
