THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Getting Started

The TomTom Maps SDK gives you the ability to use either online or offline styles in your mobile application.

If you choose to use offline styles, they will be imported to your app with the Maps SDK framework TomTomOnlineSDKMaps. Thanks to that, the styles will already be included in your app at download time. The styles are added to the Maps SDK framework by default.

To integrate the TomTomOnlineSDKMaps for iOS into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'TomTomOnlineSDKMaps'

To integrate the TomTomOnlineSDKMaps with online styles (You will need to provide it using: TTMapStyleConfiguration) for iOS into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'TomTomOnlineSDKMaps/Online'

Add the service key taken from the My Dashboard site.

let mapConfig = TTMapConfigurationBuilder.create().withMapKey(<Key>).withTrafficKey(<Key>).build()
self.mapView = TTMapView(frame: view.bounds, mapConfiguration: mapConfig)
TTMapConfiguration *mapConfig = [[[[[TTMapConfigurationBuilder createBuilder] withMapKey:<Key>] withTrafficKey:<Key>] build]
self.mapView = [[TTMapView alloc] initWithFrame:self.view.bounds mapConfiguration:mapConfig];

Additionally, there is the TomTomOnlineSDKMapsUIExtensions framework with default UI controls and other assets for the map.

To use this framework in your project add it to the podfile (it doesn’t require any key).

pod 'TomTomOnlineSDKMapsUIExtensions'

The basic steps for adding a map are:

  1. Set up your project as described in DOWNLOADS.
  2. Create the object 'TTMapView'.
  3. Obtain keys in config.

Initializing a map:

1let style = TTMapStyleDefaultConfiguration()
2let mapConfig = TTMapConfigurationBuilder.create().withMapKey(<Key>).withTrafficKey(<Key>).withMapStyleConfiguration(style)
3self.mapView = TTMapView(frame: view.bounds, mapConfiguration: mapConfig,build())
1TTMapStyleConfiguration *style = [TTMapStyleDefaultConfiguration new];
2TTMapConfiguration *mapConfig = [[[[[[TTMapConfigurationBuilder createBuilder] withMapKey:<Key>] withTrafficKey:<Key>] withMapStyleConfiguration:style] build];
3self.mapView = [[TTMapView alloc] initWithFrame:self.view.bounds mapConfiguration:mapConfig];