Hello,
I’m building an app that geocodes addresses. The issue i have is that some addresses (they’re all in London) return more than one set of coordinates for the same address. In the json response to a structured geocode API call, the coordinates are found here:
But for some addresses, this is repeated (sometimes several times over). This causes problems elsewhere in my code where I end up with more coordinates than I have original addresses.
please provide the full request (excluding your API key) and response you have issues with or if you are working with sensitive data, create a sample requests where this happens as well.
You could work around this in your code by just using the first entry you get back
Depending on the address it might be
Probably the address you are providing fits multiple entries?
I have the same issue.
I used https://api.openrouteservice.org/geocode/search?api_key=xxx&text=yyy https://api.openrouteservice.org/geocode/search?api_key=xxx&text=zzz
within one web session. because I needed to see the coordinates of two addresses, and both time it returned the same two coordinate pairs, in the same order.
Is there a way to send a kind of reset between the two api call so only one (the correct) coordinates are retuned?
So when I send a search request it should not remember the previous requests and repeat those results.
Or if this is a must then if the corresponding address in the search parameter would be added next to the coordinates, then it could also solve my issue.