# Parameters to set throught the API

**URL:** <https://support.routexl.com/t/parameters-to-set-throught-the-api/1914>\
**Category:** API\
**Created:** [May 13, 2021, 6:39pm UTC](https://support.routexl.com/t/parameters-to-set-throught-the-api/1914 "2021-05-13T18:39:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dab](https://support.routexl.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dab](https://support.routexl.com/u/dab)\
**Post date:** [May 13, 2021, 6:39pm UTC](https://support.routexl.com/t/parameters-to-set-throught-the-api/1914/1 "2021-05-13T18:39:17Z")

</div>

Hi @RouteXL,

Are there any parameters to set in the optimization request, to priorize different solutions to the optimization problem?

For example, we see in the web version that it can be priorized, time or travel distance.

What kind of parameters can we set up and how do we send it trought the API.

Regards

---

<div class="post-metadata">

**Author:** ![RouteXL](https://support.routexl.com/user_avatar/support.routexl.com/routexl/32/347_2.png) [@RouteXL](https://support.routexl.com/u/RouteXL)\
**Post date:** [May 13, 2021, 8:10pm UTC](https://support.routexl.com/t/parameters-to-set-throught-the-api/1914/2 "2021-05-13T20:10:38Z")

</div>

You can set some parameters in our API V2. See the docs here:

> **[RouteXL API v2 | RouteXL](https://www.routexl.com/blog/routexl-api-v2/)**

Please note that our algorithm only minimizes time, not distance. See also:

> **[Algorithm - RouteXL](https://docs.routexl.com/index.php?title=Algorithm)**
