The GB dataset for Great Britain only includes outwards codes (i.e. only first 3 letters). The full dataset is included in GB_full, but currently this fails to load,
>>> import pgeocode
>>> dist = pgeocode.GeoDistance('GB_full')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/rth/src/pgeocode/pgeocode.py", line 174, in __init__
super(GeoDistance, self).__init__(country)
File "/home/rth/src/pgeocode/pgeocode.py", line 49, in __init__
.format(country))
ValueError: country=GB_FULL is not a known country code. See the README for a list of supported countries
Mostly making sure input validation works, in this case, should fix this, I think.
The GB dataset for Great Britain only includes outwards codes (i.e. only first 3 letters). The full dataset is included in
GB_full, but currently this fails to load,Mostly making sure input validation works, in this case, should fix this, I think.