Sorry, you need to enable JavaScript to visit this website.

Getting started

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:

_

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