chicommons / maps

MIT License
5 stars 17 forks source link

Backend: New new geocoding library #178

Open laredotornado opened 2 years ago

laredotornado commented 2 years ago

We are using the following GeoCoding library

geopy==1.21.0

for resolving addresses to latitude and lonitudes. However, this library now has a dependence on Google, which we would prefer not to use. We need to use a new library, which would fit in to the file directory/services/location_service.py in the "get_coords" method.

The only requirement is that this library be Python based and free to use, even if it is rate-limited.

stepsbystep commented 2 years ago

Sign me up @laredotornado!

laredotornado commented 2 years ago

Thanks @stepsbystep ! assigned

stepsbystep commented 2 years ago

New geocoding library is tested and in use with the current parse_coop_csv @laredotornado!

We are now using the OpenStreet Maps nominatim library Check the following for more information https://www.natasshaselvaraj.com/a-step-by-step-guide-on-geocoding-in-python/ https://nominatim.org/release-docs/latest/api/Overview/

There are two pushes. The first has the new code but is not properly described. The second push adds a line of documentation.

stepsbystep commented 1 year ago

I've created the getGeoLoc object class. It functions correctly in parse_coop_csv.

stepsbystep commented 1 year ago

LocationServices updated but not working yet

SteveEdiger commented 1 year ago

Wow, Barry!

Great work, and keeping it in the FOSS environment, too!!!

Steve Ediger

Founding Worker-Owner, ChiCommons LWCA

http://www.chicommons.coop

---- On Mon, 11 Jul 2022 15:19:09 -0500 Barry Feldman @.***> wrote ---

New geocoding library is tested and in use with the current parse_coop_csv https://github.com/laredotornado!

We are now using the OpenStreet Maps nominatim library Check the following for more information https://www.natasshaselvaraj.com/a-step-by-step-guide-on-geocoding-in-python/ https://nominatim.org/release-docs/latest/api/Overview/ There are two pushes. The first has the new code but is not properly described. The second push adds a line of documentation.

— Reply to this email directly, https://github.com/chicommons/maps/issues/178#issuecomment-1180828251, or https://github.com/notifications/unsubscribe-auth/AALRXQ56SYYJX24NNCI5LKTVTR6T3ANCNFSM5RAKIV2A. You are receiving this because you are subscribed to this thread.

maxgraziano commented 2 months ago

Fixed in '3.1-model-refactor'. Continues to use GeoPy but fetches data from Nominatim as opposed to Google.