skill-collectors / weather-app

A VueJS Weather App
GNU General Public License v3.0
1 stars 2 forks source link

Allow entering "City, State" and pass "State" (if present) as "state code" to the API #128

Closed dave-burke closed 3 years ago

dave-burke commented 3 years ago

The main input for the "one-call" API from OpenWeatherMap is lat/lon coordinates, so that's what we should consider the canonical location.

Storing the city/state is just for user-friendly display.

Tasks

dave-burke commented 3 years ago

The OpenWeather API has a location query endpoint that takes comma delimited city, state, country, so there's no reason for us to do this kind of parsing.

This is being replaced by another story to implement more robust location picking like in the mock up.