Open Kivike opened 4 years ago
TODO
#filter out everything not in london
#get the lat and lon
#https://www.urlencoder.io/python/
#https://stackoverflow.com/questions/46783078/uri-encoding-in-python-requests-package
I will do "#filter out everything not in london" in https://github.com/Kivike/nlp-project/issues/14
RESULT:
<?xml version="1.0" encoding="UTF-8" ?>
Uffss!!! Wasted whole day as unable to encode all the URLs. It throws this error after encoding half of the URL. It feels like either it is unable to handle empty or nan rows.
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
2+Stanhope+Row
Traceback (most recent call last):
File "", line 1, in
@Kivike @ppeerttu , do you guys have any idea about that aforementioned error message? Having a hard time to tackle that error message since two days.. :(
Hurray!! Finally fixed it :D @Kivike @ppeerttu :)
Awesome 👍
issue was that it was expecting a string, but it seems like it sometimes passes empty strings or integers instead. so i now forcefully changed the call to explicitly string and that fixed the problem. :)
Research which one we should use: Google’s Geocoding API or OpenStreetMap.org Create class that converts address to coordinates (longitude/latitude) or vice versa.
Geocoding APIs
Postcodes.io, limited to post codes (no street addresses) but very flexible and completely free without any apparent usage limits. Has some community-driven clients as well.
OSM Nominatim, very advanced especially for search features, but has limited usage policy. Bulk operations are apparently not possible. See this thread for discussion about bulk usage policy.
Also check this comprehensive list of other geocoding services.