-
I might have missed something on the website, README or existing discussions, but I'm getting different search results when running the same query in the browser or a 3rd party application like Postman. E.g., when executing a search query for my college,
I get this result in the browser (which is correct): {
"features": [
{
"geometry": {
"coordinates": [
6.65235603579384,
51.8396047
],
"type": "Point"
},
"type": "Feature",
"properties": {
"osm_id": 25144486,
"extent": [
6.6497734,
51.8408903,
6.6550292,
51.8387626
],
"country": "Deutschland",
"city": "Bocholt",
"countrycode": "DE",
"postcode": "46397",
"county": "Kreis Borken",
"type": "house",
"osm_type": "W",
"osm_key": "amenity",
"housenumber": "265",
"street": "Münsterstraße",
"district": "Bocholt",
"osm_value": "college",
"name": "Westfälische Hochschule (Campus Bocholt)",
"state": "Nordrhein-Westfalen"
}
}
],
"type": "FeatureCollection"
} But in Postman, I get this response (I get the busstop, but not the college itself): {
"features": [
{
"geometry": {
"coordinates": [
6.6484331,
51.8395206
],
"type": "Point"
},
"type": "Feature",
"properties": {
"osm_id": 5347703580,
"country": "Deutschland",
"city": "Bocholt",
"countrycode": "DE",
"postcode": "46397",
"county": "Kreis Borken",
"type": "house",
"osm_type": "N",
"osm_key": "highway",
"street": "Leipziger Straße",
"district": "Bocholt",
"osm_value": "bus_stop",
"name": "Westfälische Hochschule",
"state": "Nordrhein-Westfalen"
}
}
],
"type": "FeatureCollection"
} How does this happen and how can I configure my 3rd party application to get the same results as the browser? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Do some testing with the |
Beta Was this translation helpful? Give feedback.
Do some testing with the
lang
Photon parameter. Browsers send aAccept-Language
HTTP header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language) by default and Photon is probably looking at that if nolang
parameter is set in a request.