# Point 0 is out of bounds

**URL:** <https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113>\
**Category:** openrouteservice\
**Created:** [December 3, 2018, 1:54pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113 "2018-12-03T13:54:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jendrusk1](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jendrusk1/32/41_2.png) [@jendrusk1](https://ask.openrouteservice.org/u/jendrusk1)\
**Post date:** [December 3, 2018, 1:54pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/1 "2018-12-03T13:54:30Z")

</div>

Hi all  
I’ve deployed ors on my server using dockers - on default settings everything went well, but when I’ trying to use some other extract (poland in this case) I’m getting exception “Point 0 is out of bounds”.

1. I downloaded extract into ./docker/data folder
2. I made new config basing on template to point this extract
3. I’ve found also additional ./Dockerfile with a path to config so changed there also
4. I’ve removed all containers and images from docker and everything from ./docker/build
5. “docker-compose up” was running about 2h and I got “8922076 [INFO] BUILD SUCCESS”
6. Script failed on step 11 “An HTTP request took too long to complete” so “export COMPOSE\_HTTP\_TIMEOUT=240” and rerun
7. ors-core launched with proper extract “====\> Initializing profiles from ‘data/poland-latest.osm.pbf’ (1 threads) …”

After all doesn’t work properly… when I ask:  
[http://ors.xploria.live/ors/routes?attributes=detourfactor|percentage&coordinates=20.146179,51.954845|21.007233,52.238733&elevation=true&extra\_info=steepness|waytype|surface&geometry=true&geometry\_format=geojson&instructions=true&instructions\_format=html&preference=fastest&profile=driving-car&units=m](http://ors.xploria.live/ors/routes?attributes=detourfactor%7Cpercentage&coordinates=20.146179,51.954845%7C21.007233,52.238733&elevation=true&extra_info=steepness%7Cwaytype%7Csurface&geometry=true&geometry_format=geojson&instructions=true&instructions_format=html&preference=fastest&profile=driving-car&units=m)

Im getting:

| error | |
| --- | --- |
| code | 2010 |
| message | “Point 0 is out of bounds: 51.954845,20.146179” |

Attaching log from ors-core

Is there something else? What am I doing wrong?  
[orsCore.log](https://github.com/GIScience/openrouteservice/files/2628887/orsCore.log)

---

<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:** [December 3, 2018, 4:07pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/2 "2018-12-03T16:07:32Z")

</div>

Hi @jendrusk1,

after downloading the new pbf, did you remove the graphs folder forcing ORS to build the new street network for Poland?

Cheers, Tim

---

<div class="post-metadata">

**Author:** ![jendrusk1](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jendrusk1/32/41_2.png) [@jendrusk1](https://ask.openrouteservice.org/u/jendrusk1)\
**Post date:** [December 10, 2018, 10:39am UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/3 "2018-12-10T10:39:52Z")

</div>

Hi @timothy

Thank you for your hint - of course I didn’t… Maybe that’s because documentation about running on own extract is hm… quite ascetic?

Now everything seems working well - thank you for your time and have nice day 🙂

---

<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:** [December 10, 2018, 10:41am UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/4 "2018-12-10T10:41:05Z")

</div>

Hi Jendrusk, nice to hear 🙂 and yep, we will update the documentation! Cheerio, Tim

---

<div class="post-metadata">

**Author:** ![MatthiasZutter](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@MatthiasZutter](https://ask.openrouteservice.org/u/MatthiasZutter)\
**Post date:** [August 20, 2019, 3:16pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/5 "2019-08-20T15:16:53Z")

</div>

Hi there, I am facing the same problem: Error message:

404 Not Found  
{“error”:{“code”:2010,“message”:“Point 0 is out of bounds: -121.978,37.7799”},“info”:{“engine”:{“version”:“5.0.1”,“build\_date”:“2019-05-29T14:22:56Z”},“timestamp”:1566313823484}}

My simple code is:

import requests  
body = {“coordinates”:[[37.7799,-121.9780],[37.8044,-122.271]]}  
headers = {  
‘Accept’: ‘application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8’,  
‘Authorization’: ‘xxxxxxx’}  
call = requests.post(‘[https://api.openrouteservice.org/v2/directions/driving-car](https://api.openrouteservice.org/v2/directions/driving-car)’, json=body, headers=headers)

print(call.status\_code, call.reason)  
print(call.text)

All I need is driving distance / duration for a data set of start/end locations in the US. How do i download the pbf and where do i need to store it?

Thanks for the support, sorry I am beginner in programmer.

---

<div class="post-metadata">

**Author:** ![adam](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/adam/32/8_2.png) [@adam](https://ask.openrouteservice.org/u/adam)\
**Post date:** [August 20, 2019, 3:32pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/6 "2019-08-20T15:32:24Z")

</div>

Hi @MatthiasZutter, it’s most likely that you have the coordinates the wrong way around. In the API call they should be longitude, latitude.

---

<div class="post-metadata">

**Author:** ![MatthiasZutter](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@MatthiasZutter](https://ask.openrouteservice.org/u/MatthiasZutter)\
**Post date:** [August 20, 2019, 4:20pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/7 "2019-08-20T16:20:54Z")

</div>

@adam, thanks, that fixed it!

---

<div class="post-metadata">

**Author:** ![amirreza\_alasti](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amirreza_alasti/32/3052_2.png) [@amirreza\_alasti](https://ask.openrouteservice.org/u/amirreza_alasti)\
**Post date:** [May 9, 2024, 6:26pm UTC](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113/8 "2024-05-09T18:26:04Z")

</div>

hello is there any way to disable this error because some points do not have any direction to them but they are true and I don’t want the system to show an error or is there a way to check the validity of a point before requesting a direction?
