[SOLVED] Location name and forecast.io API

Hi there :slight_smile: . I’m working on my weather app which uses forecast.io’s API. I’d like my weather app to show the location name. However it seems there’s nothing in the object it returns that gives the position’s location name.

Does anyone know a way to get the location name from its coords?

I haven’t tried this, but this might work: http://stackoverflow.com/questions/15662775/how-do-i-get-location-name-or-city-using-latitude-longitudes

1 Like

How about https://developers.google.com/maps/documentation/geocoding/start

1 Like

Thanks for the replies :slight_smile:

I get a bunch of addresses with varying types/specificity. It says there that it’s possible to restrict address types but I’ll have to sign up for another API key to use that, so I’ll just have to filter it manually.