Project set up
To develop your own application with Maps SDK, you need to make sure that the pre-requisites are in place and that you have added Maps SDK as a dependency into your project. Follow the steps below and then you are ready to code!
Get the pre-requisites in place:
XCode installed (How to install XCode)
Set up the application deployment target to 9.1 or higher
Set up your project like this:
Create a new project or open an existing one
Choose SDK modules for your app
Either independently include modules for Maps, Search and/or Routing or all of them at once. You can do so by adding Maps SDK modules to Podfile and running pod install again:
MAP - Getting started
SEARCH - Getting started
ROUTING - Getting started
Configuration for all Maps SDK modules
To include all Maps SDK modules in your app, modify Info.plist:
Add services keys inside Info.plist taken from http://developer.tomtom.com
pod 'TomTomOnlineSDKMaps' pod 'TomTomOnlineSDKSearch' pod 'TomTomOnlineSDKRouting' pod 'TomTomOnlineSDKMapsUIExtensions'
Now go to console and install frameworks by typing pod install
Building and Launching
To build your application open a newly created by Cocoapods XCode workspace, not a project.
Maps SDK Examples app
Download and build the Maps SDK Examples app to see key features of the Maps SDK. Modify the source code to learn more about the SDK. Speed up development by using the source code in your own app. Maps SDK Examples app download package: TomTom Maps iOS SDK Examples