Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kyle Binger
3,357 PointsType in city to get location instead of using x and y co-ordinates?
Hi, i've been going through the build a weather app for iOS treehouse videos.
I'd like to be able to type in the location (city name) in a text box and display the location and the locations weather values. I know that the api requests coordinates to determine location. Is there a way to type in the location (city) and reverse engineer some code to get the x and y coordinates. It just seems more feasible for a user to type in a city versus find location coordinates and type those in.
1 Answer
jason phillips
18,131 PointsGoogle maps api has a link you can do a web request to and get geolocation data. check out https://developers.google.com/maps/ there is some information on how to get geo data in ios.