Google Maps on iOS with Swift

18
Google Maps on iOS with Swift Brooklyn iOS, 3/25/15

Transcript of Google Maps on iOS with Swift

Google Maps on

iOS with Swift

Brooklyn iOS, 3/25/15

About me

Arun Nagarajan (@entaq)

Currently

Founding Engineer, funded stealth startup in NYC

We are hiring! Email us at [email protected]

Previously

2 yrs at Google - Tech Lead, Developer Platform

9 yrs at Verivo Software (Boston) - VP of Architecture

Lets get started

● MapKit started using Apple

Maps in fall of 2012

● Google Maps SDK for iOS came

out in Dec 2012

But seriously...

● Apple Maps and MapKit has come a long

way

● We use it in our app and its very powerful!

Google Maps SDK features

● SDKs are easier to update than underlying

OS

● Couple of nice touches like tap and drag for

zoom

● Subjective look and feel might be better

● Better if you are building an Android app as

well

Invoking Google Maps App

● Check if Google Maps invoked

● Invoke with parameters

Invoking Google Maps App (more)

● Search is also supported

● Be able to come “back” to your app

Steps to get Google Maps SDK

1. Download latest SDK (version 1.9.2, 23 mb)

2. Drag in Google Maps Framework

3. Find/Drag in Google Maps Resource Bundle4. Add -ObjC linker flags

Lots of binaries to link

Add Objective-C Bridging Header

...or clone a bootstrap project

...or use Cocoapods

pod 'Google-Maps-iOS-SDK', '~> 1.9.2'

Get an iOS Google Maps Key

1. https://console.developers.google.com/

2. Create a new project (or use existing)

3. Enable “Google Maps for iOS” under APIs

4. Create new Public Key for iOS under

Credentials

5. Paste in your Bundle ID

6. Get key!

Demo time!

Other factors

● Google Maps SDK adds bit over 4 MB to your

app

● Licensing can be tricky - seems like free for

non-commercial apps. Reading required -

https://developers.google.com/maps/licensing

Recap

● MapKit is awesome

● But Google Maps SDK for iOS provides a nice

option

● Super easy to get started with Swift

● Get starter code here

github.com/entaq/GoogleMapsSwiftBootstrap

developers.google.com/maps/documentation/ios

Thanks

Questions?

Arun Nagarajan

[email protected]

We are hiring! Email us at [email protected]