# Invalid JSON in post-result of POIS request for restaurants

**URL:** <https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074>\
**Category:** openpoiservice\
**Created:** [October 1, 2026, 5:10pm UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074 "2026-10-01T17:10:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerhard\_Rock](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/gerhard_rock/32/2149_2.png) [@Gerhard\_Rock](https://ask.openrouteservice.org/u/Gerhard_Rock)\
**Post date:** [October 1, 2026, 5:10pm UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/1 "2026-10-01T17:10:30Z")

</div>

When I try to get the restaurants within an rectangle I get the result:  
**error** : SyntaxError: Unexpected token ‘N’, …" “bbox”: [NaN, NaN, "… is not valid JSON at JSON.parse () at XMLHttpRequest.onLoad ([http://localhost:4200/vendor.js:134001:39](http://localhost:4200/vendor.js:134001:39)) at \_ZoneDelegate.invokeTask ([http://localhost:4200/polyfills.js:7691:171](http://localhost:4200/polyfills.js:7691:171)) at [http://localhost:4200/vendor.js:158243:49](http://localhost:4200/vendor.js:158243:49) at AsyncStackTaggingZoneSpec.onInvokeTask ([http://localhost:4200/vendor.js:158243:30](http://localhost:4200/vendor.js:158243:30)) at \_ZoneDelegate.invokeTask ([http://localhost:4200/polyfills.js:7691:54](http://localhost:4200/polyfills.js:7691:54)) at Object.onInvokeTask ([http://localhost:4200/vendor.js:158545:25](http://localhost:4200/vendor.js:158545:25)) at \_ZoneDelegate.invokeTask ([http://localhost:4200/polyfills.js:7691:54](http://localhost:4200/polyfills.js:7691:54)) at Zone.runTask ([http://localhost:4200/polyfills.js:7496:37](http://localhost:4200/polyfills.js:7496:37)) at ZoneTask.invokeTask [as invoke] ([http://localhost:4200/polyfills.js:7768:26](http://localhost:4200/polyfills.js:7768:26))

1. **text** : “{\“type\”: \“FeatureCollection\”, \“bbox\”: [NaN, NaN, NaN, NaN], \“features\”: [], \“information\”: {\“attribution\”: \”\\u00a9 openpoiservice by HeiGIT | Data from OpenStreetMap\“, \“version\”: \“0.1\”, \“timestamp\”: 1790874189, \“query\”: {\“request\”: \“pois\”, \“geometry\”: {\“bbox\”: [[15.393886628184239, 47.02095077521119], [15.40316566752611, 47.03111486335783]]}, \“limit\”: 200, \“filters\”: {\“category\_ids\”: [570]}}}}”

That causes an JSON-Conversion-Error!

There should be some restaurants within the rectangle!

The method worked fine during last time!  
What can I do?  
Thank’s Gerhard Rock

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [October 2, 2026, 6:53am UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/2 "2026-10-02T06:53:10Z")

</div>

Hey,

could you please provide the request that led to the errors you are experiencing, ideally in cURL-Format? That makes debugging this a lot easier.

Secondly, you can encapsulate answers and responses in ````` to format them verbatim as code, which makes it easier to understand what is going on.

Best regards

---

<div class="post-metadata">

**Author:** ![Gerhard\_Rock](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/gerhard_rock/32/2149_2.png) [@Gerhard\_Rock](https://ask.openrouteservice.org/u/Gerhard_Rock)\
**Post date:** [October 2, 2026, 12:26pm UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/3 "2026-10-02T12:26:45Z")

</div>

> [@Gerhard\_Rock](#):
>
> 1. \

```bash
  curl -X POST \
  'https://api.heigit.org/openpoiservice/v0/pois' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
  -H 'Authorization: <redacted>' \
  -d '{"request":"pois","geometry":{"bbox":[[15.393619854429343,47.01811160642478],[15.416123810043741,47.0327939232227]]},"limit":200}'

```

API response:  
{“type”: “FeatureCollection”, “bbox”: [NaN, NaN, NaN, NaN], “features”: [], “information”: {“attribution”: “\u00a9 openpoiservice by HeiGIT | Data from OpenStreetMap”, “version”: “0.1”, “timestamp”: 1790943838, “query”: {“request”: “pois”, “geometry”: {“bbox”: [[15.393619854429343, 47.01811160642478], [15.416123810043741, 47.0327939232227]]}, “filters”: {“category\_ids”: [570]}, “limit”: 200}}}

!!! [NaN, NaN, NaN, NaN] is not a vailid JSON

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [October 3, 2026, 7:18am UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/4 "2026-10-03T07:18:56Z")

</div>

Hey,

I forwarded this to our colleague most knowledgeable about the POI service.  
They will have a look into it, but it may take a few days.

Best regards

---

<div class="post-metadata">

**Author:** ![Gerhard\_Rock](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/gerhard_rock/32/2149_2.png) [@Gerhard\_Rock](https://ask.openrouteservice.org/u/Gerhard_Rock)\
**Post date:** [October 14, 2026, 10:40am UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/5 "2026-10-14T10:40:56Z")

</div>

Hello jschnell!  
Can you tell me please when I can get an answer to my question about the "Invalid JSON result in openpois-service? There are 11 days now where the service is not working.

Also the standard example in the playground has the same problem!  
I add a copy of the playground result.

{“type”: “FeatureCollection”, “bbox”: [NaN, NaN, NaN, NaN], “features”: [], “information”: {“attribution”: “\u00a9 openpoiservice by HeiGIT | Data from OpenStreetMap”, “version”: “0.1”, “timestamp”: 1791973969, “query”: {“request”: “pois”, “geometry”: {“bbox”: [[8.8034, 53.0756], [8.7834, 53.0456]], “geojson”: {“type”: “Point”, “coordinates”: [8.8034, 53.0756]}, “buffer”: 200}}}}

I think everybody using this service has the same problem.  
Is it not possible to use this service any longer?

Thank you for spending your time due to my problem.

Gerhard Rock

---

<div class="post-metadata">

**Author:** ![takb](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/takb/32/591_2.png) [@takb](https://ask.openrouteservice.org/u/takb)\
**Post date:** [October 21, 2026, 3:06pm UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/6 "2026-10-21T15:06:50Z")

</div>

Sorry for the long wait, finally got around to look into the problem.

I fixed the issue that “no data” responses produced the invalid bbox field, and discovered that the underlying issue was that our auto-updater had broken the database weeks ago, and we simply didn’t have time to notice or fix the issue. The database is being rebuilt as we speak, and I’m guesstimating that by tomorrow it should be up and running with current data again.

I’m happy to see that the openpoiservice is actually being used, since it has been not our main focus of work the past few years, and currently I’m preparing an overhaul / rebuild of the service on top of our new ohsome API ([https://heigit.org/ohsome-2-0-has-arrived-2/](https://heigit.org/ohsome-2-0-has-arrived-2/)) instead of maintaining a separate redundant database. So we intend to keep the service alive in the future with small changes (that might make it even a bit more reliable), and the fact that you use it is an argument for us to do so.

Have a nice one!

---

<div class="post-metadata">

**Author:** ![Gerhard\_Rock](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/gerhard_rock/32/2149_2.png) [@Gerhard\_Rock](https://ask.openrouteservice.org/u/Gerhard_Rock)\
**Post date:** [October 28, 2026, 10:28am UTC](https://ask.openrouteservice.org/t/invalid-json-in-post-result-of-pois-request-for-restaurants/8074/7 "2026-10-28T10:28:58Z")

</div>

Thank you for fixing the service. In the meantime I tried to use overpass.api. But it did not work very well.  
Can I contact you directly, if I have problems in the future.  
It is because I use the openpoisservice in my free app “Trip4You-Maps” for route planning and navigation and some users like it to use the functions to show the POIs on the map.

Thank you again, Gerhard Rock
