python-forecast.io icon indicating copy to clipboard operation
python-forecast.io copied to clipboard

Geocoding Forecasts

Open ZeevG opened this issue 11 years ago • 2 comments

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

ZeevG avatar Jun 05 '14 04:06 ZeevG

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.

j1fig avatar Dec 28 '15 00:12 j1fig

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.

ZeevG avatar Dec 28 '15 19:12 ZeevG