# Too many coordinate results in the response json file

**URL:** https://ask.openrouteservice.org/t/too-many-coordinate-results-in-the-response-json-file/6414
**Category:** opengeocoder
**Created:** [August 16, 2024, 1:05pm UTC](https://ask.openrouteservice.org/t/too-many-coordinate-results-in-the-response-json-file/6414 "2024-08-16T13:05:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![schilhan](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/schilhan/32/3217_2.png) [@schilhan](https://ask.openrouteservice.org/u/schilhan)
#### Post date: [August 16, 2024, 1:05pm UTC](https://ask.openrouteservice.org/t/too-many-coordinate-results-in-the-response-json-file/6414/1 "2024-08-16T13:05:47Z")

</div>

First of all, thank you dear openrouteservice team for the great API provisions. Just a perfect alternative to Google!

Among other things, I use the [Dashboard | ORS](https://openrouteservice.org/dev/#/api-docs/geocode/search/get) API for my routing project.

When I request the following coordinates of that address pattern:

_Musterstrasse 10 d 01234 Musterstadt_

I get all the “Musterstrassen” including their coordinates with a house number 10 in the address such as _Musterstrasse 10 a, Musterstrasse 10 b, Musterstrasse 10 c_, etc. in the responsed json file, which I didn’t ask for.

I know the possibility of the determine the desired coordinates of the target address by using a “for loop” including an “if statement” regarding a html form data and the json data comparison,

…  
let search = new Array();  
for (let i = 0; i \< json\_content.features.length; i++){  
let housenumber\_api = json\_content.features[i].properties.housenumber;  
if (housenumber\_htmlform == housenumber\_api){  
search.push(json\_content.features[i].geometry.coordinates);  
}  
…

but I would like to know if I can pass a parameter in the API request that only outputs the coordinates of the one address wich I’m looking for.

Thank you in advance for your help.

---

<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: [August 16, 2024, 1:16pm UTC](https://ask.openrouteservice.org/t/too-many-coordinate-results-in-the-response-json-file/6414/2 "2024-08-16T13:16:58Z")

</div>

Hi @schilhan,

you could set the `size` parameter to 1 to just return the single most relevant result.  
However that might not always be the location you are actually looking for (depending on the input, but with _Musterstrasse 10 d 01234 Musterstadt_ it mimght be pretty accurate)

Best regards
