Geolocation-api - address not found (but it's existing)

I have tried to find the following address via the geolocation search “49176 Hilter Am Sonnenhang 10”. However, only similar matches are offered. How do I make the request correct (or better)? Would it be possible to provide qualified hints in the search (e.g., postalcode=49176, streetnumber=10, …)?

Hi Mario,

the correct result is found:

provider=default
{
osm_id: 375723010,
extent: [
8.1893037,
52.1880785,
8.1894846,
52.1879505
],
country: "Deutschland",
city: "Borgloh",
postcode: "49176",
point: {
lng: 8.18939415,
lat: 52.188014499999994
},
osm_type: "W",
osm_key: "building",
housenumber: "10",
street: "Am Sonnenhang",
osm_value: "yes",
name: "Am Sonnenhang",
state: "Niedersachsen"
}

provider=nomintaim
{
copyrights: [
"OpenCageData",
"OpenStreetMap",
"GraphHopper"
],
hits: [
{
point: {
lat: 52.1880145,
lng: 8.1893942
},
name: "Am Sonnenhang 10, 49176 Borgloh, Deutschland",
country: "Deutschland",
city: "Borgloh",
state: "Niedersachsen",
street: "Am Sonnenhang",
postcode: "49176",
osm_id: 375723010,
osm_type: "W",
house_number: "10",
osm_value: "building"
}
],
locale: "de"
}

This is the corresponding osm entry.

Apparently the name of the city is Borgloh not Hilter? The same result appears for Google Maps.

You can improve the search results by passing the point bias. Currently there is no way (AFAIK) to add postal code or street number hints.

Hope this helps,

Robin

1 Like