#87·wego

Convert location text to latitude/longitude for forecast.io backend

Author: nikilCreated Apr 21, 2016Updated Oct 24, 2024
Labelspull-requests-welcomednew-featurehacktoberfest

Since forecast.io only supports latitude/longitude style locations, it would be nice to have an interface where we could specify a normal location (e.g., "Los Angeles") and have the backend convert automatically to lat/long. When displaying the weather, you could also convert from the lat/long used in the forecast.io lookup back to a canonical location string.

It appears that there's a Go library for just such this purpose: https://github.com/jasonwinn/geocoder

Any chance this could be integrated into wego?