# Isochrones with fuel-usage - differentiate between highway and non-highway

**URL:** https://ask.openrouteservice.org/t/isochrones-with-fuel-usage-differentiate-between-highway-and-non-highway/2776
**Category:** QGIS
**Created:** [May 10, 2021, 7:51am UTC](https://ask.openrouteservice.org/t/isochrones-with-fuel-usage-differentiate-between-highway-and-non-highway/2776 "2021-05-10T07:51:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![onkel\_butterbrot](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/onkel_butterbrot/32/837_2.png) [@onkel\_butterbrot](https://ask.openrouteservice.org/u/onkel_butterbrot)
#### Post date: [May 10, 2021, 7:51am UTC](https://ask.openrouteservice.org/t/isochrones-with-fuel-usage-differentiate-between-highway-and-non-highway/2776/1 "2021-05-10T07:51:20Z")

</div>

Hey guys,

for my master thesis am trying to use the QGIS-Plugin to generate Isochrones from 5 Locations. For that I have setup my own instance of ORS.

Now I am trying to get the distance for a certain fuel load and have it differentiate between highway routes and non-highway routes.

E.g.: When driving on highway the vehicle is using xh amount of fuel and when driving on non-highway-routes it is using xnh amount of fuel.

My thought process was that nothing needed to be changed in the code, except how distance is calculated. When I have a tank with 100l fuel, the isochrones distance would be entered as 100 and calculated with:

newdistance\_highway(fuel) = distance \* xh (highway)  
newdistance\_nahighway(fuel) = distance \* xnh (non-highway)

All I would need to change is how the distance is calculated and have it use xh or xnh whenever it is driving on a highway or non-highway.

Now I know how to get the waycategory using the normal api, but can I also access it in the qgis-plugin?

Also, (how) can I access the source code, to change variables?

Note, I’ve only been using Python and ORS for this thesis - sorry for any “stupid” questions!

---

<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: [May 10, 2021, 8:51am UTC](https://ask.openrouteservice.org/t/isochrones-with-fuel-usage-differentiate-between-highway-and-non-highway/2776/2 "2021-05-10T08:51:05Z")

</div>

Hi @onkel_butterbrot,

you once you installed the QGIS plugin, you can edit the code in the ors-tools plugin folder to make changes locally:

> **[ORS Tools Help](https://github.com/GIScience/orstools-qgis-plugin/wiki/ORS-Tools-Help#installation)**
>
> Plugin for QGIS with a set of tools to use openrouteservice API´s, based on openstreetmap - GIScience/orstools-qgis-plugin

You should also use the Plugin reloader plugin to update ors-tools after you made changes, and also the first aid plugin to make QGIS output errors instead of crashing, when you produce exceptions during altering the code
