Search with geojson=1 302 redirects to request with jsonv2=1 #3461
-
Hi, Using java the API, a call using this URL, where I requested a GeoJson(geojson=1) response resulted in a 302 redirect with the new URL requesting jsonv2(jsonv2=1), the address was found through the redirect and therefore I received jsonv2 instead of GeoJson. Is this expected and must be handled by callers, any documentation available on this if so? Additionally it seems to lose my request for namedetails=1 and extratags=1. Below is the original request along with the redirect URL I see in the browser. Maybe related to the address number, #209, as I don't see that included in the browser details even though that is what I entered in my request, maybe it truncated the request, even so, odd that it did the redirect? https://nominatim.openstreetmap.org/ui/search.html?q=40%20W%20Littleton%20Blvd%20 Then UI sends this request: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think your problem is the house number (Im assuming # 209 is it), because if you search without it the API will return
The jsonv2 is the default format for output response if you have not defined any. |
Beta Was this translation helpful? Give feedback.
Yes, a
#
in a URL starta s URL fragment. The webserver only looks at the part before#
to create the redirect. The#
needs to be escaped (into%23
)