Recommend Offline Regions

This guide covers how to find regions near the user or along a route so the iOS app can suggest the right offline data before travel begins.

Query by current location or complete route

1
let nearby = try await NBNavigation.getCountiesInRadius(
2
latitude: coordinate.latitude,
3
longitude: coordinate.longitude,
4
radiusMeters: 50_000
5
)
6
7
let alongRoute = try await NBNavigation.getCountiesAlongRoute(route: route)

The result uses the same OfflineRegionCatalog model as listOfflineRegions, so the region-list UI can be reused. Coordinates must use WGS84 standard. An along-route query requires at least two valid, distinct coordinates. The query may retrieve missing region details, so provide a loading state and cancellation handling.