google maps on ios with swift
TRANSCRIPT
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
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
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!
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