geo-golang icon indicating copy to clipboard operation
geo-golang copied to clipboard

Package returns abbreviations for city/state instead of full name

Open amehta1128 opened this issue 5 years ago • 0 comments

Hello,

By default the package does not include headers related to language, ie Accept-Language

Using, Accept-Language = en for example will result in the full name of the city/state

While, Accept-Language = EN for example will result in abbreviation for the city/state

In my setup I often see the later being returned which results in abbreviations for city/state.

Can we introduce an optional param to Geocoder to pass in headers when making a request to Nominatim (so that we can control the Accept-Language header)?

Thank you!

More about this issue is outlined here: https://github.com/openstreetmap/Nominatim/issues/783

amehta1128 avatar Jan 22 '20 22:01 amehta1128