DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
7 stars 2 forks source link

Geonames Premium #111

Closed DJTommek closed 1 year ago

DJTommek commented 1 year ago

Issue

Exception started appear related to Geonames services:

HTTP 401:
Please provide a valid username for the GeoNames Premium Web Service or use the free api.geonames.

It seems, that API wrapper from aternus/geonames-client is working only for premium users because there is hardcoded url https://secure.geonames.org and there is no option to change it to http://api.geonames.org which is for freemium users.

Todo

Try to change URL of client to use free version of URL or create custom client instead.