Skip to main content

Build powerful location experiences on iOS

The Radar iOS SDK enables you to add geofencing, location tracking, trip monitoring, and location verification to your app with just a few lines of code.

Location Tracking

Continuous, responsive, efficient

Geofencing

Entry, exit, dwell events

Trip Tracking

Real-time ETAs & updates

Quick Start

Get up and running with the Radar iOS SDK in minutes

1

Install via CocoaPods or SPM

Add the Radar SDK to your project using CocoaPods or Swift Package Manager.
Podfile
pod 'RadarSDK', '~> 3.0'
Terminal
pod install
Or add via Swift Package Manager in Xcode: https://github.com/radarlabs/radar-sdk-ios
2

Initialize the SDK

Import Radar and initialize with your publishable API key in your AppDelegate.
AppDelegate.swift
import RadarSDK

func application(_ application: UIApplication, 
                didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    Radar.initialize(publishableKey: "prj_test_pk_...")
    return true
}
3

Request location permissions

Request location permissions from the user. Radar requires “When In Use” or “Always” authorization.
ViewController.swift
import CoreLocation

let locationManager = CLLocationManager()
locationManager.requestWhenInUseAuthorization()
// or locationManager.requestAlwaysAuthorization()
Add NSLocationWhenInUseUsageDescription and optionally NSLocationAlwaysAndWhenInUseUsageDescription keys to your Info.plist with descriptions of why your app needs location access.
4

Start tracking

Start tracking the user’s location with a single method call.
ViewController.swift
Radar.startTracking(trackingOptions: .presetEfficient)
Radar will now track the user’s location in the background and deliver events to your server.

Core Features

Powerful location capabilities built for production apps

Location Tracking

Track users in the background with configurable presets for continuous, responsive, or efficient tracking

Geofencing

Monitor custom geofences and receive entry, exit, and dwell events with dwelling time detection

Trip Tracking

Track trips with real-time ETAs, approach detection, and destination arrival notifications

Beacon Ranging

Range iBeacons and trigger proximity-based experiences for retail, events, and indoor navigation

Fraud Verification

Verify user location and detect location spoofing to prevent fraud and abuse

Context API

Get comprehensive location context including nearby places, chains, categories, and neighborhoods

Location Services

Rich location APIs for search, geocoding, and routing

Geocoding

Forward and reverse geocoding with international address support

Place Search

Search for places, geofences, and chains near a location

Distance & Routes

Calculate distance, duration, and turn-by-turn routes

Ready to start building?

Follow the quickstart guide to add location tracking to your iOS app in less than 10 minutes.

Get Started