[SOLVED] Location name and forecast.io API

[SOLVED] Location name and forecast.io API
0

#1

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?


#2

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


#3

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


#4

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.