-
Hi everyone! What did you search for?Official Nominatim API: Our Nominatim API: What result did you get?[
{
"place_id": 123353830,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "way",
"osm_id": 27779579,
"boundingbox": [
"51.2736754",
"51.274833",
"8.8566134",
"8.862381"
],
"lat": "51.2740548",
"lon": "8.8593513",
"display_name": "Berliner Straße, Korbach, Landkreis Waldeck-Frankenberg, Hessen, 34497, Deutschland",
"place_rank": 26,
"category": "highway",
"type": "residential",
"importance": 0.20000999999999994,
"address": {
"road": "Berliner Straße",
"town": "Korbach",
"municipality": "Korbach",
"county": "Landkreis Waldeck-Frankenberg",
"state": "Hessen",
"ISO3166-2-lvl4": "DE-HE",
"postcode": "34497",
"country": "Deutschland",
"country_code": "de"
}
},
{
"place_id": 123303706,
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "node",
"osm_id": 5326236397,
"boundingbox": [
"51.2737054",
"51.2738054",
"8.8605081",
"8.8606081"
],
"lat": "51.2737554",
"lon": "8.8605581",
"display_name": "Berliner Straße, Korbach, Landkreis Waldeck-Frankenberg, Hessen, 34497, Deutschland",
"place_rank": 30,
"category": "highway",
"type": "bus_stop",
"importance": 0.10000999999999996,
"address": {
"highway": "Berliner Straße",
"road": "Berliner Straße",
"town": "Korbach",
"municipality": "Korbach",
"county": "Landkreis Waldeck-Frankenberg",
"state": "Hessen",
"ISO3166-2-lvl4": "DE-HE",
"postcode": "34497",
"country": "Deutschland",
"country_code": "de"
}
}
] What result did you expect?[] The query should not return any results because the street does not exist in the town and postcode. The result returned by Nominatim is in a different city and in a different federal state. Further detailsFirst, some information about our hosted version: Version: (https://xxx/status?format=json) {
"status": 0,
"message": "OK",
"data_updated": "2023-11-28T00:00:00+00:00",
"software_version": "4.3.2-0",
"database_version": "4.3.2-0"
} Version: Environment Variables of Docker container:
Environment Variables inside the container (.env file):
Debug Data for self hosted request: Debug Data for official Nominatim API: Content of search.php file: <?php
@define('CONST_Debug', $_GET['debug'] ?? false);
@define('CONST_LibDir', '/usr/local/lib/nominatim/lib-php');
@define('CONST_TokenizerDir', '/nominatim/tokenizer');
@define('CONST_NominatimVersion', '4.3.2-0');
@define('CONST_Database_DSN', 'pgsql:dbname=nominatim');
@define('CONST_Default_Language', false);
@define('CONST_Log_DB', false);
@define('CONST_Log_File', false);
@define('CONST_NoAccessControl', true);
@define('CONST_Places_Max_ID_count', 50);
@define('CONST_PolygonOutput_MaximumTypes', 1);
@define('CONST_Search_BatchMode', false);
@define('CONST_Search_NameOnlySearchFrequencyThreshold', '500');
@define('CONST_Use_US_Tiger_Data', true);
@define('CONST_MapIcon_URL', false);
@define('CONST_Search_WithinCountries', false);
require_once(CONST_LibDir.'/website/search.php'); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The official API uses the Python frontend and usually has a slightly different data state than other databases. Although in this case, the frontend is the more likely culprit. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback on this long message. The result of the Python API is the correct one. It comes up with an empty result, as I would expect with the wrong query. |
Beta Was this translation helpful? Give feedback.
The official API uses the Python frontend and usually has a slightly different data state than other databases. Although in this case, the frontend is the more likely culprit.