To develop your own application with the Maps SDK, you need to make sure that the prerequisites are in place and that you have added the Maps SDK as a dependency to your project. Follow the steps below and then you are ready to code! The Maps SDK for iOS is compatible with Swift and Objective-C.
- XCode installed (How to install XCode).
- Set up the application deployment target to 9.1 or higher.
- Install Cocoapods (How to install Cocoapods).
- Open XCode.
- Create a new project or open an existing one.
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
- TRAFFIC - Getting started
- GEOFENCING - Getting started
To include all Maps SDK modules in your app.
- Add services keys taken from http://developer.tomtom.com.
- Create Podfile
1pod 'TomTomOnlineSDKMaps'2pod 'TomTomOnlineSDKSearch'3pod 'TomTomOnlineSDKRouting'4pod 'TomTomOnlineSDKTraffic'5pod 'TomTomOnlineSDKMapsUIExtensions'6pod 'TomTomOnlineSDKMapsStaticImage'7pod 'TomTomOnlineSDKMapsDriving'8pod 'TomTomOnlineSDKGeofencing'
- Now go to the console and install the frameworks by typing pod install
The Maps SDK Examples app is available in two flavors: Swift and Objective-C. 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 are hosted on github: https://github.com/tomtom-international/maps-sdk-for-ios-examples
Clone the repository by command:
git clone https://github.com/tomtom-international/maps-sdk-for-ios-examples
Developers using TomTom SDKs and APIs in their apps similarly bear responsibility to adhere to applicable privacy laws.
These Maps SDK Examples are provided as-is and shall be used internally and for evaluation purposes only. Any other use is strictly prohibited.
To build your application, open a newly created by Cocoapods XCode workspace, not a project.