# Problem in making request

**URL:** <https://ask.openrouteservice.org/t/problem-in-making-request/6871>\
**Category:** opengeocoder\
**Created:** [January 30, 2025, 1:45pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871 "2025-01-30T13:45:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 1:45pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/1 "2025-01-30T13:45:56Z")

</div>

I got a few problems when doing request, sometimes it take the house number and other times when it gives back the answer, it seems like it loose the house number.  
While other times it keep it. I use the API.

---

<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:** [January 30, 2025, 2:01pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/2 "2025-01-30T14:01:53Z")

</div>

Hey,

could you provide a few request examples for these issues, please?  
Ideally in cURL format, which you can easily extract from our [interactive API docs](https://openrouteservice.org/dev/#/api-docs) - see “Show example code”.

Best regards

---

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 2:12pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/3 "2025-01-30T14:12:19Z")

</div>

```auto
curl --include \
     --header "Content-Type: application/json; charset=utf-8" \
     --header "Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8" \
  'https://api.openrouteservice.org/geocode/search/Structured?api_key=xxx&address=Viale%20Castagnola%2031&postalcode=6906&country=CH'
```

---

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 2:13pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/4 "2025-01-30T14:13:02Z")

</div>

i put xxx only to not give the apikey clear

---

<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:** [January 30, 2025, 2:32pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/5 "2025-01-30T14:32:26Z")

</div>

Hey,

thanks for the query 🙂  
Did I get that correctly, that you are getting different results for this one query every now and then?

Best regards

---

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 2:50pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/6 "2025-01-30T14:50:33Z")

</div>

Hey,

yes but the problem actually is that i send therequest with a house number and in the answere i don’t see the house number but there other cases where the response show the house number… and i would like to know why?  
Thank you for all the help!

Best regards

---

<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:** [January 30, 2025, 2:55pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/7 "2025-01-30T14:55:06Z")

</div>

Hey,

first, notice that the housenumber is in the `query` part of the response, so it got picked up by the query.

Now, looking at the response, the returned point and the corresponding data on e.g. OpenStreetMap, it simply seems as if no housenumber data exists for that place in any of the sources the geocoder is using.

Best regards

---

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 3:00pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/8 "2025-01-30T15:00:01Z")

</div>

Hey,

thank you for the answer. But then there’s no way to make it known that there are house there?? Sorry if is a stupid question… But i need to know.  
Thanks in advance.

Best regards

---

<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:** [January 30, 2025, 5:01pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/9 "2025-01-30T17:01:06Z")

</div>

Hey,

I’m not quite sure I understand your issue, so keep in mind that this answer might not go in the right direction at all.

It is not the purpose of a geocoder to find out whether there is a house somewhere, but rather to get an accurate geographical location from a textual description.

Thus, you are not asking “Is there a house at _Viale Castagnola 31, Lugano_”, but you are asking "What is the best guess at a coordinate for _Viale Castagnola 31, Lugano_.

Best regards.

---

<div class="post-metadata">

**Author:** ![erik\_stalliviere](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erik_stalliviere/32/3474_2.png) [@erik\_stalliviere](https://ask.openrouteservice.org/u/erik_stalliviere)\
**Post date:** [January 30, 2025, 11:35pm UTC](https://ask.openrouteservice.org/t/problem-in-making-request/6871/10 "2025-01-30T23:35:19Z")

</div>

Hey,

that’s what i was looking as an answer!  
Thank you wery much for your help and your time!

Best regards
