reverse_geocode
reverse_geocode copied to clipboard
Logger: homeassistant.util.package Source: util/package.py:123 First occurred: 00:54:07 (1 occurrences) Last logged: 00:54:07 Unable to install package reverse-geocode==1.6: error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code:...
Hi, I'm getting `UnicodeDecodeError` on python3.6: ``` >>> import reverse_geocode >>> coordinates = (-37.81, 144.96), (31.76, 35.21) >>> reverse_geocode.search(coordinates) Traceback (most recent call last): File "", line 1, in File...
Fixes #2
Ideally I'd have liked to include state data (personally just using AU, CA, US). But that's not included in `cities1000.txt`, so I'm falling back to `admin_code`.
on windows this currently fails with a trace like: ``` File "c:\utils\Python\Python37\lib\site-packages\reverse_geocode\__init__.py", line 121, in search gd = GeocodeData() File "c:\utils\Python\Python37\lib\site-packages\reverse_geocode\__init__.py", line 25, in getinstance instances[cls] = cls() File "c:\utils\Python\Python37\lib\site-packages\reverse_geocode\__init__.py",...
The example which you provided gives this error for me: `UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 464: character maps to `
We have installed the tool for python 3.9 on a Windows 10 pc and tested it with the example, but it don't work. See error message below: ``` raceback (most...
Under Python 2.7, placenames are returned as str even though they may contain non-ASCII characters
Example: > reverse_geocode.get([44, 7])['city'] 'Puget-Th\xc3\xa9niers' > type(reverse_geocode.get([44, 7])['city']) str > unicode(reverse_geocode.get([44, 7])['city']) UnicodeDecodeError Traceback (most recent call last) in () ----> 1 unicode(reverse_geocode.get([44, 7])['city']) UnicodeDecodeError: 'ascii' codec can't decode byte...
Looking at the latest city data from Geonames several now have ' city' on the end such as '25.56473,55.55517,AE,Umm Al Quwain City'. After a quick look I'm still not sure...
I noticed that within the setup.py file there's a mention of the project being available under LGPL. However the lack of a separate file or mention within the main code...