# Google Maps iOS SDK Tutorial: Getting Started

**URL:** <https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051>\
**Category:** 🎓 Courses & Articles\
**Created:** [January 31, 2018, 2:05pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051 "2018-01-31T14:05:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [January 31, 2018, 2:05pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/1 "2018-01-31T14:05:40Z")

</div>

Learn how to use the Google Maps iOS SDK to retrieve the user's current location and search for nearby points of interest, such as bars and restaurants.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/197-google-maps-ios-sdk-tutorial-getting-started](https://www.raywenderlich.com/197-google-maps-ios-sdk-tutorial-getting-started)

---

<div class="post-metadata">

**Author:** ![techstylemom](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/techstylemom/32/81494_2.png) [@techstylemom](https://forums.kodeco.com/u/techstylemom)\
**Post date:** [February 1, 2018, 2:02am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/2 "2018-02-01T02:02:33Z")

</div>

Thank you for updating this tutorial to Swift 4. Have a great day! 🙂

---

<div class="post-metadata">

**Author:** ![king9671152](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/king9671152/32/110937_2.png) [@king9671152](https://forums.kodeco.com/u/king9671152)\
**Post date:** [February 22, 2018, 7:39am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/3 "2018-02-22T07:39:10Z")

</div>

This is a good tutorial. Thanks. There is some information missing, though. For example, you have a function named fetchNearbyPlaces, which takes two arguments, searchRadius and searchedTypes. I guess searchedTypes comes from an older tutorial version brought with GoogleDataProvider.swift.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 22, 2018, 3:58pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/4 "2018-02-22T15:58:12Z")

</div>

@ron.kliffer Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [February 22, 2018, 4:14pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/5 "2018-02-22T16:14:19Z")

</div>

Hi,  
searchTypes are taken from TypesTableViewController, as mentioned in the beginning of the tutorial. Is somethings unclear there? I’d be happy to elaborate

---

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [February 22, 2018, 4:14pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/6 "2018-02-22T16:14:58Z")

</div>

Hi,  
I’d be happy to help? What is your question

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 22, 2018, 4:17pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/7 "2018-02-22T16:17:02Z")

</div>

@ron.kliffer I was just sending you a heads up for the other question. Thanks for replying! :]

---

<div class="post-metadata">

**Author:** ![dcritch](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@dcritch](https://forums.kodeco.com/u/dcritch)\
**Post date:** [March 1, 2018, 12:33am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/8 "2018-03-01T00:33:50Z")

</div>

@ron.kliffer Hey Ron. I am fairly new to Swift and I loved your tutorial, but when I got to the point where the colored location pins were supposed to be showing I ran into some trouble. They aren’t popping up anywhere. I’m getting a couple errors. 1. CoreData: annotation: Failed to load optimized model at path ‘var/…/GoogleMaps.bundle/GMSCacheStorage.momd/StorageWithTileProto.omo’. Error 2. HTTP load failed.  
I tried to solve them on my own via google with no success. So I downloaded your full project and tried running that, still no location pins of the restaurants.

---

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [March 1, 2018, 7:06am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/10 "2018-03-01T07:06:42Z")

</div>

@dcritch  
ou create an api key and added it to the code?

---

<div class="post-metadata">

**Author:** ![rabidgeek](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rabidgeek](https://forums.kodeco.com/u/rabidgeek)\
**Post date:** [March 8, 2018, 12:02am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/11 "2018-03-08T00:02:36Z")

</div>

HI - thanks for this tutorial!

Im unable to get all the places to show up. they did briefly but went away. no error while running in stimulator or on my iphone 7. however, none of the places show up - either in the starter or the completed version! help!

---

<div class="post-metadata">

**Author:** ![dcritch](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@dcritch](https://forums.kodeco.com/u/dcritch)\
**Post date:** [March 8, 2018, 2:28am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/12 "2018-03-08T02:28:43Z")

</div>

@ron.kliffer Yes, I created an API Key and added to the one spot in the AppDelegate.swift file and even set key restriction to iOS only and used the correct bundle identifier to fix a different error I was getting. The map pops up and addresses are correctly show on the bottom of the screen which makes me think that the API is working… but NO PINS representing the restaurants and other stores anywhere.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [March 8, 2018, 3:11am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/13 "2018-03-08T03:11:56Z")

</div>

@ron.kliffer Do you have any feedback regarding this? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [March 8, 2018, 8:47am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/14 "2018-03-08T08:47:22Z")

</div>

@dcritch You shouldn’t restrict the key to iOS only, an unrestricted key is what you need for this tutorial

---

<div class="post-metadata">

**Author:** ![rabidgeek](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rabidgeek](https://forums.kodeco.com/u/rabidgeek)\
**Post date:** [March 8, 2018, 12:32pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/15 "2018-03-08T12:32:00Z")

</div>

@ron.kliffer I had the same problem - this is the second tutorial I have gone through with google maps… first one wanted a restricted iOS key so I did the same for this. Googled error code, decided to unrestrict the API key and that worked.

However, I don’t have any pins popping up… same as @dcritch

---

<div class="post-metadata">

**Author:** ![rabidgeek](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rabidgeek](https://forums.kodeco.com/u/rabidgeek)\
**Post date:** [March 8, 2018, 3:49pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/16 "2018-03-08T15:49:03Z")

</div>

@ron.kliffer I just ran it again. here is a debug readout:

2018-03-08 10:45:57.012162-0500 Feed Me[32017:2547098] Task .\<1\> finished with error - code: -999  
2018-03-08 10:45:57.017888-0500 Feed Me[32017:2547093] Task .\<1\> HTTP load failed (error code: -999 [1:89])  
2018-03-08 10:45:57.094772-0500 Feed Me[32017:2546904] Google Maps SDK for iOS and Google Places API for iOS version: 2.6.30421.0

Again, no pins popped up for any of the items searched for. (this applies to both starter and completed versions)

I checked my API settings, and it seems the Maps part is getting requests, but Places has no request. Perhaps one would need two separate API’s? (that is what the first tutorial that I tried used; for this one I am using one API for both Places and Maps)

---

<div class="post-metadata">

**Author:** ![ron.kliffer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ron.kliffer/32/110409_2.png) [@ron.kliffer](https://forums.kodeco.com/u/ron.kliffer)\
**Post date:** [March 9, 2018, 9:00pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/17 "2018-03-09T21:00:08Z")

</div>

Would you like me to take a look at your code and see if I can spot anything?

---

<div class="post-metadata">

**Author:** ![rabidgeek](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@rabidgeek](https://forums.kodeco.com/u/rabidgeek)\
**Post date:** [March 10, 2018, 1:45pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/18 "2018-03-10T13:45:55Z")

</div>

Sure, that would be nice. Where can I send you the zip file? (BTW - im having the same problem ass your completed code, and ive compared it - don’t think I’m missing anything)

---

<div class="post-metadata">

**Author:** ![dcritch](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@dcritch](https://forums.kodeco.com/u/dcritch)\
**Post date:** [March 11, 2018, 2:28am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/19 "2018-03-11T02:28:48Z")

</div>

Since it seems like we have the same problem, if found, could you please post the solution here?

---

<div class="post-metadata">

**Author:** ![dcritch](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@dcritch](https://forums.kodeco.com/u/dcritch)\
**Post date:** [March 11, 2018, 9:08am UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/20 "2018-03-11T09:08:53Z")

</div>

@ron.kliffer Thanks, Ron Kliffer. It was because, I think, of the API key restriction to iOS as you suggested. Much appreciated. 🙂 Super cool tutorial! 👍🏻👍🏻

---

<div class="post-metadata">

**Author:** ![pheepster](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/pheepster/32/81494_2.png) [@pheepster](https://forums.kodeco.com/u/pheepster)\
**Post date:** [March 16, 2018, 7:39pm UTC](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051/21 "2018-03-16T19:39:54Z")

</div>

@ron.kliffer Was wondering if you could point me to a resource that covers how to cache map tiles and/or features for offline use? Thanks!

[Next page](https://forums.kodeco.com/t/google-maps-ios-sdk-tutorial-getting-started/39051.md?page=2)
