oasis-art-project / oasis-server

Platform for the local arts
Other
2 stars 0 forks source link

Add lat/lon to place data model #57

Closed codeanticode closed 5 years ago

codeanticode commented 5 years ago

The address of a place needs to be converted in lat/lon coordinates to be displayed on the map. Right now, that conversion would need to be done in the client every time a place is requested for display. It would be better if the address is converted into lat/lot coordinates that get stored in the DB as well.

There are several options for server-side conversion of address into lat/lon coordinates:

https://github.com/google/gdata-python-client

https://pypi.org/project/geopy/

This thread has some relevant discussion:

https://stackoverflow.com/questions/5807195/how-to-get-coordinates-of-address-from-python

codeanticode commented 5 years ago

Done with https://github.com/codeanticode/oasis-server/commit/8e3684f6f3bbc6e8a5d32d9f3f9a3dad813b44de