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

Getting started

Getting started

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

pod 'TomTomOnlineSDKMaps'

Edit Info.plist and add the service key taken from Maps API site.

<key>OnlineMap.Key</key>
<string>"your-tomtom-key"</string>

 

Additionally, there is 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 it is described in DOWNLOADS

  2. Create object 'TTMapView'

  3. Obtain keys from Info.plist

Initializing Map:

_

let mapView = TTMapView(frame: CGRect.zero)
self.view = mapView
self.mapView = mapView
TTMapView *mapView = [[TTMapView alloc] initWithFrame:CGRectZero];
self.view = mapView;
self.mapView = mapView;