Package-level declarations

Types

Link copied to clipboard
class Address(val houseNumber: String? = null, val street: String? = null, val neighborhood: String? = null, val locality: String? = null, val postcode: String? = null, val place: String? = null, val district: String? = null, val region: String? = null, val country: String? = null)

Represents a physical address with various optional components.

Link copied to clipboard
class BoundingBox(val southwest: Point, val northeast: Point)

A bounding box is a rectangular area of a map.

Link copied to clipboard
class Brand(val name: String) : SearchItem

A brand like "McDonald's" or "Burger King".

Link copied to clipboard

Defines type of map camera overview modes.

Link copied to clipboard
class Category(val name: String, val canonicalName: String) : SearchItem

A category like "restaurant" or "supermarket".

Link copied to clipboard
class CategorySearchOptions(val proximity: Point? = null, val boundingBox: BoundingBox? = null)

Search options, used for category search.

Link copied to clipboard
class DayOfWeekTime(val day: Int, val hour: Int, val minute: Int)

Represents a specific time within a specific day of a week.

Link copied to clipboard
Link copied to clipboard
class FavoritePlace(val place: SearchResult, val type: String)

Represents a user-defined favorite place.

Link copied to clipboard

Represents different types of user-defined favorite locations.

Link copied to clipboard
abstract class HoursOfOperation

Represents hours of operations of a POI (SearchResult).

Link copied to clipboard
class LocationMatcherResult(val location: MapMatchedLocation, val etcRoadType: Int, val speed3D: Float, val altitudeMeanSeaLevel: Float)

Represents the result of MapMatching.

Link copied to clipboard
class MapDisplayOptions(val trafficVisibilityType: String)

Configuration of how the map will look.

Link copied to clipboard
class MapMatchedLocation(val latitude: Double, val longitude: Double, val heading: Float)

Class representing a map-matched location.

Link copied to clipboard

Defines the traffic visibility on the map.

Link copied to clipboard
abstract class NavigationState

Represents the current state of the navigation.

Link copied to clipboard

The navigation app is in the active guidance mode.

Link copied to clipboard

The navigation app is in the free drive mode.

Link copied to clipboard
class OperatingInterval(val open: DayOfWeekTime, val closed: DayOfWeekTime)

Represents times of a day when a POI (SearchResult) is opened and closed.

Link copied to clipboard
class Point(val latitude: Double, val longitude: Double)

A point is a geospatial feature defined by one pair of latitude and longitude coordinates.

Link copied to clipboard
class RouteOptions(val avoidHighways: Boolean, val avoidTolls: Boolean, val avoidFerries: Boolean, val avoidUnpavedRoads: Boolean, val includeHov2: Boolean, val includeHov3: Boolean, val suppressVoiceInstructionLocalNames: Boolean)

Configuration options for route calculation.

Link copied to clipboard
class SearchAlongTheRouteOptions(val deviationTime: Duration = 3.minutes)

Options to perform a SAR (search along the route).

Link copied to clipboard
abstract class SearchItem

Item found by a search with an instance of NavManagerService.

Link copied to clipboard
class SearchOptions(val proximity: Point? = null, val boundingBox: BoundingBox? = null, val countries: List<String>? = null)

Search options, used for forward geocoding.

Link copied to clipboard
class SearchResult(val id: String, val coordinate: Point, val address: Address?, val name: String, val customName: String?, val type: String, val categoryIds: List<String>?, val description: String?, val distanceMeters: Double?, val etaMinutes: Double?, val isOffline: Boolean, val metadata: SearchResultMetadata?) : SearchItem

Represents a place on a map that the user can navigate to. Must not necessary be instantiated by Mapbox, can also be created on the client side to convert 3rd-party search results into Mapbox format to then navigate to them.

Link copied to clipboard
class SearchResultMetadata(val reviewCount: Int? = null, val phone: String? = null, val website: String? = null, val rating: Float? = null, val description: String? = null, val openHours: HoursOfOperation? = null, val extraData: Map<String, String> = emptyMap())

Additional metadata for a SearchResult.

Link copied to clipboard

Defines type of search result.

Link copied to clipboard