ZeevG / python-forecast.io

A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API
http://zeevgilovitz.com/python-forecast.io/
Other
423 stars 88 forks source link

Geocoding Forecasts #17

Open ZeevG opened 10 years ago

ZeevG commented 10 years ago

I would be good if an address could be used for the forecast location instead of a lat and long.

j1fig commented 8 years ago

Hi @ZeevG , how would you suggest to go about this? The forecast.io API doesn't seem to support geocoding.

I'm currently using another API for reverse geocoding when looking up the weather for a given address.

ZeevG commented 8 years ago

Hi, some preliminary work has been made on this feature in the V2 branch. Unfortunately I haven't worked on it in quite a while but I think most things should be working. You can check it out here https://github.com/ZeevG/python-forecast.io/tree/2.0.0

There is also no documentation for V2 yet so you will mostly have to read the source and tests. In particular this test case should get you started. https://github.com/ZeevG/python-forecast.io/blob/2.0.0/tests/test_forecastio.py#L117

Sorry about delaying this release so much. It's nearly there but I haven't had the time to finish it off.