elodie
elodie copied to clipboard
Prefer English names logic is broken
bool
cannot be used to test for a True or False string in python.
In elodie/geolocation.py:
__PREFER_ENGLISH_NAMES__ = bool(config['MapQuest']['prefer_english_names'])
will evaluate to True for any string specified!
Fixed in PR 370.
Hi, is this bug related to the config prefer_english_names=False ? Because I set it in the config.ini but the locations names are still cerated in English.
Yes @crishnakh exactly. The fix in PR 370 sorts all the problems I had with this option, so give this a try. I should get around to merging this change in together with some others. I think @jmathai wanted me to combine the PRs rather than pull in individually.
The new MapQuest API no longer supports this functionality. Have opened #425 to track it but will probably just mark the capability as deprecated.