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

Forecast weather for event's location if provided #2

Open
sdaveas opened this issue Oct 29, 2023 · 4 comments
Open

Forecast weather for event's location if provided #2

sdaveas opened this issue Oct 29, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sdaveas
Copy link
Owner

sdaveas commented Oct 29, 2023

We currently forecast for a specific LAT and LON. While these can be the default values, we can get the location from the google calendar event if provided by the organizer.

Event location is available at event['location'] here. From that, we need to retrieve the longitude and latitude, and provide them to send_weather_forecast(...) a few line below.

Question

How to get the coordinates of a place given the address?

@sdaveas sdaveas added enhancement New feature or request help wanted Extra attention is needed labels Oct 29, 2023
@sdaveas
Copy link
Owner Author

sdaveas commented Oct 30, 2023

tryouts

service url outcome
Google Geocoding https://maps.googleapis.com/maps/api/geocode/json works well but costs $$$
OpenStreetMap Nominatim API https://dash.geocod.io/ doesn't work well. Eg. Athens College, Stefanou Delta 15, Psichiko 154 52, Greece returns '33.9597677', '-83.376398'
Geocod https://www.geocod.io doesn't work well. Eg. Athens College, Stefanou Delta 15, Psichiko 154 52, Greece returns 42.525874, -111.76691

@sdaveas
Copy link
Owner Author

sdaveas commented Oct 30, 2023

halp @mandarini

@mandarini
Copy link

sry bro idk

@mandarini
Copy link

tha to dokimaso mia mera mesa sti vdomada, i don't think the gmaps API costs that much. it costs, but considering our requests (which are not going to be THAT many) is going to be ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants