# Optimization API Maximum speed

**URL:** <https://ask.openrouteservice.org/t/optimization-api-maximum-speed/3013>\
**Category:** openpoiservice\
**Created:** [July 26, 2021, 12:30pm UTC](https://ask.openrouteservice.org/t/optimization-api-maximum-speed/3013 "2021-07-26T12:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rand\_Hazem](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/r/7feea3/32.png) [@Rand\_Hazem](https://ask.openrouteservice.org/u/Rand_Hazem)\
**Post date:** [July 26, 2021, 12:30pm UTC](https://ask.openrouteservice.org/t/optimization-api-maximum-speed/3013/1 "2021-07-26T12:30:00Z")

</div>

I want to be able to control vehicle speed with optimization API, in the direction API we send maximum\_speed attributes, I tried to send it with vehicle data in optimization, not work, even it is not in the document  
as a note, in the request, I send only 1 vehicle ber request

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [July 26, 2021, 2:38pm UTC](https://ask.openrouteservice.org/t/optimization-api-maximum-speed/3013/2 "2021-07-26T14:38:06Z")

</div>

Hey,

as of now, the `maximum_speed` parameter is not available for use with the optimization endpoint. At some point, it may be available for the matrix endpoint, at which point it might get introduced to the optimization endpoint as well.

You can, however, specify your own custom time/distance matrix to the endpoint. Have a look [at the docs](https://openrouteservice.org/dev/#/api-docs/optimization/post) for details.

Best regards
