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
Artem Zverkovskiy
1,090 PointsHow to get user's current location (swift)?
Hi, everybody! I am a new one in programming on Swift. I have two questions:
1) What is better and easier to identify user's current location (latitude & longitude) AppleMaps or Google Maps?
2) How can I get current location?
I am really interested in getting location by Google Maps but if it is difficult or unreal I can change my mind and use AppleMaps.
Thanks for all answers!
1 Answer
agreatdaytocode
24,757 PointsHello Artem! (Welcome to Swift!)
1) What is better and easier to identify user's current location (latitude & longitude) AppleMaps or Google Maps? I know how to pull the users location for AppleMaps. (not sure about the Google Maps.) Lat long is always the way to go.
2) How can I get current location? Great question.
Check out this post here and here or for the google thing here
Artem Zverkovskiy
1,090 PointsArtem Zverkovskiy
1,090 PointsThanks!
agreatdaytocode
24,757 Pointsagreatdaytocode
24,757 PointsAnytime! glad to help.