# Isochrones intersections for reachability analysis

**URL:** <https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639>\
**Category:** isochrones\
**Created:** [June 10, 2019, 11:07am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639 "2019-06-10T11:07:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoTheThird](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/neothethird/32/193_2.png) [@NeoTheThird](https://ask.openrouteservice.org/u/NeoTheThird)\
**Post date:** [June 10, 2019, 11:07am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/1 "2019-06-10T11:07:58Z")

</div>

Hi everyone,

i’m new to gis, so please excuse my noob question.

I’m trying to conduct a reachability analysis using the isochrones api. I need to compare two locations and calculate their catchment area and find out how many people live in the respective area. That in itself is no problem, but the areas overlap. What I’m looking for now is a way to compute the border from where it is closer to location A and from where it is closer to location B, so that i can find out the disjunct catchment areas and their populations.

I found the intersect property in the API, but that only returns the multipolygon of the overlap area. That doesn’t do the trick, unfortunately. Is there an easy way to do this with the ORS api? If not, is there a client lib that i could use?

Thank you, any hints are appreciated!

---

<div class="post-metadata">

**Author:** ![timothy](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/timothy/32/11_2.png) [@timothy](https://ask.openrouteservice.org/u/timothy)\
**Post date:** [June 10, 2019, 11:14am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/2 "2019-06-10T11:14:26Z")

</div>

Hi @NeoTheThird,

we don’t provide this functionality, sorry. The intersection parameter should additionally return the polygons which interesect, however this is currently a little buggy. Depending on your language of choice, you could either use

- [https://pypi.org/project/Shapely/](https://pypi.org/project/Shapely/) (python)
- [https://pypi.org/project/Fiona/](https://pypi.org/project/Fiona/) (python)
- [https://turfjs.org/](https://turfjs.org/) (javascript)
- [https://github.com/locationtech/jts](https://github.com/locationtech/jts) (java)

Or simply install QGIS, it has all functions you need, [https://qgis.org/en/site/](https://qgis.org/en/site/) .

---

<div class="post-metadata">

**Author:** ![NeoTheThird](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/neothethird/32/193_2.png) [@NeoTheThird](https://ask.openrouteservice.org/u/NeoTheThird)\
**Post date:** [June 12, 2019, 8:21am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/3 "2019-06-12T08:21:05Z")

</div>

Thanks for those links, @timothy. Qgis works for this more or less, but maybe it could be an idea to add this to the isochrones api in the future. I don’t see how this could be done efficiently and precisely with the libs you linked, not without making lots of api requests before at least. But since i got the data i needed with qgis, there’s no pressure for me. Thanks and keep up the good work!

---

<div class="post-metadata">

**Author:** ![nils](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nils/32/6_2.png) [@nils](https://ask.openrouteservice.org/u/nils)\
**Post date:** [June 12, 2019, 9:22am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/4 "2019-06-12T09:22:27Z")

</div>

What you’re trying to do is the very basic GIS function of geometric difference and is built-in in any GIS lib, like the ones @timothy linked to. That’s why we won’t consider adding it to the API, it’s ubiquitous and a one-liner, while it’s not easy to implement on the backend.

See e.g.  
[https://shapely.readthedocs.io/en/stable/manual.html#object.difference](https://shapely.readthedocs.io/en/stable/manual.html#object.difference)

---

<div class="post-metadata">

**Author:** ![Minos](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/46a35a/32.png) [@Minos](https://ask.openrouteservice.org/u/Minos)\
**Post date:** [September 11, 2019, 11:14pm UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/5 "2019-09-11T23:14:49Z")

</div>

The thing is: will qgis allow you to figure out the amount of people within the intersection? Where will qgis be able to retrieve the population information?

Let’s say I have a couple of depots/ airports/hospitals and I want to figure out what is the distribution of time to reach the nearest depot (time-wise). i.e. 55% is within 10min, 65% is within 15min and 95% is within 25min.

How can I do that when isochrones are intersecting? i.e. when some people are double counted in two or three different isochrones?

Thanks for any tip!

Minos

---

<div class="post-metadata">

**Author:** ![nils](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/nils/32/6_2.png) [@nils](https://ask.openrouteservice.org/u/nils)\
**Post date:** [September 12, 2019, 5:44am UTC](https://ask.openrouteservice.org/t/isochrones-intersections-for-reachability-analysis/639/6 "2019-09-12T05:44:14Z")

</div>

Sure, then you’ll the raster data locally:  
[https://ghsl.jrc.ec.europa.eu/about.php](https://ghsl.jrc.ec.europa.eu/about.php)
