-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a service that geocodes addresses #2162
Conversation
….com:monicahq/monica into 2018-12-16-automatically-get-gps-coordinates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been automatically locked since there |
Follow up of #2160
This PR adds a service which automatically translates an address to latitude/longitude coordinates.
It also introduces two new ENV variables:
ENABLE_GEOLOCATION
andLOCATION_IQ_API_KEY
.The service returns null if one of those two variables are set to null or empty.
It uses LocationIQ as the backend for this. I don't want to use any Google services if we can avoid it. LocationIQ allows 10 000 free calls per day.
Once we have this service in place, we'll be able to finally get weather data from addresses.
Remains to be done: