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
K Jo
7,283 PointsGeocoding in Swift
Hi, I have completed the Weather App tutorial in Swift. I am trying to take it a step further by adding the location as a text box that can be changed by the user. It looks like there is functionality in Swift called Geocoding that would allow the program to return coordinates (latitude and longitude) based on a location string; however, I am having trouble finding good example of this type of code being used. There seem to be plenty of examples in google searches that provide coordinates based on one's "current location", but not many that show how to retrieve coordinates based on strings entered into a text box.