class
ActivityTracker
ActivityTracker(
platformContext: Context,
model: Model,
speedBound: Double = 4.2,
timeThreshold: Duration = Duration.ofMilliseconds(20000)
)
AddEventResult
fun match(event: Function1, error: Function1): T
fun toString(): String
fun hashCode(): Int
Address
Address(
drillDown: List<AddressAdmDiv>,
components: List<AddressComponent>,
buildingName: String?,
buildingId: BuildingId?,
postCode: String?,
buildingCode: String?,
fiasCode: String?,
addressComment: String?
)
AddressAdmDiv
AddressComponent
fun match(
streetAddress: Function1,
number: Function1,
location: Function1
): T
fun toString(): String
fun hashCode(): Int
AddressLocation
AddressLocation(comment: String)
AddressNumber
AddressStreet
AddRoadEventButton
AddRoadEventButton(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun attachToModel(model: AddRoadEventCardModel): Unit
AddRoadEventCard
AddRoadEventCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun attachToModel(model: AddRoadEventCardModel): Unit
AddRoadEventCardModel
AddRoadEventCardModel(roadEventManager: RoadEventManager, map: Map)
fun onEventTypeClicked(type: RoadEventType): Unit
fun onLaneClicked(lane: Lane): Unit
fun onDescriptionEntered(description: String): Unit
fun close(): Unit
AddRoadEventControl
AddRoadEventControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun attachToModel(model: AddRoadEventCardModel): Unit
@CallSuper
fun detachFromModel(): Unit
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
AddRoadEventControls
AddRoadEventControls(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun show(): Unit
fun hide(): Unit
AddRoadEventMarker
AddRoadEventMarker(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun attachToModel(model: AddRoadEventCardModel): Unit
fun detachFromModel(): Unit
Aggregate
AlternativeRouteSelector
fun selectAlternativeRoute(trafficRoute: TrafficRoute): Unit
AlternativeRoutesProviderSettings
Anchor
AndroidAutoMapSession
Supports both shift and scale gestures.
The map's visibility is tied to the session's Lifecycle:
- Map becomes visible during the onStart event.
- Map becomes hidden during the onStop event.
Action.PAN must be included in the Template. Otherwise, the surface won't be available.
Next permissions are already declared in the SDK:
- androidx.car.app.ACCESS_SURFACE
- androidx.car.app.NAVIGATION_TEMPLATES
AndroidAutoMapSession(mapOptions: MapOptions)
Supports both shift and scale gestures.
The map's visibility is tied to the session's Lifecycle:
- Map becomes visible during the onStart event.
- Map becomes hidden during the onStop event.
Action.PAN must be included in the Template. Otherwise, the surface won't be available.
Next permissions are already declared in the SDK:
- androidx.car.app.ACCESS_SURFACE
- androidx.car.app.NAVIGATION_TEMPLATES
fun onSurfaceAvailable(
surface: Surface,
width: Int,
height: Int
): Unit
fun onSurfaceDestroyed(surface: Surface): Unit
fun onSurfaceStableAreaChanged(stableArea: Rect): Unit
fun onSurfaceVisibleAreaChanged(visibleArea: Rect): Unit
fun onMapReady(map: Map): Unit
fun onMapReadyException(exception: Exception): Unit
fun setTheme(theme: MapTheme): Unit
This takes effect only after the map has been initialized (i.e., after onMapReady has been called). To set a theme before the map is initialized, use the mapOptions#mapTheme.
fun setCopyrightPosition(position: CopyrightPosition): Unit
Important: This method must be called only after the onCreate state of Lifecycle.
AnimationSettings
ApartmentRange
Attribute
Attributes
Only map objects have properties, but you can set default properties for the entire map, the style, and the source (see ISource for details).
fun setAttributeValue(name: String, value: AttributeValue): Unit
fun setAttributeValues(values: Map, attributesToRemove: List<String> = listOf()): Unit
fun removeAttribute(name: String): Unit
fun getAttributeValue(name: String): AttributeValue
AttributeValue
AttributeValue()
fun match(
empty: Function0<T>,
boolean: Function1,
number: Function1,
integer: Function1,
string: Function1,
data: Function1,
array: Function1,
item: Function1
): T
fun toString(): String
fun hashCode(): Int
AudioSettings
All methods can be called from any thread.
AudioStreamReader
fun read(): List<Short>
AuthorInfo
AuthorInfo(type: AuthorType, name: String)
- Username if the author is an authorized user and has agreed to have their name displayed.
- Empty string for an anonymous user or a user who has refused to have their name displayed.
AvailableCallback
BaseCamera
Sets the parameters for projecting the map onto the screen.
fun changePosition(positionChange: CameraPositionChange): Unit
The call interrupts flyover and gesture processing, and also resets following of changed parameters, and when changing coordinates, also resets following the style zoom level and direction.
Used to get a screen point from a map point and a map point from a screen point. Camera parameters are fixed at the time of the call.
Bearing
BearingFollowController
BearingFollowController(
bearingSource: BearingSource,
animationDuration: Duration = Duration.ofMilliseconds(1000),
valueThreshold: Bearing = Bearing(value = 1.0)
)
BetterRouteInfo
BetterRouteInfo(trafficRoute: TrafficRoute, startPoint: RoutePoint)
BetterRoutePromptControl
BetterRoutePromptControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
BicycleBriefRouteInfo
BicycleBriefRouteInfo(length: RouteDistance, landmark: String)
BicycleInstructionCrossroad
BicycleInstructionCrossroad(landmark: BicycleInstructionCrossroadLandmark = BicycleInstructionCrossroadLandmark.NONE, maneuvers: List<BicycleInstructionCrossroadManeuver>)
BicycleInstructionCrossroadManeuver
BicycleInstructionCrossroadManeuver(direction: BicycleInstructionCrossroadManeuverDirection = BicycleInstructionCrossroadManeuverDirection.STRAIGHT, turnAngle: Int = 0)
BicycleInstructionFinish
BicycleInstructionFinish()
BicycleInstructionStart
BicycleInstructionStart()
BicycleRouteSearchOptions
BicycleRouteSearchOptions(
avoidCarRoads: Boolean = false,
avoidStairways: Boolean = false,
avoidUnderpassesAndOverpasses: Boolean = false,
excludedAreas: List<ExcludedArea> = listOf()
)
BoolRouteLongAttribute
fun entry(point: RoutePoint): BoolRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<BoolRouteLongEntry>
BoolRouteLongEntry
BoolRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: Boolean
)
Borders
BriefExtraRouteInfo
BriefExtraRouteInfo(pedestrian: PedestrianBriefRouteInfo)
BriefExtraRouteInfo(publicTransport: PublicBriefRouteInfo)
fun match(
bicycle: Function1,
car: Function1,
pedestrian: Function1,
publicTransport: Function1,
scooter: Function1
): T
fun toString(): String
fun hashCode(): Int
BriefPublicTransportCard
BriefPublicTransportCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
BriefPublicTransportCardModel
BriefPublicTransportCardModel(route: TrafficRoute, context: Context)
BriefRoadEvent
BriefRoadEvent(
id: Long = 0,
eventType: RoadEventType = RoadEventType.OTHER,
lanes: EnumSet<Lane>
)
BriefRouteInfo
BriefRouteInfo(duration: Duration, extraInfo: BriefExtraRouteInfo)
BriefRouteInfoSearchPoints
BriefRouteInfoSearchPoints(startPoint: RouteSearchPoint, finishPoint: RouteSearchPoint)
BuildingId
BuildingInfo
BuildingInfo(
buildingName: String? = null,
purposeName: String? = null,
purposeCode: PurposeCode? = null,
buildingLevels: BuildingLevels? = null,
buildingId: BuildingId?
)
BuildingLevels
BuildingLevels(defaultLevelId: LevelId, levels: List<LevelInfo>)
CalloutMapPosition
CalloutMapPosition(
mapId: MapId,
calloutPosition: GeoPoint?,
routePoint: RoutePoint?
)
Camera
fun move(moveController: CameraMoveController): Future<CameraAnimatedMoveResult>
fun move(
position: CameraPosition,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
fun move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Resets the current map tracking mode and interrupts gesture processing.
fun processMovementAndStop(): Unit
Calling the method interrupts the flyover and gesture processing, and also resets the tracking mode.
fun addFollowController(followController: FollowController): Unit
There can be several different ones, for example, a controller for tracking the scale, map tilt, geolocation, etc.
fun removeFollowController(followController: FollowController): Unit
fun setCustomFollowController(followController: CustomFollowController): Unit
Only one such controller can be installed. If you install multiple controllers, only the last one installed is used.
fun removeCustomFollowController(): Unit
CameraBehaviour
Camera modes are degraded according to the following rules:
- Map shift sets to None the following events: DirectMapShiftEvent, MapShiftBeginEvent, DirectMapRotationEvent with the specified event center, DirectMapScalingEvent with the specified event center, ScaleMapEvent with the specified event center
- Rotation of the map relative to the position point blocks the publication of Bearing events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center
- Changing the scale relative to the position point blocks the publication of StyleZoom events: MapScalingBeginEvent, DirectMapScalingEvent without event center, ScaleMapEvent without event center
- Tilt locks the publication of Tilt events: DirectMapTiltEvent
CameraBehaviour(position: FollowPosition?, tilt: FollowTilt = FollowTilt.OFF)
Camera modes are degraded according to the following rules:
- Map shift sets to None the following events: DirectMapShiftEvent, MapShiftBeginEvent, DirectMapRotationEvent with the specified event center, DirectMapScalingEvent with the specified event center, ScaleMapEvent with the specified event center
- Rotation of the map relative to the position point blocks the publication of Bearing events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center
- Changing the scale relative to the position point blocks the publication of StyleZoom events: MapScalingBeginEvent, DirectMapScalingEvent without event center, ScaleMapEvent without event center
- Tilt locks the publication of Tilt events: DirectMapTiltEvent
CameraBehaviourChange
CameraBehaviourChange(newBehaviour: CameraBehaviour, changeReason: CameraBehaviourChangeReason = CameraBehaviourChangeReason.APPLICATION)
CameraNotifier
CameraNotifier(model: Model)
CameraPosition
0 - nadir (look vertically down), the maximum value is 60 degrees.
CameraPositionChange
CameraPositionPoint
Screen area is set by paddings. x - offset from the left edge of the screen area, y - offset from the top edge. Allowed range of padding values: (0.0f, 1.0f) 0,0 - the upper-left corner of the screen area, 1,1 - the lower-right corner.
CameraPositionPoint(x: Float = 0.5f, y: Float = 0.5f)
Screen area is set by paddings. x - offset from the left edge of the screen area, y - offset from the top edge. Allowed range of padding values: (0.0f, 1.0f) 0,0 - the upper-left corner of the screen area, 1,1 - the lower-right corner.
CameraProgressInfo
CameraProgressInfo(
camera: RouteCamera,
position: RoutePoint,
progress: Float = 0.0f
)
CameraRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<CameraRouteEntry>
fun findNearBackward(point: RoutePoint): CameraRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): CameraRouteEntry?
The complexity of the operation is log2(N), where N = size.
CameraRouteEntry
CameraRouteEntry(point: RoutePoint, value: RouteCamera)
CameraViewPoint
Available range of padding values is (0.0f, 1.0f), where `0.0` is the upper left corner of the viewport, `1.1` is the lower right.
CameraZoomRestrictions
CancelEvent
For example, can be called when a gesture is canceled, the window focus is lost, or when the mouse capture is lost. It can also be called from within the map when changing the zoom level restrictions, applying changes to the tracking mode, and setting the interactive mode of the map.
CancelEvent()
CarBriefRouteInfo
CarBriefRouteInfo(
length: RouteDistance,
landmark: String,
trafficSpeed: CarBriefRouteInfoTrafficSpeed
)
CarInstructionCrossroad
CarInstructionCrossroad(
direction: CarInstructionCrossroadDirection = CarInstructionCrossroadDirection.STRAIGHT,
turnAngle: Int = 0,
landmark: CarInstructionCrossroadLandmark = CarInstructionCrossroadLandmark.NONE,
exitName: String
)
CarInstructionFinish
CarInstructionFinish()
CarInstructionRoundabout
CarInstructionRoundabout(
type: CarInstructionRoundaboutType = CarInstructionRoundaboutType.ENTRY,
turnAngle: Int = 0,
exitNumber: Int = 0,
exitName: String
)
CarInstructionStart
CarInstructionStart()
CarInstructionUTurn
U-turn at the intersection is described by the Crossroad instruction.
CarInstructionUTurn(exitName: String)
U-turn at the intersection is described by the Crossroad instruction.
CarRouteSearchOptions
CarRouteSearchOptions(
avoidTollRoads: Boolean = false,
avoidUnpavedRoads: Boolean = false,
avoidFerries: Boolean = false,
avoidLockedRoads: Boolean = true,
routeSearchType: RouteSearchType = RouteSearchType.JAM,
excludedAreas: List<ExcludedArea> = listOf()
)
Certificate
fun match(
system: Function1,
fromFile: Function1,
fromAsset: Function1
): T
fun toString(): String
fun hashCode(): Int
CertificateFromAsset
CertificateFromFile
ChargingStation
ChargingStation(aggregate: Aggregate, connectors: List<Connector>)
CheckableGroupedItem
CheckableItem
CheckableItemsGroup
Checkbox
Circle
CircleOptions
CircleOptions(
position: GeoPoint,
radius: Meter,
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value = 0.0f),
strokeColor: Color = Color(),
dashedStrokeOptions: DashedStrokeCircleOptions? = null,
visible: Boolean = true,
userData: Any? = null,
zIndex: ZIndex = ZIndex(value = 0),
levelId: LevelId? = null
)
ClusterObject
ClusterOptions
Color
CompassControl
CompassControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
CompassControl
CompassControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0,
layout: Int = R.layout.dgis_compass_control
)
CompassControlModel
fun onClicked(): Unit
ComplexGeometry
An arbitrary level of nesting of compound geometries in a set is supported.
Connector
Connector(
power: Short,
price: Short,
status: StatusType,
type: String
)
ContactInfo
- website
- phone
- fax
- pobox - P.O. box
- icq
- jabber
- skype
- vkontakte
- odnoklassniki
- youtube
- googleplus
- viber
- telegram
- email - email address
- website - full URL
- phone - phone number in international format, for example: "+73831234567"
- fax - phone number in international format, for example: "+73831234567"
- pobox - mailing address
- icq - user ID
- jabber - user ID
- skype - user ID
- vkontakte - full URL
- twitter - full URL
- odnoklassniki - full URL
- youtube - full URL
- linkedin - full URL
- googleplus - full URL
- pinterest - full URL
- whatsapp - full URL
- viber - full URL
- telegram - full URL
Context
CoordinatesFollowController
CoordinatesFollowController(animationDuration: Duration = Duration.ofMilliseconds(1000), valueThreshold: Meter = Meter(value = 0.1f))
CopyrightMargins
CopyrightPosition
CopyrightPosition(gravity: Int, margins: CopyrightMargins)
CustomDashboardButton
CustomDashboardButton(icon: Int, onClick: Function0<Unit>)
CustomizableDashboardButton
DashboardButtonAbsent
DashboardControl
DashboardControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
fun toggleExpandedState(): Unit
DashedPolylineOptions
DashedPolylineOptions(dashLength: LogicalPixel = LogicalPixel(value = 5.0f), dashSpaceLength: LogicalPixel = LogicalPixel(value = 2.0f))
DashedStrokeCircleOptions
DashedStrokeCircleOptions(dashLength: LogicalPixel = LogicalPixel(value = 5.0f), dashSpaceLength: LogicalPixel = LogicalPixel(value = 2.0f))
DayTime
DefaultLocationSource
DefaultLocationSource(context: Context)
@Synchronized
fun activate(listener: LocationChangeListener): Unit
@Synchronized
fun deactivate(): Unit
@Synchronized
fun setDesiredAccuracy(accuracy: DesiredAccuracy): Unit
fun onPermissionGranted(): Unit
@Synchronized
fun onProvidersChanged(): Unit
DefaultNavigationControls
DefaultNavigationControls(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun setCustomDashboardButton(button: CustomizableDashboardButton): Unit
Must be called before adding DefaultNavigationControls to the UI controls hierarchy.
fun onConfigurationChanged(newConfig: Configuration): Unit
fun onAttachedToWindow(): Unit
DefaultRasterUrlTemplate
DefaultSpeechRecognizer
DefaultSpeechRecognizer(activity: <ERROR CLASS>, prompt: String? = "Speak Now")
fun recognize(onResult: Function1, onError: Function1): Unit
DeviceDensity
For Android, it corresponds to resources.displayMetrics.density. For iOS, it corresponds to nativeScale.
Must be positive.
DeviceDensity(value: Float = 0.0f)
For Android, it corresponds to resources.displayMetrics.density. For iOS, it corresponds to nativeScale.
Must be positive.
DevicePpi
Must be positive.
DevicePpi(value: Float = 0.0f)
Must be positive.
DGis
@JvmStatic
fun initialize(
appContext: Context,
httpOptions: HttpOptions = HttpOptions(),
logOptions: LogOptions = LogOptions(LogLevel.WARNING),
vendorConfig: VendorConfig = VendorConfig(),
keySource: KeySource = KeySource(KeyFromAsset("dgissdk.key")),
dataCollectConsent: PersonalDataCollectionConsent = PersonalDataCollectionConsent.GRANTED,
platformHttpClient: HttpClient? = null,
platformAudioDriver: AudioDriver? = null,
mapOptions: GlobalMapOptions = GlobalMapOptions()
): Context
@JvmStatic
fun context(): Context
DgisMapObject
Information about the object can be obtained via directory.
DgisObjectId
DgisSource
fun setHighlighted(directoryObjectIds: List<DgisObjectId>, highlighted: Boolean): Unit
Adds a "selected" attribute to an object, which can be used in styles.
@JvmStatic
fun createDgisSource(context: Context, workingMode: DgisSourceWorkingMode = DgisSourceWorkingMode.HYBRID_ONLINE_FIRST): Source
DirectMapControlBeginEvent
DirectMapControlBeginEvent()
DirectMapControlEndEvent
DirectMapRotationEvent
DirectMapRotationEvent(
bearingDelta: Bearing,
timestamp: Duration,
rotationCenter: ScreenPoint? = null
)
DirectMapScalingEvent
DirectMapScalingEvent(
zoomDelta: Float,
timestamp: Duration,
scalingCenter: ScreenPoint? = null
)
DirectMapShiftEvent
DirectMapShiftEvent(
screenShift: ScreenShift,
shiftedPoint: ScreenPoint,
timestamp: Duration
)
DirectMapTiltEvent
DirectoryFilter
DirectoryFilter(workTime: WorkTimeFilter?, dynamic: List<DynamicFilter>)
DirectoryObject
fun formattedAddress(type: FormattingType): FormattedAddress?
Can be an empty string if the value is missing.
DoubleRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<DoubleRouteEntry>
fun findNearBackward(point: RoutePoint): DoubleRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): DoubleRouteEntry?
The complexity of the operation is log2(N), where N = size.
DoubleRouteEntry
DoubleRouteEntry(point: RoutePoint, value: Double)
DragBeginData
DragBeginData(point: ScreenPoint, item: RenderedObject)
Duration
operator fun unaryMinus(): Duration
fun toString(): String
fun toFormattedMeasure(context: Context): FormattedMeasure
fun toArrivalTimeString(): String
DynamicFilter
fun match(
flagFilter: Function1,
rangeFilter: Function1,
sortingFilter: Function1
): T
fun toString(): String
fun hashCode(): Int
DynamicRouteInfo
DynamicRouteInfo(roadEvents: RoadEventRouteAttribute, traffic: Traffic)
DynamicRouteInfoSettings
Elevation
Elevation(value: Float = 0.0f)
EmptyFollowController
EmptyFollowController()
fun availableValues(): EnumSet<FollowValue>
fun requestValues(values: EnumSet<FollowValue>): Unit
fun setNewValuesNotifier(notifier: NewValuesNotifier?): Unit
fun bearing(): Bearing?
EntranceGeometry
EntranceGeometry(entrancePoints: List<GeoPoint>, entrancePolylines: List<List<GeoPoint>>)
EntranceInfo
EntranceInfo(
id: DgisObjectId,
buildingNumber: String?,
porchName: String?,
porchNumber: String?,
apartmentRanges: List<ApartmentRange>,
geometry: EntranceGeometry?
)
Event
EventsProcessingSettings
EventsProcessingSettings(rotationCenter: RotationCenter, scalingCenter: ScalingCenter)
ExceedSpeedLimitSettings
ExcludedArea
ExcludedArea(
type: ExcludedAreaType = ExcludedAreaType.POINT,
severity: ExcludedAreaSeverity = ExcludedAreaSeverity.SOFT,
extent: RouteDistance,
points: List<GeoPoint>
)
ExtraInstructionInfo
ExtraInstructionInfo(bicycleStart: BicycleInstructionStart)
ExtraInstructionInfo(bicycleFinish: BicycleInstructionFinish)
ExtraInstructionInfo(bicycleCrossroad: BicycleInstructionCrossroad)
ExtraInstructionInfo(carCrossroad: CarInstructionCrossroad)
ExtraInstructionInfo(carRoundabout: CarInstructionRoundabout)
ExtraInstructionInfo(pedestrianStart: PedestrianInstructionStart)
ExtraInstructionInfo(pedestrianFinish: PedestrianInstructionFinish)
ExtraInstructionInfo(pedestrianCrossroad: PedestrianInstructionCrossroad)
ExtraInstructionInfo(pedestrianIndoorFloorChange: PedestrianInstructionIndoorFloorChange)
ExtraInstructionInfo(pedestrianIndoorEnter: PedestrianInstructionIndoorEnter)
ExtraInstructionInfo(pedestrianIndoorExit: PedestrianInstructionIndoorExit)
ExtraInstructionInfo(scooterStart: ScooterInstructionStart)
ExtraInstructionInfo(scooterFinish: ScooterInstructionFinish)
ExtraInstructionInfo(scooterCrossroad: ScooterInstructionCrossroad)
fun match(
bicycleStart: Function1,
bicycleFinish: Function1,
bicycleCrossroad: Function1,
carStart: Function1,
carFinish: Function1,
carCrossroad: Function1,
carRoundabout: Function1,
carUturn: Function1,
pedestrianStart: Function1,
pedestrianFinish: Function1,
pedestrianCrossroad: Function1,
pedestrianIndoorFloorChange: Function1,
pedestrianIndoorEnter: Function1,
pedestrianIndoorExit: Function1,
scooterStart: Function1,
scooterFinish: Function1,
scooterCrossroad: Function1
): T
fun toString(): String
fun hashCode(): Int
File
Can be not only a file in the file system, but also an arbitrary data source.
@JvmStatic
fun fromString(contents: String): File
FinishRouteControl
FinishRouteControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
fun expand(): Unit
FlagFilter
FloatRouteLongAttribute
fun entry(point: RoutePoint): FloatRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<FloatRouteLongEntry>
FloatRouteLongEntry
FloatRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: Float
)
FloorInfo
FloorInfo(levelId: LevelId, buildingId: BuildingId)
FollowControl
FollowControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
FollowController
FollowPosition
FollowPosition(bearing: FollowBearing = FollowBearing.OFF, styleZoom: FollowStyleZoom = FollowStyleZoom.OFF)
FormattedAddress
FormattedMeasure
Fps
FreeRoamSelector
FreeRoamSettings
Tiles are not loaded into the HTTP cache if the parameter matches zero or negative distance.
Tiles are not loaded into the HTTP cache, if the parameter corresponds to zero or negative distance.
Tiles are not loaded into the HTTP cache if the parameter corresponds to a zero or negative distance.< /p>
Geometry
GeometryMapObject
Methods are thread-safe.
The object is displayed on the map under the following conditions:
- the object is visible;
- the object is added to the data source;
- the data source containing the object is added to the map;
- the display parameters in the map styles are applicable to this object. For more information about displaying objects on the map, see ISource.
GeometryMapObjectBuilder
GeometryMapObjectBuilder()
fun setObjectAttribute(name: String, value: AttributeValue): GeometryMapObjectBuilder
fun setObjectAttributes(values: Map): GeometryMapObjectBuilder
The method does not replace the entire set of object properties, i.e. if a property is absent in values, but has already been added to the object previously, it will not be changed.
fun setGeometry(geometry: Geometry): GeometryMapObjectBuilder
fun setVisible(visible: Boolean): GeometryMapObjectBuilder
fun setDraggable(draggable: Boolean): GeometryMapObjectBuilder
fun setUserData(userData: Any?): GeometryMapObjectBuilder
User data is not used in any way in the SDK and is only returned it to the user.
fun createObject(): GeometryMapObject
The object must have geometry
After calling this function, GeometryMapObjectBuilder becomes unsuitable for setting the parameters of a map object or for creating an object.
fun setObjectAttribute(name: String, value: Boolean): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Long): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Int): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Double): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Float): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: String): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: ByteArray): GeometryMapObjectBuilder
fun setObjectAttribute(name: String, value: Color): GeometryMapObjectBuilder
GeometryMapObjectSource
fun clusteringObjects(position: CameraPosition): List<MapObject>
fun addObject(item: GeometryMapObject): Unit
Adding objects by group is more efficient than adding one by one, especially when the source has already been added to one or more maps.
Adding is asynchronous, thread-safe, the method can be used from any thread.
For a source with clustering, addition is not yet implemented, an exception will be thrown.
fun addObjects(objects: List<GeometryMapObject>): Unit
Adding objects by group is more efficient than adding one by one, especially when the source has already been added to one or more maps.
Adding is asynchronous, thread-safe, the method can be use from any thread.
For a source with clustering, addition is not yet implemented, an exception will be thrown.
fun removeObject(item: GeometryMapObject): Unit
The deletion is asynchronous, thread-safe, the method can be used from any thread.
fun removeObjects(objects: List<GeometryMapObject>): Unit
fun removeAndAddObjects(objectsToRemove: List<GeometryMapObject>, objectsToAdd: List<GeometryMapObject>): Unit
GeometryMapObjectSourceBuilder
fun setSourceAttribute(name: String, value: AttributeValue): GeometryMapObjectSourceBuilder
fun setSourceAttributes(values: Map): GeometryMapObjectSourceBuilder
fun addObject(item: GeometryMapObject): GeometryMapObjectSourceBuilder
fun addObjects(objects: List<GeometryMapObject>): GeometryMapObjectSourceBuilder
fun createSource(): GeometryMapObjectSource
After calling this function, you cannot use the GeometryMapObjectSourceBuilder to create a data source or set data source parameters.
GeoPoint
GeoPoint(latitude: Latitude, longitude: Longitude)
fun move(bearing: Bearing, meter: Meter): GeoPoint
fun withElevation(elevation: Elevation = Elevation(0.0f)): GeoPointWithElevation
fun bearing(point: GeoPoint): Bearing
GeoPointRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<GeoPointRouteEntry>
fun findNearBackward(point: RoutePoint): GeoPointRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): GeoPointRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun calculateGeoPoint(routePoint: RoutePoint): SegmentGeoPoint?
The complexity of the operation is O(log2(N)), where N = route_geometry .size()
fun calculateClosestPoint(point: GeoPoint): RoutePoint?
Operation complexity is O(N), where N = route_geometry.size()
GeoPointRouteEntry
GeoPointRouteEntry(point: RoutePoint, value: GeoPoint)
GeoPointWithElevation
Elevation is calculated in meters above the surface, not above the sea level.
GeoPointWithElevation(
latitude: Latitude,
longitude: Longitude,
elevation: Elevation = Elevation(value = 0.0f)
)
Elevation is calculated in meters above the surface, not above the sea level.
fun bearing(point: GeoPoint): Bearing
fun distance(point: GeoPoint): Meter
fun move(bearing: Bearing, meter: Meter): GeoPointWithElevation
GeoRect
fun contains(point: GeoPoint): Boolean
fun expand(point: GeoPoint): GeoRect
GestureManager
fun setSettingsAboutMapPositionPoint(settings: EventsProcessingSettings): Unit
When the function is called, gesture recognition tools are recreated.
fun setTargetGeoPoint(geoPoint: GeoPoint?): Unit
fun setMutuallyExclusiveGestures(rules: List<EnumSet<Gesture>>): Unit
The passed list is extended with default rules, which do not allow the tilt management gesture to be triggered simultaneously with other gestures. Each rule contains a list of gestures that cannot be triggered simultaneously. For example, if the Scaling and Rotation gestures are specified in the rule, these gestures will not work simultaneously. If multiple gestures from the rule are called simultaneously, the gesture with higher priority will be triggered. The order of gesture priorities (in descending order): (Shift ->) Tilt -> Scaling -> Rotation -> MultiTouchShift
GLESRenderer
GLESRenderer(
numberOfInputSurfaces: Int,
outputSurface: Surface,
outputSurfaceSize: Size,
rendererCallback: Callback,
rendererCallbackHandler: Handler
)
fun setCopyright(bitmap: Bitmap?, position: Point): Unit
Important: not thread safe.
fun releaseAndJoinRenderThread(): Unit
GlobalMapOptions
GlobalMapOptions(graphicsApi: GraphicsApi = GraphicsApi.OPEN_GL)
GradientPolylineOptions
GradientPolylineOptions(
borderWidth: LogicalPixel = LogicalPixel(value = 0.0f),
secondBorderWidth: LogicalPixel = LogicalPixel(value = 0.0f),
gradientLength: LogicalPixel = LogicalPixel(value = 1.0f),
borderColor: Color = Color(),
secondBorderColor: Color = Color(),
colors: List<Color>,
colorIndices: ByteArray
)
GroupCheckableItem
GroupItem
GroupItem(id: DgisObjectId, type: ObjectType)
HttpCacheManager
HttpHeader
HttpOptions
HttpOptions(
timeout: Duration = Duration.ofMilliseconds(15000),
useCache: Boolean = true,
cacheStoragePath: String? = null,
cacheMaxSize: Long? = null,
certificates: List?<Certificate> = null,
proxy: HttpProxyOptions? = null
)
HttpProxyOptions
HttpRequest
HttpRequest(
url: String,
method: HttpMethod = HttpMethod.GET,
headers: List<HttpHeader> = listOf(),
body: ByteArray? = null
)
HttpResponse
The reponse body is stored and handled separately.
HttpResponse(statusCode: HttpStatusCode, headers: List<HttpHeader>)
The reponse body is stored and handled separately.
HttpResponseCallback
fun onResponse(response: HttpResponse): Boolean
fun onReceive(body: ByteArray, size: Int): Boolean
fun onFinished(): Unit
HttpStatusCode
Image
ImageData
ImageData(
size: ScreenSize,
format: ImageFormat,
data: ByteArray
)
fun toBitmap(): Bitmap
IncompleteTextHandler
IndoorBuilding
IndoorControl
It is a column with the names of floors with the active one highlighted. When you click a name, the floor plan switches. No more than 5 names are displayed at the same time, those that do not fit can be scrolled to.
IndoorControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
It is a column with the names of floors with the active one highlighted. When you click a name, the floor plan switches. No more than 5 names are displayed at the same time, those that do not fit can be scrolled to.
IndoorControlModel
IndoorDetector
IndoorManager
fun setIndoorState(newState: IndoorManagerState): Unit
IndoorRouteLevelsGetter
InputEvent
InstructionRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<InstructionRouteEntry>
fun findNearBackward(point: RoutePoint): InstructionRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): InstructionRouteEntry?
The complexity of the operation is log2(N), where N = size.
InstructionRouteEntry
InstructionRouteEntry(point: RoutePoint, value: RouteInstruction)
IntRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<IntRouteEntry>
fun findNearBackward(point: RoutePoint): IntRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): IntRouteEntry?
The complexity of the operation is log2(N), where N = size.
IntRouteEntry
IntRouteEntry(point: RoutePoint, value: Int)
IsOpenNow
IsOpenNow()
ItemMarkerInfo
KeyFromAsset
KeyFromAsset(path: String)
KeyFromFile
KeyFromString
KeySource
fun match(
fromAsset: Function1,
fromFile: Function1,
fromString: Function1
): T
fun toString(): String
fun hashCode(): Int
LanesCalloutMapPosition
LanesCalloutMapPosition(
mapId: MapId,
routePoint: RoutePoint,
geoPoint: GeoPoint
)
LaneSignRouteLongAttribute
fun entry(point: RoutePoint): LaneSignRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<LaneSignRouteLongEntry>
LaneSignRouteLongEntry
LaneSignRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RouteLaneSign
)
Latitude
LevelId
LevelInfo
Locale
fun toLocalePosix(): String
LocaleManager
fun overrideLocales(locales: List<Locale>): Unit
OS locales are ordered in the way specified by the user (in order of highest priority to a lower priority).
OS locales are ordered in the way specified by the user (in order of highest priority to a lower priority).
Location
Location(
coordinates: LocationCoordinates,
altitude: LocationFuzzyDouble?,
course: LocationCourse?,
groundSpeed: LocationFuzzyDouble?,
source: String,
timestamp: Duration
)
Timestamps between different location sources are not synchronized, so you cannot compare timestamps for locations that are obtained from different sources.
LocationCoordinates
LocationCourse
LocationFuzzyDouble
LogicalPixel
1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.
LogicalPixel(value: Float = 0.0f)
1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.
LogMessage
LogOptions
Longitude
MagneticChangeListener
ManeuverControl
ManeuverControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Map
fun addSource(source: Source): Unit
Occurs asynchronously. The method can be called from any thread, it is thread-safe.
fun removeSource(source: Source): Unit
Occurs asynchronously. The method can be called from any thread, it is thread safe.
fun getRenderedObjects(centerPoint: ScreenPoint, radius: ScreenDistance = ScreenDistance(value = 1.0f)): Future<List<RenderedObjectInfo>>
The list of objects is formed in the order of rendering from the latest to the earliest.
fun sublayerAttributes(sublayerName: String): Attributes
fun setAttribute(name: String, value: AttributeValue): Unit
When tracking the camera position, the map state is always MapDataLoadingState::Loading.
When tracking the camera position, the map state is always MapDataLoadingState::Loading.
The size of icons and fonts is specified in logical pixels (see LogicalPixel) and multiplied by the font and icon size multiplier.
The size of icons and fonts is specified in logical pixels (see LogicalPixel) and multiplied by the font and icon size multiplier.
Occurs asynchronously. The method can be called from any thread, it is thread safe.
The following properties must be specified: "theme"="day|night" "navigatorOn"="true|false"
The function can be called from any thread.
The function can be called from any thread.
MapControl
MapControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
MapControls
MapControls(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onLayout(
changed: Boolean,
left: Int,
top: Int,
right: Int,
bottom: Int
): Unit
MapDirection
MapDirection(value: Double = 0.0)
MapId
MapLocationController
MapManager
MapObject
MapObjectManager
MapObjectManager(map: Map, layerId: String? = null)
fun removeObject(item: SimpleMapObject): Unit
fun addObjects(objects: List<SimpleMapObject>): Unit
fun removeObjects(objects: List<SimpleMapObject>): Unit
fun removeAndAddObjects(objectsToRemove: List<SimpleMapObject>, objectsToAdd: List<SimpleMapObject>): Unit
fun removeAll(): Unit
fun clusteringObjects(position: CameraPosition): List<MapObject>
@JvmStatic
fun withClustering(
map: Map,
logicalPixel: LogicalPixel,
maxZoom: Zoom,
clusterRenderer: SimpleClusterRenderer,
minZoom: Zoom = Zoom(value = 0.0f),
layerId: String? = null
): MapObjectManager
@JvmStatic
fun withGeneralization(
map: Map,
logicalPixel: LogicalPixel,
maxZoom: Zoom,
minZoom: Zoom = Zoom(value = 0.0f),
layerId: String? = null
): MapObjectManager
MapOptions
MapOptions()
@JvmStatic
fun fromAttributes(context: Context, attrs: AttributeSet): MapOptions
MapPaddingControl
MapPaddingControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
MapRotationBeginEvent
MapRotationEndEvent
MapRotationEndEvent()
MapScalingBeginEvent
MapScalingEndEvent
MapShiftBeginEvent
MapShiftEndEvent
MapTheme
MapView
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
fun setTouchEventsObserver(observer: TouchEventsObserver?): Unit
fun addObjectTappedCallback(callback: MapObjectTappedCallback): Unit
fun removeObjectTappedCallback(callback: MapObjectTappedCallback): Unit
fun addObjectLongTouchCallback(callback: MapObjectTappedCallback): Unit
fun removeLongTouchCallback(callback: MapObjectTappedCallback): Unit
fun setCopyrightMargins(
left: Int,
top: Int,
right: Int,
bottom: Int
): Unit
fun setTheme(theme: MapTheme): Unit
fun onConfigurationChanged(newConfig: Configuration): Unit
fun onSaveInstanceState(): Parcelable?
fun onVisibilityChanged(changedView: View, visibility: Int): Unit
fun takeSnapshot(copyrightPosition: Alignment = Alignment.BOTTOM_RIGHT): Future<ImageData>
fun useCustomGestureRecognitionEngine(customGestureRecognitionEngine: MapGestureRecognitionEngine): Unit
MarkedByRouteIndoorControl
MarkedByRouteIndoorControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
MarkedUpText
MarkedUpText(text: String, matchedParts: List<MarkedUpTextSpan>)
MarkedUpTextSpan
Marker
MarkerOptions
MarkerOptions(
position: GeoPointWithElevation,
icon: Image?,
iconMapDirection: MapDirection? = null,
anchor: Anchor = Anchor(x = 0.5f, y = 0.5f),
text: String? = null,
textStyle: TextStyle? = null,
iconOpacity: Opacity = Opacity(value = 1.0f),
visible: Boolean = true,
draggable: Boolean = false,
iconWidth: LogicalPixel = LogicalPixel(value = 0.0f),
userData: Any? = null,
zIndex: ZIndex = ZIndex(value = 0),
animatedAppearance: Boolean = true,
levelId: LevelId? = null,
iconAnimationMode: AnimationMode = AnimationMode.NORMAL
)
MessageControl
MessageControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Meter
MillisecondsRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<MillisecondsRouteEntry>
fun findNearBackward(point: RoutePoint): MillisecondsRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): MillisecondsRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun calculateDuration(routePoint: RoutePoint): Duration
fun calculateDuration(fromRoutePoint: RoutePoint, toRoutePoint: RoutePoint): Duration
MillisecondsRouteEntry
MillisecondsRouteEntry(point: RoutePoint, value: Duration)
Model
fun betterRouteResponse(response: BetterRouteResponse): Unit
See location_available_channel.
See location_available_channel.
Even if the value in this channel is false, the location_channel can be updated in the location_channel.
See location_channel.
Even if the value in this channel is false, the location_channel can be updated in the location_channel.
See location_channel.
In the free roam mode (StateChannel::FreeRoam), there is no route on which a user is traveling. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returned as the current route. This type of road definition is not a complete route as it lacks a finish point and maneuvers.
In the free roam mode (StateChannel::FreeRoam), there is no route on which a user is traveling. Therefore, the section of the road on which the user is currently moving is represented by the navigator as a route and returned as the current route. This type of road definition is not a complete route as it lacks a finish point and maneuvers.
ModelData
ModelMapObject
ModelMapObjectOptions
ModelMapObjectOptions(
position: GeoPointWithElevation,
data: ModelData?,
size: ModelSize,
mapDirection: MapDirection? = null,
opacity: Opacity = Opacity(value = 1.0f),
visible: Boolean = true,
userData: Any? = null,
levelId: LevelId? = null
)
ModelScale
ModelScale(value: Float = 0.0f)
ModelSize
fun match(logicalPixel: Function1, scale: Function1): T
fun toString(): String
fun hashCode(): Int
MultiTouchShiftSettings
MultiTouchShiftSettings(thresholdMm: Float)
MyLocationControl
MyLocationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
MyLocationControllerSettings
MyLocationControllerSettings(
bearingSource: BearingSource? = BearingSource.AUTO,
animationDuration: Duration = Duration.ofMilliseconds(1000),
coordinatesThreshold: Meter = Meter(value = 0.1f),
bearingThreshold: Bearing = Bearing(value = 1.0)
)
MyLocationControlModel
fun onClicked(): Unit
MyLocationMapObject
MyLocationMapObjectSource
MyLocationMapObjectSource(
context: Context,
controllerSettings: MyLocationControllerSettings = MyLocationControllerSettings(),
markerType: MyLocationMapObjectMarkerType = MyLocationMapObjectMarkerType.MODEL
)
MyLocationMapObjectSourceProvider
NativeException
NativeObject
NativeProxy
fun finalize(): Unit
NavigationControl
NavigationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
fun detachFromManager(): Unit
NavigationControl
NavigationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
NavigationFollowController
NavigationManager
NavigationManager(platformContext: Context)
fun start(): Unit
fun start(routeBuildOptions: RouteBuildOptions, trafficRoute: TrafficRoute? = null): Unit
fun startSimulation(routeBuildOptions: RouteBuildOptions, trafficRoute: TrafficRoute): Unit
NavigationView
Adding it to a MapView results in the display of a route, a geolocation marker, transport events, and camera tracking. Navigation controls can be placed inside NavigationView - inheritors of NavigationControl, in particular, the ready-to-use set of controls DefaultNavigationControls.
NavigationView(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Adding it to a MapView results in the display of a route, a geolocation marker, transport events, and camera tracking. Navigation controls can be placed inside NavigationView - inheritors of NavigationControl, in particular, the ready-to-use set of controls DefaultNavigationControls.
NavigationVoice
NewValuesNotifier
ObstacleInfo
ObstacleInfo(type: Obstacle = Obstacle.OTHER, limitation: ObstaclePassLimitation = ObstaclePassLimitation.UNLIMITED)
ObstacleInfoRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<ObstacleInfoRouteEntry>
fun findNearBackward(point: RoutePoint): ObstacleInfoRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): ObstacleInfoRouteEntry?
The complexity of the operation is log2(N), where N = size.
ObstacleInfoRouteEntry
ObstacleInfoRouteEntry(point: RoutePoint, value: ObstacleInfo)
ObstacleInfoRouteLongAttribute
fun entry(point: RoutePoint): ObstacleInfoRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<ObstacleInfoRouteLongEntry>
ObstacleInfoRouteLongEntry
ObstacleInfoRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: ObstacleInfo
)
Opacity
Opacity(value: Float = 0.0f)
OpeningHours
OpeningHours(weekOpeningHours: List<List<WeekTimeInterval>>, isOpen24x7: Boolean)
OrderedValue
OrderedValues
OrderedValues(
values: List<OrderedValue>,
currentMinIndex: Long? = null,
currentMaxIndex: Long? = null
)
OrgId
OrgInfo
Package
PackageInfo
PackageInfo(
name: String,
installed: Boolean = false,
incomplete: Boolean = true,
preinstalled: Boolean = false,
compatible: Boolean = false,
hasUpdate: Boolean = false,
error: PackageInfoError?,
updateStatus: PackageUpdateStatus = PackageUpdateStatus.NOT_AVAILABLE,
finalSizeOnDisk: Long? = null,
currentSizeOnDisk: Long = 0
)
PackageManager
- Managing auto-update and obtaining its status;
- Forced updates checking;
- Starting and stopping the installation/update of all available packages.
- Subscription to changes in information about packages;
- Subscription to changes in information about the overall installation progress of packages.
PackedMapState
@JvmStatic
fun of(
position: CameraPosition,
showTraffic: Boolean,
behaviour: CameraBehaviour
): PackedMapState
@JvmStatic
fun fromBytes(data: ByteArray): PackedMapState
@JvmStatic
fun fromMap(map: Map): PackedMapState
PackedNavigationState
@JvmStatic
fun of(
trafficRoute: TrafficRoute,
routeSearchOptions: RouteSearchOptions? = null,
finishPoint: RouteSearchPoint? = null,
routePosition: RoutePoint? = null,
state: State = State.DISABLED
): PackedNavigationState
@JvmStatic
fun fromBytes(data: ByteArray): PackedNavigationState
@JvmStatic
fun fromModel(model: Model): PackedNavigationState
PackedSearchQuery
fun toBytes(): ByteArray
fun toSearchQuery(): SearchQuery
@JvmStatic
fun fromBytes(data: ByteArray): PackedSearchQuery
@JvmStatic
fun fromSearchQuery(searchQuery: SearchQuery): PackedSearchQuery
Padding
Specified as an inward offset from the edges, in physical pixels. The paddings affect:
- the position point;
- animated map movement;
- the placement of dynamic map objects (such as route callouts).
Padding(
left: Int = 0,
top: Int = 0,
right: Int = 0,
bottom: Int = 0
)
Specified as an inward offset from the edges, in physical pixels. The paddings affect:
- the position point;
- animated map movement;
- the placement of dynamic map objects (such as route callouts).
Page
fun fetchPrevPage(): Future<Page?>
fun fetchNextPage(): Future<Page?>
ParkingCapacity
ParkingCapacity(total: String?, specialSpaces: List<SpecialSpace>)
ParkingControl
ParkingControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
ParkingControlModel
This interface is thread-safe.
ParkingControlModel(map: Map)
fun toggleParkingsVisibility(): Unit
ParkingInfo
ParkingInfo(
type: ParkingType?,
purpose: ParkingPurpose,
access: ParkingAccess,
pavingType: ParkingPavingType?,
isPaid: Boolean,
isIncentive: Boolean,
forTrucks: Boolean,
levelCount: Short?,
capacity: ParkingCapacity?
)
PedestrianBriefRouteInfo
PedestrianBriefRouteInfo(length: RouteDistance, landmark: String)
PedestrianInstructionCrossroad
PedestrianInstructionCrossroad(landmark: PedestrianInstructionCrossroadLandmark = PedestrianInstructionCrossroadLandmark.NONE, maneuvers: List<PedestrianInstructionCrossroadManeuver>)
PedestrianInstructionCrossroadManeuver
PedestrianInstructionCrossroadManeuver(direction: PedestrianInstructionCrossroadManeuverDirection = PedestrianInstructionCrossroadManeuverDirection.STRAIGHT, turnAngle: Int = 0)
PedestrianInstructionFinish
PedestrianInstructionFinish()
PedestrianInstructionIndoorEnter
PedestrianInstructionIndoorEnter(levelId: LevelId = LevelId())
PedestrianInstructionIndoorExit
PedestrianInstructionIndoorExit()
PedestrianInstructionIndoorFloorChange
PedestrianInstructionIndoorFloorChange(
type: PedestrianInstructionIndoorFloorChangeType = PedestrianInstructionIndoorFloorChangeType.UNDEFINED,
beginId: LevelId = LevelId(),
endId: LevelId = LevelId()
)
PedestrianInstructionStart
PedestrianInstructionStart()
PedestrianRouteSearchOptions
PedestrianRouteSearchOptions(
avoidStairways: Boolean = false,
avoidUnderpassesAndOverpasses: Boolean = false,
useIndoor: Boolean = true,
excludedAreas: List<ExcludedArea> = listOf()
)
PerformSearchHandler
PointGeometry
PointGeometryData
PointGeometryData(geoPointWithElevation: GeoPointWithElevation)
fun match(geoPoint: Function1, geoPointWithElevation: Function1): T
fun toString(): String
fun hashCode(): Int
Polygon
Polygon(options: PolygonOptions)
PolygonGeometry
PolygonOptions
PolygonOptions(
contours: List<List<GeoPoint>>,
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value = 0.0f),
strokeColor: Color = Color(),
visible: Boolean = true,
userData: Any? = null,
zIndex: ZIndex = ZIndex(value = 0),
levelId: LevelId? = null
)
Polyline
PolylineGeometry
PolylineOptions
PolylineOptions(
points: List<GeoPoint>,
width: LogicalPixel = LogicalPixel(value = 1.0f),
color: Color = Color(),
erasedPart: Double = 0.0,
dashedPolylineOptions: DashedPolylineOptions? = null,
gradientPolylineOptions: GradientPolylineOptions? = null,
visible: Boolean = true,
userData: Any? = null,
zIndex: ZIndex = ZIndex(value = 0),
levelId: LevelId? = null
)
Dashed gradient line options are not currently supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, then dashed_polyline_options is ignored when creating the polyline.
Dashed gradient line is currently not supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, dashed_polyline_options is ignored when creating the polyline.
Projection
Uses the Mercator spherical projection (EPSG:3857), looped in longitude. Displayed data is limited in latitude from -85.06° to 85.06°.
fun screenToMap(point: ScreenPoint): GeoPoint?
The function returns an empty value if the specified screen point is outside the map projection.
fun mapToScreen(point: GeoPointWithElevation): ScreenPoint?
The function returns an empty value:
fun screenToMapClipped(point: ScreenPoint): GeoPoint
fun distanceOnMap(fromPoint: ScreenPoint, toPoint: ScreenPoint): Meter?
Returns an empty value if one or both points on the screen are outside the map projection.
fun distanceOnScreen(fromGeoPoint: GeoPoint, toGeoPoint: GeoPoint): LogicalPixel?
Returns an empty value if one or both points on the map are:
- invalid values (`latitude` is outside the range `-90; 90` or `longitude` is outside the range `-180; 180`)
- above the projection plane of the map on the screen
- far beyond the screen, and the type overflow occurs
PublicBriefRouteInfo
PublicBriefRouteInfo(publicTransportInfos: List<PublicBriefRouteTransportInfo>)
PublicBriefRouteTransportInfo
PublicBriefRouteTransportInfo(
type: PublicTransportType = PublicTransportType.BUS,
names: List<String>,
color: Int?,
routeLogo: String
)
PublicRoutePart
PublicRoutePart(transports: List<PublicTransportInfo>, intermediateStops: List<PublicTransportStop>)
If the list is empty, this section of the route is suggested to be overcome by personal or rented transport or on foot.
Stops are sorted in the order they appear on the route.
You do not need to get off at these stops.
Start and end stops are not included in this list.
PublicTransportCard
PublicTransportCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
PublicTransportCardModel
PublicTransportCardModel(
route: TrafficRoute,
context: Context,
startName: String? = null,
finishName: String? = null
)
PublicTransportInfo
PublicTransportInfo(
type: PublicTransportType = PublicTransportType.BUS,
names: List<String>,
suggestedCarNumbers: List<Int>,
boardingSuggest: String,
color: Int?,
routeLogo: String
)
If the vehicle consists of one wagon or you can board any wagon, this list is empty.
PublicTransportRouteSearchOptions
PublicTransportRouteSearchOptions(
startTime: TimePoint? = null,
useSchedule: Boolean = false,
transportTypes: EnumSet<PublicTransportType> = EnumSet.noneOf(PublicTransportType::class.java)
)
PublicTransportStop
PublicTransportTransfer
PublicTransportTransfer(
startPointName: String,
finishPointName: String,
routeParts: List<PublicRoutePart>
)
All route segments from this list follow the same geometry line.
If the list is empty, then this route segment it is suggested to be passed by personal or rented transport or on foot.
PublicTransportTransferRouteLongAttribute
fun entry(point: RoutePoint): PublicTransportTransferRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<PublicTransportTransferRouteLongEntry>
PublicTransportTransferRouteLongEntry
PublicTransportTransferRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: PublicTransportTransfer
)
PurposeCode
Range
fun match(borders: Function1, orderedValues: Function1): T
fun toString(): String
fun hashCode(): Int
RangeFilter
RangeWidget
RasterTileSource
RasterTileSource(
context: Context,
sublayerName: String,
sourceTemplate: RasterUrlTemplate
)
RasterUrlTemplate
RasterUrlTemplate(defaultSource: DefaultRasterUrlTemplate)
fun match(defaultSource: Function1, wmsSource: Function1): T
fun toString(): String
fun hashCode(): Int
RemainingRouteInfoControl
RemainingRouteInfoControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun detachFromManager(): Unit
Remover
fun remove(): Future<ActionResult>
Action is available for content authored by the user.
RenderedObject
RenderedObjectInfo
RenderedObjectInfo(
closestViewportPoint: ScreenPoint,
closestMapPoint: GeoPointWithElevation,
item: RenderedObject
)
Reviews
RoadCameraInfo
RoadCameraInfo(purposes: EnumSet<CameraPurpose>, speedLimit: Short?)
May be missing if there is no information, or if the camera was added by the user.
Currently available for speed and average speed cameras only.
May not be available for speed cameras if the value is unknown.
RoadEvent
Available for events of the "Camera" type only.
Currently available for road blockings only, and may not even exist.
Currently, can be set for custom events only.
RoadEventAction
fun set(): Future<ActionResult>
There are opposite actions, such as "like" and "dislike". If both actions are available for an event, the method call resets the application of the opposite - it is impossible to put "like" and "dislike" at the same time.
fun reset(): Future<ActionResult>
There are actions that are opposite of each other, for example "like" and "dislike". If both are available for an event action, calling the method does not cause the opposite action to be applied.
RoadEventActionButton
RoadEventActionButton(model: RoadEventActionButtonModel, context: Context)
RoadEventActionInfo
RoadEventActionInfo(state: RoadEventActionState, count: Int?)
RoadEventCard
RoadEventCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
RoadEventCardModel
RoadEventCardModel(
event: RoadEvent,
photoSize: StatefulChannel<ScreenSize>,
context: Context
)
fun close(): Unit
RoadEventManager
RoadEventManager(context: Context)
fun createAccident(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
fun createCamera(location: GeoPoint, description: String): Future<AddEventResult>
fun createRoadRestriction(location: GeoPoint, description: String): Future<AddEventResult>
fun createComment(location: GeoPoint, description: String): Future<AddEventResult>
fun createOther(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
fun createRoadWorks(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
RoadEventMapObject
RoadEventMapObjectRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadEventMapObjectRouteEntry>
fun findNearBackward(point: RoutePoint): RoadEventMapObjectRouteEntry?
Operation complexity: log2(N), where N = size.
fun findNearForward(point: RoutePoint): RoadEventMapObjectRouteEntry?
Operation complexity: log2(N), where N = size.
RoadEventMapObjectRouteEntry
RoadEventMapObjectRouteEntry(point: RoutePoint, value: RoadEventMapObject)
RoadEventPhoto
fun previewUrl(desiredSize: ScreenSize): String
fun report(): Future<ActionResult>
Complaining your photo will not be processed.
RoadEventRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadEventRouteEntry>
fun findNearBackward(point: RoutePoint): RoadEventRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): RoadEventRouteEntry?
The complexity of the operation is log2(N), where N = size.
RoadEventRouteEntry
RoadEventRouteEntry(point: RoutePoint, value: BriefRoadEvent)
RoadEventSource
RoadEventSource(context: Context)
fun setHighlighted(directoryObjectIds: List<DgisObjectId>, highlighted: Boolean): Unit
RoadMacroGraph
RoadRuleRouteLongAttribute
fun entry(point: RoutePoint): RoadRuleRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadRuleRouteLongEntry>
RoadRuleRouteLongEntry
RoadRuleRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RoadRule
)
RoadSubtypeRouteLongAttribute
fun entry(point: RoutePoint): RoadSubtypeRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadSubtypeRouteLongEntry>
RoadSubtypeRouteLongEntry
RoadSubtypeRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RoadSubtype
)
RoadSurfaceRouteLongAttribute
fun entry(point: RoutePoint): RoadSurfaceRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadSurfaceRouteLongEntry>
RoadSurfaceRouteLongEntry
RoadSurfaceRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RoadSurface
)
RoadTypeRouteLongAttribute
fun entry(point: RoutePoint): RoadTypeRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<RoadTypeRouteLongEntry>
RoadTypeRouteLongEntry
RoadTypeRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RoadType
)
RotateMapToNorthEvent
RotationSettings
Route
It is not guaranteed that the RoutePoint of geometry points will match the RoutePoint of other attribute elements, so to calculate the geographic coordinate of an attribute element, you do not need to search the geometry for an element RoutePoint of which matches the RoutePoint attribute element, calculate_geo_point should be used instead.
0 - speed limit is unknown.
RouteBuildOptions
RouteBuildOptions(finishPoint: RouteSearchPoint, routeSearchOptions: RouteSearchOptions)
RouteCamera
RouteCamera(
purposes: EnumSet<RouteCameraPurpose>,
rangeAgainst: RouteDistance,
rangeAlong: RouteDistance,
direction: RouteCameraDirection = RouteCameraDirection.AGAINST,
maxSpeedLimit: Float?
)
RouteDistance
fun absoluteValue(): RouteDistance
operator fun plus(other: RouteDistance): RouteDistance
operator fun minus(other: RouteDistance): RouteDistance
RouteEditor
All methods of this interface are called from a single thread.
fun setRouteParams(routeParams: RouteEditorRouteParams): Unit
fun setActiveRouteIndex(index: RouteIndex): Unit
RouteEditorRouteParams
RouteEditorRouteParams(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint,
routeSearchOptions: RouteSearchOptions,
intermediatePoints: List<RouteSearchPoint> = listOf()
)
RouteEditorRoutesInfo
RouteEditorRoutesInfo(routes: List<TrafficRoute>, routeParams: RouteEditorRouteParams)
RouteEditorSource
RouteEditorSource(
context: Context,
routeEditor: RouteEditor,
activeDisplayFlags: EnumSet?<RouteMapObjectDisplayFlag> = null,
inactiveDisplayFlags: EnumSet?<RouteMapObjectDisplayFlag> = null,
activeCalloutLabelFlags: EnumSet?<RouteMapObjectCalloutLabelFlag> = null,
inactiveCalloutLabelFlags: EnumSet?<RouteMapObjectCalloutLabelFlag> = null,
calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.ABSOLUTE_VALUES,
activePermanentDisplayFlags: EnumSet?<RouteMapObjectPermanentDisplayFlag> = null,
inactivePermanentDisplayFlags: EnumSet?<RouteMapObjectPermanentDisplayFlag> = null
)
fun setRoutesVisible(visible: Boolean): Unit
fun setShowOnlyActiveRoute(showOnlyActiveRoute: Boolean): Unit
fun setPassedDistanceVisualization(passedDistanceVisualization: RouteMapObjectPassedDistanceVisualization): Unit
RouteExitSign
RouteExitSign(
type: RouteExitSignType = RouteExitSignType.UNDEFINED,
roadNameTable: RouteExitSignTable,
roadNumberTable: RouteExitSignTable?
)
RouteExitSignRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<RouteExitSignRouteEntry>
fun findNearBackward(point: RoutePoint): RouteExitSignRouteEntry?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): RouteExitSignRouteEntry?
The complexity of the operation is log2(N), where N = size.
RouteExitSignRouteEntry
RouteExitSignRouteEntry(point: RoutePoint, value: RouteExitSign)
RouteExitSignTable
RouteExitSignTable(backgroundColor: RouteExitSignTableColor = RouteExitSignTableColor.UNDEFINED, text: String)
RouteIndex
RouteInfo
RouteInfo(
route: Route,
routeBuildOptions: RouteBuildOptions?,
external: Boolean = false
)
RouteInfoCalloutMapObject
RouteInstruction
RouteInstruction(
roadName: String,
range: RouteDistance,
extraInstructionInfo: ExtraInstructionInfo
)
RouteLane
RouteLane(
routeManeuver: RouteLaneManeuver = RouteLaneManeuver.UNDEFINED,
maneuvers: EnumSet<RouteLaneManeuver>,
speedLimit: Float = 0.0f,
prohibited: Boolean = false,
onlyPublicTransport: Boolean = false
)
RouteLaneSign
RouteLaneSign(
lanes: List<RouteLane>,
signStartPoint: RoutePoint?,
signPoint: RoutePoint?,
signEndPoint: RoutePoint?
)
If the number of lanes is unknown, or there is one lane on the road in the direction of the route, this array is empty.
RouteLevelInfo
RouteLevelInfoRouteLongAttribute
fun entry(point: RoutePoint): RouteLevelInfoRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<RouteLevelInfoRouteLongEntry>
RouteLevelInfoRouteLongEntry
RouteLevelInfoRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: RouteLevelInfo
)
RouteMapObject
RouteMapObject(
trafficRoute: TrafficRoute,
isActive: Boolean,
index: RouteIndex,
displayFlags: EnumSet?<RouteMapObjectDisplayFlag> = null,
calloutLabelFlags: EnumSet?<RouteMapObjectCalloutLabelFlag> = null,
calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.ABSOLUTE_VALUES,
permanentDisplayFlags: EnumSet?<RouteMapObjectPermanentDisplayFlag> = null
)
RouteMapObjectSource
RouteMapObjectSource(context: Context, routeVisualizationType: RouteVisualizationType = RouteVisualizationType.NORMAL)
fun addObject(item: RouteMapObject): Unit
fun removeObject(item: RouteMapObject): Unit
fun replaceObject(oldObject: RouteMapObject, newObject: RouteMapObject): Unit
If the old route is not found in the source, then the call is equivalent to calling add_object.
fun replaceAllObjects(objects: List<RouteMapObject>): Unit
RouteMapObjectsProvider
RouteMapSettings
RouteOverviewControl
RouteOverviewControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
RoutePoint
RoutePoint(distance: RouteDistance)
operator fun plus(distance: RouteDistance): RoutePoint
operator fun minus(distance: RouteDistance): RoutePoint
RoutePointMapObject
RouteRebuilder
RouteSearchOptions
RouteSearchOptions(pedestrian: PedestrianRouteSearchOptions)
RouteSearchOptions(publicTransport: PublicTransportRouteSearchOptions)
fun match(
bicycle: Function1,
car: Function1,
pedestrian: Function1,
publicTransport: Function1,
scooter: Function1,
taxi: Function1,
truck: Function1
): T
fun toString(): String
fun hashCode(): Int
RouteSearchPoint
RouteSearchPoint(
coordinates: GeoPoint,
course: Bearing? = null,
objectId: DgisObjectId = DgisObjectId(objectId = 0, entranceId = 0),
levelId: LevelId? = null
)
RouteSourceSettings
fun getLargeScaleMergeDistanceMeters(transportType: TransportType): Float
fun setLargeScaleMergeDistanceMeters(distance: Float, transportType: TransportType): Unit
fun getSmallScaleMergeDistanceMeters(transportType: TransportType): Float
fun setSmallScaleMergeDistanceMeters(distance: Float, transportType: TransportType): Unit
fun getLargeScaleCrossroadsOffsetMeters(transportType: TransportType): Float
fun setLargeScaleCrossroadsOffsetMeters(offset: Float, transportType: TransportType): Unit
fun getSmallScaleCrossroadsOffsetMeters(transportType: TransportType): Float
fun setSmallScaleCrossroadsOffsetMeters(offset: Float, transportType: TransportType): Unit
RubricId
ScaleMapEvent
ScaleMapEvent(zoomDelta: Float, scalingCenter: ScreenPoint? = null)
ScalingSettings
Schedule
Schedule(
startTime: TimePoint?,
finishTime: TimePoint?,
weekTimeIntervals: List<WeekTimeInterval>
)
Intervals are ordered by time.
The first interval can start from last week.
ScooterBriefRouteInfo
ScooterBriefRouteInfo(length: RouteDistance, landmark: String)
ScooterInstructionCrossroad
ScooterInstructionCrossroad(landmark: ScooterInstructionCrossroadLandmark = ScooterInstructionCrossroadLandmark.NONE, maneuvers: List<ScooterInstructionCrossroadManeuver>)
ScooterInstructionCrossroadManeuver
ScooterInstructionCrossroadManeuver(direction: ScooterInstructionCrossroadManeuverDirection = ScooterInstructionCrossroadManeuverDirection.STRAIGHT, turnAngle: Int = 0)
ScooterInstructionFinish
ScooterInstructionFinish()
ScooterInstructionStart
ScooterInstructionStart()
ScooterRouteSearchOptions
ScooterRouteSearchOptions(
avoidCarRoads: Boolean = true,
avoidStairways: Boolean = true,
avoidUnderpassesAndOverpasses: Boolean = true,
excludedAreas: List<ExcludedArea> = listOf()
)
ScreenDistance
Cannot be negative.
ScreenDistance(value: Float = 0.0f)
Cannot be negative.
ScreenPoint
Directions of axes: x - rightwards, y - downwards. (0.0, 0.0) - the upper-left corner of the upper-left pixel. The integer part of the coordinate is the pixel number, the fractional part is the relative position within the pixel.
ScreenPoint(x: Float = 0.0f, y: Float = 0.0f)
Directions of axes: x - rightwards, y - downwards. (0.0, 0.0) - the upper-left corner of the upper-left pixel. The integer part of the coordinate is the pixel number, the fractional part is the relative position within the pixel.
ScreenShift
Positive shift direction: dx - to the right, dy - down.
ScreenSize
SearchHistory
fun items(page: SearchHistoryPage): Future<SearchHistoryResult>
fun addItem(item: SearchHistoryItem): Unit
fun addItems(items: List<SearchHistoryItem>): Unit
fun removeItem(item: SearchHistoryItem): Unit
fun removeItems(items: List<SearchHistoryItem>): Unit
SearchHistoryItem
fun match(directoryObject: Function1, searchQuery: Function1): T
fun toString(): String
fun hashCode(): Int
SearchHistoryPage
SearchHistoryPage(
limit: Long = 100,
offset: Long = 0,
filter: EnumSet<SearchHistoryFilter> = EnumSet.noneOf(SearchHistoryFilter::class.java)
)
SearchHistoryResult
SearchLayout
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
fun addSearchViewCallback(callback: SearchViewCallback): Unit
fun configureSearchEngine(block: Function1): Unit
fun hideResults(): Unit
fun setupSpeechRecognition(speechRecognizer: SpeechRecognizer?): Unit
Important: to enable voice search, call the method explicitly. Otherwise, the voice input is disabled.
Usage example:
// Enable voice inputsearchLayout.setupSpeechRecognition( DefaultSpeechRecognizer(activity, "Speak") )
// Disable voice input
searchLayout.setupSpeechRecognition(null)
SearchManager
fun suggest(query: SuggestQuery): Future<SuggestResult>
fun search(query: SearchQuery): Future<SearchResult>
fun searchById(id: String): Future<DirectoryObject?>
fun searchByDirectoryObjectId(objectId: DgisObjectId): Future<DirectoryObject?>
fun searchByIdWithLocale(id: String, locale: Locale?): Future<DirectoryObject?>
fun searchByDirectoryObjectIdWithLocale(objectId: DgisObjectId, locale: Locale?): Future<DirectoryObject?>
@JvmStatic
fun createOnlineManager(context: Context): SearchManager
@JvmStatic
fun createOfflineManager(context: Context): SearchManager
@JvmStatic
fun createSmartManager(context: Context): SearchManager
SearchOptions
SearchOptions(
searchType: SearchType = SearchType.defaultSearchType,
pageSize: Int = defaultPageSize,
sortingType: SortingType = SortingType.BY_RELEVANCE,
suggestorType: SuggestorType = SuggestorType.OBJECT
)
SearchQuery
SearchQueryBuilder
This condition is not working yet.
fun setSpatialRestriction(spatialRestriction: List?<GeoPoint>): SearchQueryBuilder
No limit by default.
fun setAreaOfInterest(rect: GeoRect?): SearchQueryBuilder
fun setAllowedResultTypes(allowedResultTypes: List<ObjectType>): SearchQueryBuilder
By default, all types except Route are allowed.
fun setPageSize(pageSize: Int): SearchQueryBuilder
. The default value is 10.
fun setDirectoryFilter(filter: DirectoryFilter): SearchQueryBuilder
fun setSortingType(sortingType: SortingType): SearchQueryBuilder
fun setGeoPoint(geoPoint: GeoPoint): SearchQueryBuilder
fun setRadius(radius: Meter): SearchQueryBuilder
fun setLocale(locale: Locale?): SearchQueryBuilder
@JvmStatic
fun fromQueryText(queryText: String): SearchQueryBuilder
@JvmStatic
fun fromRubricIds(rubricIds: List<RubricId>): SearchQueryBuilder
@JvmStatic
fun fromQueryTextAndRubricIds(queryText: String, rubricIds: List<RubricId>): SearchQueryBuilder
@JvmStatic
fun fromQuery(query: SearchQuery): SearchQueryBuilder
The original #query remains unchanged.
@JvmStatic
fun fromOrgId(orgId: OrgId): SearchQueryBuilder
@JvmStatic
fun fromBuildingId(buildingId: BuildingId): SearchQueryBuilder
@JvmStatic
fun fromGeoPoint(geoPoint: GeoPoint): SearchQueryBuilder
SearchQueryWithInfo
SearchQueryWithInfo(
searchQuery: SearchQuery,
title: String,
subtitle: String
)
SearchResult
fun markerTitles(objectIds: List<DgisObjectId>): List<Future<List<UIMarkerInfo>>>
These are the so-called “quick filters” - filters that are most interesting to the user. There are no more than 5.
SegmentGeoPoint
SegmentGeoPoint(point: GeoPoint, bearing: Bearing)
SettlementRouteLongAttribute
fun entry(point: RoutePoint): SettlementRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<SettlementRouteLongEntry>
SettlementRouteLongEntry
SettlementRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: Settlement
)
ShowRouteControl
ShowRouteControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun showRoute(geometry: Geometry, styleZoomToTiltRelation: StyleZoomToTiltRelation?): Unit
fun cancelRouteOverview(): Unit
SimpleCheckableItem
SimpleClusterObject
SimpleClusterOptions
SimpleClusterOptions(
icon: Image?,
iconMapDirection: MapDirection? = null,
anchor: Anchor = Anchor(x = 0.5f, y = 0.5f),
text: String? = null,
textStyle: TextStyle? = null,
iconOpacity: Opacity = Opacity(value = 1.0f),
iconWidth: LogicalPixel = LogicalPixel(value = 0.0f),
userData: Any? = null,
zIndex: ZIndex = ZIndex(value = 0),
animatedAppearance: Boolean = true,
iconAnimationMode: AnimationMode = AnimationMode.NORMAL
)
SimpleMapObject
SimulationAutoWithOverSpeed
SimulationAutoWithOverSpeed(overSpeed: Double = 0.0)
SimulationConstantSpeed
SimulationConstantSpeed(speed: Double = 0.0)
SimulationSettings
SimulationSpeedMode
SimulationSpeedMode(overSpeed: SimulationAutoWithOverSpeed)
fun match(speed: Function1, overSpeed: Function1): T
fun toString(): String
fun hashCode(): Int
SnapToMapLayout
SnapToMapLayout(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
fun onLayout(
changed: Boolean,
left: Int,
top: Int,
right: Int,
bottom: Int
): Unit
fun generateLayoutParams(attrs: AttributeSet?): LayoutParams?
fun generateLayoutParams(p: LayoutParams?): LayoutParams?
SortingFilter
SoundNotificationSettings
Source
This can be a source of traffic data, routes, markers, arbitrary geometric or other map objects. Any map object can have its own properties. The object properties affect which rules and display parameters, described in map styles, are applied to it. Style is a set of parameters and rules for displaying map objects, obtained through the style editor and used for rendering the map.
The object properties can be set:
- directly for the object;
- for the data source (all objects added to the source obtain these properties);
- for the map (all objects added to the map obtain these properties);
- for the style (all objects to which the style is applied obtain these properties). The list is presented in descending order of priority for applying properties. Even if no data sources are added to the map, the style and map properties still affect the map, since there are special displayable objects such as background.
SpecialSpace
SpecialSpace(
type: SpecialSpaceType,
name: String,
count: String?
)
SpeedInfoControl
SpeedInfoControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
SpeedRange
SpeedRangeToStyleZoom
SpeedRangeToStyleZoom(
range: SpeedRange,
minDistanceToManeuver: RouteDistance,
maxDistanceToManeuver: RouteDistance,
styleZoom: StyleZoom
)
StringRouteLongAttribute
fun entry(point: RoutePoint): StringRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<StringRouteLongEntry>
StringRouteLongEntry
StringRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: String
)
Style
StyleBuilder
fun setStyleAttribute(name: String, value: AttributeValue): StyleBuilder
StyleLayerId
StyleZoom
It is set in the style editor and differs from the usual zoom level in that for one StyleZoom the map scale is the same regardless of latitude. However, with Zoom < 9 or with latitude > 60 degrees StyleZoom == Zoom and map scale is different at different latitudes.
StyleZoom cannot be negative.
StyleZoom(value: Float = 0.0f)
It is set in the style editor and differs from the usual zoom level in that for one StyleZoom the map scale is the same regardless of latitude. However, with Zoom < 9 or with latitude > 60 degrees StyleZoom == Zoom and map scale is different at different latitudes.
StyleZoom cannot be negative.
StyleZoomFollowController
StyleZoomFollowController(animationDuration: Duration = Duration.ofMilliseconds(300))
fun setStyleZoom(styleZoom: StyleZoom): Unit
Suggest
SuggestHandler
SuggestHandler(performSearchHandler: PerformSearchHandler?)
SuggestHandler(incompleteTextHandler: IncompleteTextHandler?)
fun match(
objectHandler: Function1,
performSearchHandler: Function1,
incompleteTextHandler: Function1
): T
fun toString(): String
fun hashCode(): Int
SuggestObjectHandler
SuggestQuery
SuggestQueryBuilder
fun setSpatialRestriction(spatialRestriction: List?<GeoPoint>): SuggestQueryBuilder
No limit by default
fun setAreaOfInterest(rect: GeoRect?): SuggestQueryBuilder
fun setAllowedResultTypes(allowedResultTypes: List<SuggestedType>): SuggestQueryBuilder
By default, all types except Route are allowed.
fun setSuggestorType(suggestorType: SuggestorType): SuggestQueryBuilder
The default value is #SuggestorType::General.
fun setLimit(limit: Int): SuggestQueryBuilder
The default value is 10.
fun setLocale(locale: Locale?): SuggestQueryBuilder
@JvmStatic
fun fromQueryText(queryText: String): SuggestQueryBuilder
@JvmStatic
fun fromQuery(query: SuggestQuery): SuggestQueryBuilder
The original #query remains unchanged.
SuggestResult
The set is empty if no matching suggestions are found.
SystemCertificate
SystemCertificate()
SystemMemoryManager
fun reduceMemoryUsage(): Unit
TaxiRouteSearchOptions
TaxiRouteSearchOptions(car: CarRouteSearchOptions)
TerritoriesAlongRouteProvider
fun getTerritories(route: Route): Future<List<Territory>>
Territory
TerritoryManager
fun findByPoint(geoPoint: GeoPoint): List<Territory>
- Point coordinates are outside the projection.
- An internal error occurred during the processing of a territories list.
fun findByRect(rect: GeoRect): List<Territory>
TextStyle
TextStyle(
fontSize: LogicalPixel = LogicalPixel(value = 8.0f),
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value = 0.34999999f),
strokeColor: Color = Color(argb = 4294967295.toInt()),
textHorizontalAlignment: TextHorizontalAlignment = TextHorizontalAlignment.AUTO,
textPlacement: TextPlacement = TextPlacement.BOTTOM_CENTER,
textOffset: LogicalPixel = LogicalPixel(value = 0.0f),
fontName: String? = null
)
Tilt
Values in the range of 0 to 60 degrees are allowed. In cases where the camera position point is closer to the bottom of the screen, the value may be additionally reduced.
Tilt(value: Float = 0.0f)
Values in the range of 0 to 60 degrees are allowed. In cases where the camera position point is closer to the bottom of the screen, the value may be additionally reduced.
TiltFollowController
TiltFollowController(styleZoomToTilt: StyleZoomToTiltRelation)
TiltSettings
TimePoint
TimePoint(timeFromEpoch: Duration)
fun toString(): String
@JvmStatic
fun ofEpochMilliseconds(milliseconds: Long): TimePoint
@JvmStatic
fun now(): TimePoint
TradeLicense
Traffic
TrafficAndParkingControl
TrafficAndParkingControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
TrafficCollector
This interface is thread-safe.
TrafficCollector(context: Context)
TrafficControl
TrafficControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
TrafficControl
TrafficControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
TrafficControlModel
This interface is thread-safe.
TrafficControlModel(map: Map)
fun onClicked(): Unit
TrafficControlState
TrafficControlState(status: TrafficControlStatus = TrafficControlStatus.HIDDEN, score: Int?)
TrafficLineColors
TrafficLineColors(
emptyTrafficLineColor: Int,
greenTrafficLineColor: Int,
undefinedSpeedColor: Int,
yellowSpeedColor: Int,
redSpeedColor: Int,
deepRedSpeedColor: Int
)
TrafficLineControl
TrafficLineControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
TrafficLinePointObject
TrafficLinePointObjectView
TrafficLinePointObjectView(
context: Context,
pointObject: TrafficLinePointObject,
position: PointObjectsPosition
)
fun removeWithAnimation(): Unit
TrafficRoute
TrafficRouter
fun findRoute(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint,
routeSearchOptions: RouteSearchOptions,
intermediatePoints: List<RouteSearchPoint> = listOf()
): Future<List<TrafficRoute>>
An empty route set is a valid result, meaning that a route matching the specified search criteria cannot be found.
When searching for routes for freight transport, it is possible to return routes passing through the access zones for which passes were not provided, if it was not possible to route only through the access zones for which the passes were provided. To check if the list of passes is sufficient to pass a route, use the route_matches_truck_pass_zone_passes function.
fun requestRoute(request: ByteArray, serverEndpoint: String): Future<List<TrafficRoute>>
Not suitable for finding public transport routes.
If it is not possible to find truck routes, it does not try to find car routes without taking into account truck restrictions.
fun findBriefRouteInfos(searchPoints: List<BriefRouteInfoSearchPoints>, routeSearchOptions: RouteSearchOptions): Future<List<BriefRouteInfo?>>
If the basic information for any of the pairs of points is not found, the element at the corresponding index in the returned result is null.
TrafficScore
TrafficScore(state: TrafficScoreState = TrafficScoreState.PENDING, value: Int?)
TrafficScoreProvider
This interface is thread-safe.
TrafficSource
TrafficSpeedColorRouteLongAttribute
fun entry(point: RoutePoint): TrafficSpeedColorRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<TrafficSpeedColorRouteLongEntry>
TrafficSpeedColorRouteLongEntry
TrafficSpeedColorRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: TrafficSpeedColor
)
TransportTypeRouteLongAttribute
fun entry(point: RoutePoint): TransportTypeRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<TransportTypeRouteLongEntry>
TransportTypeRouteLongEntry
TransportTypeRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: TransportType
)
TruckPassZoneId
TruckPassZoneId(value: Int = 0)
TruckPassZoneIdRouteLongAttribute
fun entry(point: RoutePoint): TruckPassZoneIdRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<TruckPassZoneIdRouteLongEntry>
TruckPassZoneIdRouteLongEntry
TruckPassZoneIdRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: TruckPassZoneId
)
TruckPassZonePass
TruckPassZonePass(
id: TruckPassZonePassId,
name: String,
passZoneIds: Set<TruckPassZoneId>
)
TruckPassZonePassId
TruckPassZonePassId(value: Int = 0)
TruckRouteSearchOptions
TruckRouteSearchOptions(
car: CarRouteSearchOptions,
truckLength: Int? = null,
truckHeight: Int? = null,
truckWidth: Int? = null,
actualMass: Int? = null,
maxPermittedMass: Int? = null,
axleLoad: Int? = null,
dangerousCargo: Boolean = false,
explosiveCargo: Boolean = false,
passIds: Set<TruckPassZonePassId> = setOf(),
fallbackOnCar: Boolean = false
)
UIMarkerInfo
UIMarkerInfo(objectId: DgisObjectId, label: String?)
UIntRouteLongAttribute
fun entry(point: RoutePoint): UIntRouteLongEntry?
fun entries(begin: RoutePoint, end: RoutePoint): List<UIntRouteLongEntry>
UIntRouteLongEntry
UIntRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: Int
)
VendorConfig
VendorConfig()
fun match(
none: Function0<T>,
fromAsset: Function1,
fromFile: Function1,
fromString: Function1
): T
fun toString(): String
fun hashCode(): Int
VendorConfigFromAsset
VendorConfigFromAsset(path: String)
VendorConfigFromFile
VendorConfigFromFile(path: String)
VendorConfigFromString
VendorConfigFromString(contents: String)
Voice
fun playWelcome(): Future<Unit>
VoiceManager
VoiceSelector
VoidRouteAttribute
fun entries(begin: RoutePoint, end: RoutePoint): List<RoutePoint>
fun findNearBackward(point: RoutePoint): RoutePoint?
The complexity of the operation is log2(N), where N = size.
fun findNearForward(point: RoutePoint): RoutePoint?
The complexity of the operation is log2(N), where N = size.
WeekTime
WeekTimeInterval
Widget
Widgets are returned as a result of a search and are designed to filter or sort the result by certain parameters. Widgets are generated dynamically for each search result and may not be available for some requests. The widget represents one specific filter or a group of them, united by a common feature. For example, the type of cuisine in search results for the "Eat" query.
WmsRasterUrlTemplate
WorkStatus
WorkTimeFilter
fun match(workTime: Function1, isOpenNow: Function1): T
fun toString(): String
fun hashCode(): Int
ZIndex
ZIndex(value: Int = 0)
Zoom
Zoom = 0 is the scale at which the entire world is inscribed in a square of 256x256 logical pixels (see LogicalPixel). Zoom = 1 is the scale at which the entire world is inscribed in a square of 512x512 logical pixels. The scale is proportional value of 2^Zoom.
Zoom cannot be negative.
Zoom(value: Float = 0.0f)
Zoom = 0 is the scale at which the entire world is inscribed in a square of 256x256 logical pixels (see LogicalPixel). Zoom = 1 is the scale at which the entire world is inscribed in a square of 512x512 logical pixels. The scale is proportional value of 2^Zoom.
Zoom cannot be negative.
ZoomControl
ZoomControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
ZoomControl
ZoomControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
ZoomControlModel
fun isEnabled(button: ZoomControlButton): StatefulChannel<Boolean>
fun setPressed(button: ZoomControlButton, value: Boolean): Unit
ZoomFollowSettings
During navigation, the scale depends on the speed of movement, the presence of maneuvers ahead and behind on the route, and the type of road.
If there are no maneuvers ahead and behind, or on roads with low value (minor streets in settlements, highways, intercity or federal highways), the scale value is selected based on the values SpeedRangeToStyleZoom, which are stored in the speed_range_to_style_zoom_sequence. The sequence speed_range_to_style_zoom_sequence must contain speed intervals sorted in ascending order of min_speed values, and the conditions below must be met: max_speedi > min_speedi+1 max_speedi < = min_speedi+2 max_speedi < max_speedi+1. That is, speed intervals should touch or even intersect, but the speed value should not fall into more than two intervals. However, the minimum speed value is not considered to fall within the interval, i.e. the same speed value may be the maximum speed for one interval, the minimum speed for another, and be inside the interval for a third interval. An exception is the first speed interval, which must contain min_speed == 0.
The map scale is selected from the speed_range_to_style_zoom_sequence using the algorithm:
When approaching a maneuver at the current speed, the scale will increase smoothly. The duration of the increase depends on the speed and distance to the maneuver. When the speed is increased, the animation time increases, and when the speed is decreased, it decreases. The increase in zoom level is completed at some distance from the maneuver.
After passing the maneuver, the zoom level smoothly decreases.