# Steps for altering openrouteservice configuration

**URL:** https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200
**Category:** openrouteservice
**Created:** [May 31, 2024, 11:34am UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200 "2024-05-31T11:34:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tgff](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/t/cdc98d/32.png) [@tgff](https://ask.openrouteservice.org/u/tgff)
#### Post date: [May 31, 2024, 11:34am UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/1 "2024-05-31T11:34:19Z")

</div>

Hi,

I work for a local fire service and we are trying to use the openrouteservice API to investigate our travel times throughout the county.

As such, we have created a local instance of the API and are now in the process of trying to configure the vehicle profiles to more accurately reflect our emergency vehicles through road restrictions, road speeds, grade level limits, etc.

We tried a month or two ago and were not able to get any different results from our test changes and we believe we are missing out on some steps.

I was, therefore, hoping that someone would be able to provide a list of steps that are required when trying to make said config changes. From the documentation I have found that you need to rename the vehicle profile to avoid default values and also rebuild your graphs. Are there any steps we are missing? And is there any further support we can reach out to if we are unable to get the changes to work?

Thanks in advance!

---

<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: [June 8, 2024, 9:46pm UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/2 "2024-06-08T21:46:18Z")

</div>

Hi @tgff,

there are several parts within the application you would need to adjust.  
The easiest would be to overwrite the speed values for an existing profile in your instance (e.g. for HGV or car).  
You would just adjust the values in the VehicleFlagencoder:

> <https://github.com/GIScience/openrouteservice/blob/main/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/flagencoders/VehicleFlagEncoder.java>

Yes afterwards you need to rebuild the graphs.

You could still use our live API if you need the non-customized version.

For this usecase you can also contact our [support mail adress](https://openrouteservice.org/contact/).

Best regards

---

<div class="post-metadata">

### Author: ![tgff](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/t/cdc98d/32.png) [@tgff](https://ask.openrouteservice.org/u/tgff)
#### Post date: [June 10, 2024, 8:24am UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/3 "2024-06-10T08:24:02Z")

</div>

Ok great, thank you very much for your help!

---

<div class="post-metadata">

### Author: ![tgff](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/t/cdc98d/32.png) [@tgff](https://ask.openrouteservice.org/u/tgff)
#### Post date: [June 17, 2024, 2:31pm UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/4 "2024-06-17T14:31:51Z")

</div>

Hi @amandus,

We are still having some difficulty identifying the changes we need to make and are trying to start off with the basics of getting different results out when we change the driving-hgv road speeds as, currently, when we change them the API results do not change.

Do you have a list of the active parameter files and locations that are used when a rebuild of the graph is invoked so we know what we need to change please?

Kind regards,  
Tim

---

<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: [June 18, 2024, 12:51pm UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/5 "2024-06-18T12:51:40Z")

</div>

Hi @tgff,

it seems changes in the FlagEncoder don’t really take effect, as it uses the speed values defined in `ors-engine/src/main/resources/resources/services/routing/speed_limits/car.json` 🤷  
If you change the values there you should see an effect after removing & rebuilding the graphs.

Best regards

---

<div class="post-metadata">

### Author: ![tgff](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/t/cdc98d/32.png) [@tgff](https://ask.openrouteservice.org/u/tgff)
#### Post date: [June 26, 2024, 2:24pm UTC](https://ask.openrouteservice.org/t/steps-for-altering-openrouteservice-configuration/6200/6 "2024-06-26T14:24:25Z")

</div>

Hi @amandus

Apologies, to come back to you again but we are still having a great deal of difficulty in making any changes to the configuration.

Would it be possible to set up a quick teams call at some point where you could help us with making a simple change to the config please?

Kind regards,  
Tim
