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?,
postCode: String?,
buildingCode: 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
AddressNumber(number: String)
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
AlternativeRoutesProviderSettings
Anchor
ApartmentRange
Attribute
Attributes
Only map objects have properties, but you can set default properties for the entire map, for the style and for 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
AuthorInfo
AuthorInfo(type: AuthorType, name: String)
- Username if the author is an authorized user and has agreed to have their name displayed.
- An empty string for an anonymous user or a user who has refused to display their name.
BaseCamera
Sets the parameters for projecting the map onto the screen.
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
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
)
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
BuildingLevels
BuildingLevels(defaultLevelId: LevelId, levels: List<LevelInfo>)
CalloutMapPosition
CalloutMapPosition(
mapId: MapId,
calloutPosition: GeoPoint?,
routePoint: RoutePoint?
)
Camera
fun move(moveController: CameraMoveController): Future<CameraAnimatedMoveResult>
Resets the current map tracking mode and interrupts gesture processing.
fun move(
position: CameraPosition,
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 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?, transitionType: TransitionType = TransitionType.SMOOTH)
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)
CameraNotifier
CameraNotifier(model: Model)
CameraPosition
0 - nadir (look vertically down), the maximum value is 60 degrees.
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 - upper left corner of the screen area, 1,1 - lower right
.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 - upper left corner of the screen area, 1,1 - lower right.
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)
CameraZoomRestrictions
CancelEvent
Called, for example, 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, some changes in 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
Circle
CircleOptions
CircleOptions(
position: GeoPoint,
radius: Meter,
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
)
ClusterObject
ClusterOptions
Color
CompassControl
CompassControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0,
layout: Int = R.layout.dgis_compass_control
)
CompassControl
CompassControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
CompassControlModel
fun onClicked(): Unit
ComplexGeometry
An arbitrary level of nesting of compound geometries in a set is supported.
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
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))
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 onConfigurationChanged(newConfig: Configuration): Unit
fun onAttachedToWindow(): Unit
DeviceDensity
On Android, it corresponds to resources.displayMetrics.density On iOS, it corresponds to nativeScale.
Must be positive.
DeviceDensity(value: Float = 0.0f)
On Android, it corresponds to resources.displayMetrics.density On iOS, it corresponds to nativeScale.
Must be positive.
DevicePpi
Must be positive.
DevicePpi(value: Float = 0.0f)
Must be positive.
DGis
@JvmStatic
@JvmOverloads
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
): 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.ONLINE): 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 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
DynamicFilter
fun match(flagFilter: Function1, rangeFilter: 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
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
fun requestValues(values: EnumSet<FollowValue>): Unit
fun setClock(clock: FollowControllerClock?): Unit
fun setThresholds(shiftMeters: Double, rotation: Double): Unit
fun updateValues(): Unit
FollowControllerClock
FollowPosition
FollowPosition(
bearing: FollowBearing = FollowBearing.OFF,
tilt: FollowTilt = FollowTilt.OFF,
styleZoom: FollowStyleZoom = FollowStyleZoom.OFF
)
FormattedAddress
Fps
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
fun intersects(geometry: Geometry): Boolean
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 styles set in the map are applicable to this object. For more information about displaying 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 needed to return it to the user.
fun createObject(): GeometryMapObject
The object must have geometry
After calling this function, GeometryMapObjectBuilder is not suitable for setting the parameters of a map object or for creating it.
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()
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(rect2: GeoRect): Boolean
fun contains(point: GeoPoint): Boolean
fun intersects(rect2: GeoRect): Boolean
fun expand(rect2: GeoRect): GeoRect
GestureManager
fun setSettingsAboutMapPositionPoint(settings: EventsProcessingSettings): Unit
When the function is called, gesture recognition tools are recreated.
fun setMutuallyExclusiveGestures(rules: List<EnumSet<Gesture>>): Unit
The default rules are added to the passed list of rules, which do not allow the tilt 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 performed simultaneously, the gesture with higher priority will be triggered. The order of gesture priorities (in descending order): (Shift ->) Tilt -> Scaling -> Rotation -> MultiTouchShift
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
)
HttpCacheManager
HttpOptions
HttpOptions(
certificates: List?<Certificate> = null,
timeout: Duration = Duration.ofMilliseconds(15000),
useCache: Boolean = true,
cacheStoragePath: String? = null,
cacheMaxSize: Long? = null,
proxy: HttpProxyOptions? = null
)
HttpProxyOptions
Image
ImageData
ImageData(
size: ScreenSize,
format: ImageFormat,
data: ByteArray
)
fun toBitmap(): Bitmap
IncompleteTextHandler
IndoorBuilding
IndoorControl
It is a column with the names of floors, of which the active one is highlighted. When you click on the name, the floor plan switches. No more than 5 names are displayed at the same time, those that do not fit will be under the scroll.
IndoorControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
It is a column with the names of floors, of which the active one is highlighted. When you click on the name, the floor plan switches. No more than 5 names are displayed at the same time, those that do not fit will be under the scroll.
IndoorControlModel
IndoorDetector
IndoorManager
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
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
LocaleManager
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 in turn 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 in turn 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 = 5.0f)): Future<List<RenderedObjectInfo>>
The list of objects is formed in the order of drawing from the latest to the earliest.
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"
TODO: style properties for traffic.
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
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
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 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
)
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
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. Such a road definition is not a complete route as it lacks finish 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. Such a road definition is not a complete route as it lacks finish and maneuvers.
MultiTouchShiftSettings
MultiTouchShiftSettings(thresholdMm: Float)
MyLocationControl
MyLocationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
MyLocationController
MyLocationControlModel
MyLocationControlModel(map: Map, transitionType: TransitionType = TransitionType.SMOOTH)
fun onClicked(): Unit
MyLocationMapObject
MyLocationMapObjectSource
MyLocationMapObjectSource(context: Context, directionBehaviour: MyLocationDirectionBehaviour)
MyLocationMapObjectSource(
context: Context,
directionBehaviour: MyLocationDirectionBehaviour,
controller: MyLocationController
)
fun setDirectionBehaviour(directionBehaviour: MyLocationDirectionBehaviour): Unit
NativeException
NativeObject
NativeProxy
fun finalize(): Unit
NavigationControl
NavigationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
NavigationControl
NavigationControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
fun onAttachedToWindow(): Unit
fun onDetachedFromWindow(): Unit
fun detachFromManager(): Unit
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, ready-made to use the 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, ready-made to use the 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)
Package
PackageInfo
PackageInfo(
name: String,
installed: Boolean = false,
incomplete: Boolean = false,
preinstalled: Boolean = false,
compatible: Boolean = true,
hasUpdate: Boolean = false,
updateStatus: PackageUpdateStatus
)
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): 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>)
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,
useIndoor: Boolean = true,
excludedAreas: List<ExcludedArea> = listOf()
)
PerformSearchHandler
PlatformLocationFollowController
PlatformLocationFollowController(map: Map)
PointGeometry
PointGeometryData
PointGeometryData(geoPointWithElevation: GeoPointWithElevation)
fun match(geoPoint: Function1, geoPointWithElevation: Function1): T
fun toString(): String
fun hashCode(): Int
Polygon
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: GeoPoint): ScreenPoint?
The function returns an empty value:
fun mapToScreen(point: GeoPointWithElevation): ScreenPoint?
The function returns an empty value:
- if the point has an invalid value (latitude is outside the range -90;90, longitude is outside the range -180;180, or elevation is negative).
- if the specified map point is above the projection plane of the map on the screen.
- if the specified map point is too far beyond the screen and the type overflow occurs.
fun screenToMapClipped(point: ScreenPoint): GeoPoint
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, then this section of the route is proposed to be overcome by personal or rented transport or on foot.
Stops are sorted in the order they follow 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 proposed to overcome 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
)
RangeFilter
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, only custom events can be set.
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
RoadEventPhoto
fun previewUrl(desiredSize: ScreenSize): String
fun report(): Future<ActionResult>
Complaining your photo will get you nowhere.
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)
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 in order 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
)
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?)
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(
route: 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 replaceAllObjects(objects: List<RouteMapObject>): Unit
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
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
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 offset direction: dx - to the right, dy - down.
ScreenSize
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?>
@JvmStatic
fun createOnlineManager(context: Context): SearchManager
@JvmStatic
fun createOfflineManager(context: Context): SearchManager
@JvmStatic
fun createSmartManager(context: Context): SearchManager
SearchQuery
SearchQueryBuilder
TODO: This condition is not working yet. It will be fixed in upcoming releases.
fun setSpatialRestriction(spatialRestriction: List?<GeoPoint>): SearchQueryBuilder
No limit by default.
fun setAreaOfInterest(rect: GeoRect?): SearchQueryBuilder
fun setAllowedResultTypes(allowedResultTypes: List<ObjectType>): SearchQueryBuilder
By default is all except Route
fun setPageSize(pageSize: Int): SearchQueryBuilder
default 10
fun setDirectoryFilter(filter: DirectoryFilter): SearchQueryBuilder
fun setSortingType(sortingType: SortingType): SearchQueryBuilder
@JvmStatic
fun fromQueryText(queryText: String): SearchQueryBuilder
@JvmStatic
fun fromQuery(query: SearchQuery): SearchQueryBuilder
The original #query remains unchanged
SearchResult
fun markerTitles(objectIds: List<DgisObjectId>): List<Future<List<UIMarkerInfo>>>
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 cancelRouteOverview(): Unit
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
)
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?
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(map: Map)
fun setStyleZoom(styleZoom: StyleZoom): Unit
fun setStyleZoomRange(minStyleZoom: StyleZoom, maxStyleZoom: 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 is all except Route
fun setSuggestorType(suggestorType: SuggestorType): SuggestQueryBuilder
The default value is #SuggestorType::General
fun setLimit(limit: Int): SuggestQueryBuilder
default 10
@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
TextStyle
TextStyle(
fontSize: LogicalPixel = LogicalPixel(value = 8.0f),
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value = 0.34999999f),
strokeColor: Color = Color(argb = 4294967295.toInt()),
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()
TiltSettings
TimePoint
TimePoint(timeFromEpoch: Duration)
fun toString(): String
@JvmStatic
fun ofEpochMilliseconds(milliseconds: Long): TimePoint
@JvmStatic
fun now(): TimePoint
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.
fun onClicked(): Unit
TrafficControlState
TrafficControlState(status: TrafficControlStatus = TrafficControlStatus.HIDDEN, score: 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 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.
TrafficScoreProvider(map: Map)
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
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
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 whole world is inscribed in a square of 256x256 logical pixels (see LogicalPixel) Zoom = 1 is the scale at which the whole 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 following, 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.