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

iOS

How 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

Hello 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

Thanks!

Anytime! glad to help.