Geocode-API - false results

Hey,
i lately go through issues with the geocode endpoint.
For example, i want to geocode this address: Fichtenweg 13, 76356 Weingarten
I receive these hits:

{
“hits”: [
{
“osm_id”: 4219910117,
“osm_type”: “N”,
“country”: “Deutschland”,
“osm_key”: “place”,
“housenumber”: “13”,
“city”: “Weingarten”,
“street”: “Kanalstraße”,
“osm_value”: “house”,
“postcode”: “76356”,
“name”: “Kanalstraße”,
“state”: “Baden-Württemberg”,
“point”: {
“lng”: 8.5258686,
“lat”: 49.0523947
}
},
{
“osm_id”: 315539286,
“extent”: [
8.5331818,
49.051159,
8.5333361,
49.0510702
],
“country”: “Deutschland”,
“city”: “Weingarten”,
“postcode”: “76356”,
“point”: {
“lng”: 8.5332612560567,
“lat”: 49.0511293
},
“osm_type”: “W”,
“osm_key”: “building”,
“housenumber”: “13”,
“street”: “Kirchstraße”,
“osm_value”: “yes”,
“name”: “Kirchstraße”,
“state”: “Baden-Württemberg”
},
{
“osm_id”: 303362564,
“extent”: [
8.5236745,
49.0522156,
8.523863,
49.0520939
],
“country”: “Deutschland”,
“city”: “Weingarten”,
“postcode”: “76356”,
“point”: {
“lng”: 8.523768753478594,
“lat”: 49.05215475
},
“osm_type”: “W”,
“osm_key”: “building”,
“housenumber”: “13”,
“street”: “Gartenstraße”,
“osm_value”: “yes”,
“name”: “Gartenstraße”,
“state”: “Baden-Württemberg”
},
{
“osm_id”: 3290021115,
“osm_type”: “N”,
“country”: “Deutschland”,
“osm_key”: “place”,
“housenumber”: “13”,
“city”: “Weingarten”,
“street”: “Bahnhofstraße”,
“osm_value”: “house”,
“postcode”: “76356”,
“name”: “Bahnhofstraße”,
“state”: “Baden-Württemberg”,
“point”: {
“lng”: 8.530031,
“lat”: 49.0520914
}
},
{
“osm_id”: 267026801,
“extent”: [
8.5262228,
49.0502117,
8.5264873,
49.0500393
],
“country”: “Deutschland”,
“city”: “Weingarten”,
“postcode”: “76356”,
“point”: {
“lng”: 8.52635505,
“lat”: 49.0501255
},
“osm_type”: “W”,
“osm_key”: “building”,
“housenumber”: “13”,
“street”: “Im Brügel”,
“osm_value”: “yes”,
“name”: “Im Brügel”,
“state”: “Baden-Württemberg”
}
],
“took”: 36
}

For comparison search for it on https://openstreetmap.de/karte/
It has one hit on 8.51298409552871, 49.0675323 - which is correct.

How can I receive the same results as openstreetmap?

Hmmh, this is indeed strange (especially since locale=en returns the correct result).

How can I receive the same results as openstreetmap?

You can use the external geocoding provider nominatim, see Documentation - GraphHopper Directions API

1 Like