Skip to content
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

Merged
merged 12 commits into from
Dec 18, 2018

Conversation

djaiss
Copy link
Member

@djaiss djaiss commented Dec 17, 2018

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 and LOCATION_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:

@djaiss djaiss changed the title feat: add automatic geocoding to addresses [wip] feat: add automatic geocoding to addresses Dec 18, 2018
@djaiss djaiss changed the title feat: add automatic geocoding to addresses feat: add a service that geocodes addresses Dec 18, 2018
….com:monicahq/monica into 2018-12-16-automatically-get-gps-coordinates
Copy link

@sonarqubecloud sonarqubecloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 3

See all issues in SonarCloud

Copy link

@sonarqubecloud sonarqubecloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 2

See all issues in SonarCloud

Copy link

@sonarqubecloud sonarqubecloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 2

See all issues in SonarCloud

@djaiss djaiss merged commit 5b4d889 into master Dec 18, 2018
@djaiss djaiss deleted the 2018-12-16-automatically-get-gps-coordinates branch December 19, 2018 00:25
@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant