class
ActivityTracker
Extends: ru.dgis.sdk.NativeObject
ActivityTracker(
platformContext: Context,
model: Model,
speedBound: Double = 4.2,
timeThreshold: Duration = Duration.ofMilliseconds(20000)
)
Navigator extension that monitors user activity and emits a signal
when the user has stopped using the navigator and can be turned off.
Parameters
platformContext
Context.
model
Model of the navigator which status is being monitored.
speedBound
Upper speed limit in m/s, above which in the Finished state of the navigator it
is considered that the navigator is active, i.e. the movement continues.
timeThreshold
The amount of time the navigator's Finished state monitors
movement below the threshold to determine if the navigator is inactive.
If during this time the movement rate is below the set threshold, or there
is no location and speed data, the Navigator is considered inactive.
Properties
val stopChannel
Active state of this flag indicates that the navigator needs to be stopped.
If navigation stops in the Finished state,
(the movement stops or its speed falls below the threshold)
and this state persists for some time, the flag is set to true,
otherwise it is set to false.
val stop
Active state of this flag indicates that the navigator needs to be stopped.
If navigation stops in the Finished state,
(the movement stops or its speed falls below the threshold)
and this state persists for some time, the flag is set to true,
otherwise it is set to false.
AddEventResult
Result of adding an event (event object or error).
Methods
fun match(event: Function1, error: Function1): T
Parameters
fun toString(): String
Returns
fun hashCode(): Int
Returns
Properties
Address
Address as a set of separate components.
Address(
drillDown: List<AddressAdmDiv>,
components: List<AddressComponent>,
buildingName: String?,
buildingId: BuildingId?,
postCode: String?,
buildingCode: String?,
fiasCode: String?,
addressComment: String?
)
Address as a set of separate components.
Parameters
drillDown
components
buildingName
buildingId
postCode
buildingCode
fiasCode
addressComment
Properties
val drillDown
Set of administrative division objects where the described object is located.
val components
Full address of an object may contain several separate address components.
val buildingName
Name of the building.
val buildingId
Unique identifier of the building.
val postCode
ZIP code.
val buildingCode
Unique ZIP code of the building.
val fiasCode
FIAS code of the building.
val addressComment
Comment on the address.
Example: "office 301; 9th floor"
AddressAdmDiv
Object of administrative division.
Properties
val type
The type of the administrative unit. One of the following:<ul><li>country</li><li>region (province/territory/republic, etc.)</li><li>district_area - district of the region</li><li>city</li><li>settlement</li><li>division</li><li>district</li><li>living_area - residential estate, microdistrict</li><li>place</li></ul>
val name
AddressComponent
Address component: street, house number, or verbal description of location.
Methods
fun match(
streetAddress: Function1,
number: Function1,
location: Function1
): T
Parameters
fun toString(): String
Returns
fun hashCode(): Int
Returns
Properties
val isStreetAddress
val asStreetAddress
val isNumber
val asNumber
val isLocation
val asLocation
val value
AddressLocation
Used for components that are difficult to describe with a specific address.
AddressLocation(comment: String)
Used for components that are difficult to describe with a specific address.
Parameters
comment
Properties
val comment
Text description of the building location.
AddressNumber
House number used as a full address. In some settlements, only the house number is indicated, without the street (for example, Krasnoobsk).
AddressStreet
Regular address with a street name and a building number.
AddRoadEventButton
Button for adding a road event.
AddRoadEventButton(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Button for adding a road event.
Parameters
Methods
fun attachToModel(model: AddRoadEventCardModel): Unit
Parameters
AddRoadEventCard
Card for adding a road event.
AddRoadEventCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Card for adding a road event.
Parameters
Methods
fun attachToModel(model: AddRoadEventCardModel): Unit
Parameters
Properties
const MAX_DESCRIPTION_LENGTH
AddRoadEventCardModel
Model of the card for adding a road event.
Implements: java.lang.AutoCloseable
AddRoadEventCardModel(roadEventManager: RoadEventManager, map: Map)
Model of the card for adding a road event.
Parameters
Methods
fun onEventTypeClicked(type: RoadEventType): Unit
Action that occurs when the event type selection control is clicked.
Parameters
fun onLaneClicked(lane: Lane): Unit
Action that occurs when the lane selection control is clicked.
Parameters
fun onDescriptionEntered(description: String): Unit
Action that occurs when entering description.
Parameters
fun close(): Unit
Returns
Properties
val eventTypeChannel
Selected event type.
val lanesChannel
Selected lanes.
val canSelectLanesChannel
Whether it is possible to set lanes.
val descriptionChannel
Entered description.
val markerPositionChannel
Marker position on the screen.
val canSendChannel
Whether it is possible to send an event.
val resultChannel
Result of sending the event.
AddRoadEventControl
Base class for controls for adding road events.
Extends: android.widget.FrameLayout
AddRoadEventControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Base class for controls for adding road events.
Parameters
Methods
fun attachToModel(model: AddRoadEventCardModel): Unit
Parameters
@CallSuper
fun detachFromModel(): Unit
Returns
fun onAttachedToWindow(): Unit
Returns
fun onDetachedFromWindow(): Unit
Returns
Properties
AddRoadEventControls
Set of controls for adding road events.
Consists of a card with event parameters, a "Submit" button, and a marker indicating the location
of adding an event on the map.
Extends: ru.dgis.sdk.map.MapControl
AddRoadEventControls(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Set of controls for adding road events.
Consists of a card with event parameters, a "Submit" button, and a marker indicating the location
of adding an event on the map.
Parameters
Methods
fun show(): Unit
Returns
fun hide(): Unit
Returns
Properties
val cardHeightChannel
Height in pixels to which the card is expanded.
AddRoadEventMarker
Marker for adding a road event.
AddRoadEventMarker(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Marker for adding a road event.
Parameters
Methods
fun attachToModel(model: AddRoadEventCardModel): Unit
Parameters
fun detachFromModel(): Unit
Returns
Aggregate
EV charging station description.
Properties
val connectorsFree
Number of available connectors (in the `Available` status).
val connectorsTotal
Total number of connectors, except for connectors in the `Unavailable` status.
val isActive
Shows whether connectors are active. `true` if there is at least one available (in the `Available` status), reserved (`Reserved`), or busy (`Charging`) connector.
val isBusy
Shows whether connectors are busy. `true` if half or more of the connectors are busy (in the `Charging` status).
val power
The maximum power of the connector at the station.
AlternativeRouteSelector
Selects an alternative route.
Extends: ru.dgis.sdk.NativeObject
Methods
fun selectAlternativeRoute(trafficRoute: TrafficRoute): Unit
Selects an alternative route.
If the passed route does not match one of the current alternative routes,
nothing happens. Otherwise, the appropriate alternative route
becomes the current active route.
Parameters
trafficRoute
Alternative route which should be selected as a current active route.
Returns
AlternativeRoutesProviderSettings
Settings of searching for alternative routes and a better route.
Extends: ru.dgis.sdk.NativeObject
Properties
var alternativeRoutesEnabled
Flag to enable/disable suggesting alternative routes. By default,
this option is enabled.
var betterRouteEnabled
Flag to enable/disable suggesting a better route. By default, this option is enabled.
var routeSearchDelay
Delay before searching for alternative routes when starting a trip on a route or after
switching to another route. Must be not less than 5 seconds. The default value is 20 seconds.
var betterRouteTimeCostThreshold
Minimum travel time difference between the original route and the alternative route
for which the alternative route is considered a better route.
var betterRouteLengthThreshold
Minimum total length of route edges that differ between the original route
and the alternative route at which the alternative route is considered a better route.
var routerType
Type of a search engine for finding alternative routes.
Anchor
Image anchor point.
(0, 0) - upper-left corner, (1, 1) - lower-right corner.
AndroidAutoMapSession
Car App session that renders a map on the surface provided
by the <a href="androidx.car.app.AppManager#setSurfaceCallback">AppManager</a>.<p>Supports both shift and scale gestures.</p><p>The map's visibility is tied to the session's <a href="androidx.car.app.Session#getLifecycle">Lifecycle</a>:</p><ul><li>Map becomes visible during the onStart event.</li><li>Map becomes hidden during the onStop event.</li></ul><p><a href="androidx.car.app.model.Action#PAN">Action.PAN</a> must be included in the <a href="androidx.car.app.model.Template">Template</a>.
Otherwise, the surface won't be available.</p><p>Next permissions are already declared in the SDK:</p><ul><li>androidx.car.app.ACCESS_SURFACE</li><li>androidx.car.app.NAVIGATION_TEMPLATES</li></ul>
AndroidAutoMapSession(mapOptions: MapOptions)
Car App session that renders a map on the surface provided
by the <a href="androidx.car.app.AppManager#setSurfaceCallback">AppManager</a>.<p>Supports both shift and scale gestures.</p><p>The map's visibility is tied to the session's <a href="androidx.car.app.Session#getLifecycle">Lifecycle</a>:</p><ul><li>Map becomes visible during the onStart event.</li><li>Map becomes hidden during the onStop event.</li></ul><p><a href="androidx.car.app.model.Action#PAN">Action.PAN</a> must be included in the <a href="androidx.car.app.model.Template">Template</a>.
Otherwise, the surface won't be available.</p><p>Next permissions are already declared in the SDK:</p><ul><li>androidx.car.app.ACCESS_SURFACE</li><li>androidx.car.app.NAVIGATION_TEMPLATES</li></ul>
Parameters
mapOptions
The configuration of the map. The following parameters are not utilized:
Methods
fun onSurfaceAvailable(
surface: Surface,
width: Int,
height: Int
): Unit
Provides a surface for rendering additional content on top of the map.
This surface can be created and provided before the <a href="ru.dgis.sdk.androidauto.AndroidAutoMapSession#onMapReady">onMapReady</a> callback is triggered.
Parameters
fun onSurfaceDestroyed(surface: Surface): Unit
Indicates that the surface has been destroyed.
Parameters
fun onSurfaceClicked(x: Float, y: Float): Unit
Forwards the <a href="androidx.car.app.SurfaceCallback#onClick">SurfaceCallback.onClick</a> event.
Parameters
fun onSurfaceStableAreaChanged(stableArea: Rect): Unit
Forwards the <a href="androidx.car.app.SurfaceCallback#onStableAreaChanged">SurfaceCallback.onStableAreaChanged</a> event.
Parameters
fun onSurfaceVisibleAreaChanged(visibleArea: Rect): Unit
Forwards the <a href="androidx.car.app.SurfaceCallback#onVisibleAreaChanged">SurfaceCallback.onVisibleAreaChanged</a> event.
Parameters
fun onMapReady(map: Map): Unit
Provides a map when it is successfully initialized.
Parameters
fun onMapReadyException(exception: Exception): Unit
Provides an exception in case of an error during initialization.
Parameters
fun setTheme(theme: MapTheme): Unit
Applies the theme to the map.<p>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 <a href="ru.dgis.sdk.mapOptions#mapTheme">mapOptions#mapTheme</a>.</p>
Parameters
fun setCopyrightPosition(position: CopyrightPosition): Unit
Sets the position of the copyright icon on the screen.<p>Important: This method must be called only after the onCreate state of <a href="androidx.car.app.Session#getLifecycle">Lifecycle</a>.</p>
Parameters
AnimationSettings
Settings of map object animations. Applied to style layers with a model source specified. For example, layers of the "3D model" and "Directional model" type.
Extends: ru.dgis.sdk.NativeObject
Properties
var animationIndex
Gets the index of the current model animation. If null, the value from styles is used.
var animationName
Name of the current model animation. If null, the value from styles is used. If the value is not specified in styles, the animation is not played.
var sceneIndex
Gets the index of the current model scene. If null, the value from styles is used.
var sceneName
Gets the title of the current model scene. If null, the value from styles is used.
var animationRepeatCount
Gets the number of the model animation repetitions. If null, the value from styles is used.
var animationSpeed
Gets the speed of playing the model animation. If null, the value from styles is used.
ApartmentRange
Range of apartments.
Properties
val start
Beginning of the range/stored value.
Currently, only numeric values are possible, while there are no apartments with suffixes in the data yet.
val end
End of the range. If absent, the range consists of a single start value. Otherwise, it is an arithmetic
progression from start to end in increments of 1.
Attribute
Additional attribute.
Example:
{
tag: "hotel_room_internet",
name: "Free internet in rooms"
}
Attributes
Interface for managing map object properties.<p>Only map objects have properties, but you can set default properties for the entire map,
the style, and the source (see ISource for details).</p>
Extends: ru.dgis.sdk.NativeObject
Methods
fun setAttributeValue(name: String, value: AttributeValue): Unit
Sets a property.
Parameters
fun setAttributeValues(values: Map, attributesToRemove: List<String> = listOf()): Unit
Sets a property set.
Parameters
values
Set of the "name":"value" pairs for the added property.
attributesToRemove
List of names of properties to be removed.
Returns
fun removeAttribute(name: String): Unit
Deletes a property.
Parameters
fun getAttributeValue(name: String): AttributeValue
Gets a property.
Parameters
Properties
val attributeNames
Gets a list of properties.
val changed
Gets a channel that notifies about property changes.
AttributeValue
Properties of map objects.
AttributeValue()
Methods
fun match(
empty: Function0<T>,
boolean: Function1,
number: Function1,
integer: Function1,
string: Function1,
data: Function1,
array: Function1,
item: Function1
): T
Parameters
empty
boolean
number
integer
string
data
array
item
Returns
T
fun toString(): String
Returns
fun hashCode(): Int
Returns
Properties
val isEmpty
val isBoolean
val asBoolean
val isNumber
val asNumber
val isInteger
val asInteger
val isString
val asString
val isData
val asData
val isArray
val asArray
val isObject
val asObject
val value
AudioSettings
Class for managing the sound.<p>All methods can be called from any thread.</p>
Extends: ru.dgis.sdk.NativeObject
Properties
var volume
Sound volume level (0-100).
var mute
Sound playing is disabled.
var audioFocusPolicy
Behavior of other applications sounds with the requested focus.
AudioStreamReader
Extends: ru.dgis.sdk.NativeObject
Methods
fun read(): List<Short>
Description of the callback function type that the audio driver calls to read audio data stream.
Returns
AuthorInfo
Information about the author of the event or the photo.
AuthorInfo(type: AuthorType, name: String)
Information about the author of the event or the photo.
Parameters
Properties
val type
Content author category.
val name
String containing the name of the user who added the event or the photo.<ul><li>Username if the author is an authorized user
and has agreed to have their name displayed.</li><li>Empty string for an anonymous user or a user who has refused to have their name displayed.</li></ul>
AvailableCallback
Extends: ru.dgis.sdk.NativeObject
BaseCamera
Camera.<p>Sets the parameters for projecting the map onto the screen.</p>
Extends: ru.dgis.sdk.NativeObject
Methods
fun changePosition(positionChange: CameraPositionChange): Unit
Changes only a part of the camera position parameters.<p>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.</p>
Parameters
Properties
val projection
Projection.<p>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.</p>
val positionChannel
Gets the current camera position.
var position
Gets the current camera position.
val zoomRestrictionsChannel
Gets current zoom level limits.
var zoomRestrictions
Gets current zoom level limits.
val deviceDensityChannel
Gets the DPI ratio to the device's base DPI.
val deviceDensity
Gets the DPI ratio to the device's base DPI.
val sizeChannel
Gets the size of the viewing area.
var size
Gets the size of the viewing area.
val paddingChannel
Gets current paddings from the screen edges.
var padding
Gets current paddings from the screen edges.
val positionPointChannel
Point on the screen to which the camera position is attached. The point is set based on paddings.
var positionPoint
Point on the screen to which the camera position is attached. The point is set based on paddings.
var viewPoint
Viewpoint relative to the full size of the map viewport.
val visibleArea
Area of intersection of the camera visibility pyramid and the surface of the map.
val visibleRectChannel
Rectangle indicating the visible area of the map.
val visibleRect
Rectangle indicating the visible area of the map.
val maxTiltRestrictionChannel
Gets the current function of the maximum camera tilt angle dependency on the style zoom level.
var maxTiltRestriction
Gets the current function of the maximum camera tilt angle dependency on the style zoom level.
val viewportRestrictionChannel
Gets the viewport restrictions.
var viewportRestriction
Gets the viewport restrictions.
Bearing
The angle between the directions of two objects or between the direction of the object and the north.
The angle is measured clockwise. The range of values is <a href="#">0°,360°</a>.
Bearing(value: Double = 0.0)
The angle between the directions of two objects or between the direction of the object and the north.
The angle is measured clockwise. The range of values is <a href="#">0°,360°</a>.
Parameters
value
Properties
val value
BearingFollowController
Controller following the map bearing.
Extends: ru.dgis.sdk.map.FollowController
BearingFollowController(
bearingSource: BearingSource,
animationDuration: Duration = Duration.ofMilliseconds(1000),
valueThreshold: Bearing = Bearing(value = 1.0)
)
Creates a controller for following the map direction.
Parameters
bearingSource
Source of information about direction.
animationDuration
Non-negative duration of change in real direction.
valueThreshold
Non-negative threshold value of considered change in real direction.
BetterRouteInfo
Information about an available alternative route.
BetterRouteInfo(trafficRoute: TrafficRoute, startPoint: RoutePoint)
Information about an available alternative route.
Parameters
Properties
val trafficRoute
Alternative route.
val startPoint
The point on the alternative route, from which the movement starts in case
of switchingt to this route.
BetterRoutePromptControl
Dialog prompting you to switch to a route with a lower expected arrival time.
BetterRoutePromptControl(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Dialog prompting you to switch to a route with a lower expected arrival time.
Parameters
Properties
val visibilityChannel
BicycleBriefRouteInfo
Basic information about the cycling route.
BicycleBriefRouteInfo(length: RouteDistance, landmark: String)
Basic information about the cycling route.
Parameters
Properties
BicycleInstructionCrossroad
Description of maneuvers when passing through an intersection or a pedestrian crossing.
BicycleInstructionCrossroad(landmark: BicycleInstructionCrossroadLandmark = BicycleInstructionCrossroadLandmark.NONE, maneuvers: List<BicycleInstructionCrossroadManeuver>)
Description of maneuvers when passing through an intersection or a pedestrian crossing.
Parameters
Properties
val landmark
Landmark.
val maneuvers
A chain of consecutive maneuvers.
BicycleInstructionCrossroadManeuver
BicycleInstructionCrossroadManeuver(direction: BicycleInstructionCrossroadManeuverDirection = BicycleInstructionCrossroadManeuverDirection.STRAIGHT, turnAngle: Int = 0)
Parameters
Properties
val direction
Direction of movement.
val turnAngle
Angle of rotation in degrees <a href="#">-180,180</a>.
BicycleInstructionFinish
End of the cycling part of the route.
BicycleInstructionFinish()
End of the cycling part of the route.
BicycleInstructionStart
Beginning of the cycling part of the route.
BicycleInstructionStart()
Beginning of the cycling part of the route.
BicycleRouteSearchOptions
Bicycle route search options.
BicycleRouteSearchOptions(
avoidCarRoads: Boolean = false,
avoidStairways: Boolean = false,
avoidUnderpassesAndOverpasses: Boolean = false,
excludedAreas: List<ExcludedArea> = listOf()
)
Bicycle route search options.
Parameters
avoidCarRoads
avoidStairways
avoidUnderpassesAndOverpasses
excludedAreas
Properties
val avoidCarRoads
Avoid highways.
val avoidStairways
Avoid stairways.
val avoidUnderpassesAndOverpasses
Avoid underground and elevated passages.
val excludedAreas
Excluded areas (not more than 25).
BoolRouteLongAttribute
A container that stores an extended route attribute.
Each element is stored as a pair consisting of a point and an attribute element value.
Attribute action starts at this point and ends at the next point,
at which the next element's attribute action begins.
Extends: ru.dgis.sdk.NativeObject
Methods
fun entry(point: RoutePoint): BoolRouteLongEntry?
Element that the specified point falls into.
Parameters
fun entries(begin: RoutePoint, end: RoutePoint): List<BoolRouteLongEntry>
Elements partially or completely covered by the <a href="#">begin,end</a> segment.
Parameters
Properties
val size
Amount of elements.
val isEmpty
Elements are missing.
val first
First element.
val last
Last element.
val entries
All elements.
BoolRouteLongEntry
Extended route element - segment and value on it.
BoolRouteLongEntry(
point: RoutePoint,
length: RouteDistance,
value: Boolean
)
Extended route element - segment and value on it.
Parameters
Properties
Borders
Properties
val snapping
Sets the pull to a value that is a multiple of this number.
val isLg
Indication of using a logarithmic scale.
val value
Value by which the filtering occurs.
val min
Lower bound of the set of values.
val max
Upper bound of the set of values.
val currentMin
Currently set minimum value.
val currentMax
Currently set maximum value.
BriefExtraRouteInfo
Additional information about the route for a specific type of transport.
BriefExtraRouteInfo(pedestrian: PedestrianBriefRouteInfo)
Parameters
pedestrian
BriefExtraRouteInfo(publicTransport: PublicBriefRouteInfo)
Parameters
publicTransport
Methods
fun match(
bicycle: Function1,
car: Function1,
pedestrian: Function1,
publicTransport: Function1,
scooter: Function1
): T
Parameters
bicycle
car
pedestrian
publicTransport
scooter
Returns
T
fun toString(): String
Returns
fun hashCode(): Int
Returns
Properties
val isBicycle
val asBicycle
val isCar
val asCar
val isPedestrian
val asPedestrian
val isPublicTransport
val asPublicTransport
val isScooter
val asScooter
val value
BriefPublicTransportCard
Card that displays brief information about a public transport route.
Unlike a PublicTransportCard, it does not contain information about transfers.
Extends: android.widget.FrameLayout
BriefPublicTransportCard(
context: Context,
attrs: AttributeSet? = null,
defStyle: Int = 0
)
Card that displays brief information about a public transport route.
Unlike a PublicTransportCard, it does not contain information about transfers.
Parameters
Methods
fun onAttachedToWindow(): Unit
Returns
Properties
var model
BriefPublicTransportCardModel
Model for BriefPublicTransportCard.
BriefPublicTransportCardModel(route: TrafficRoute, context: Context)
Model for BriefPublicTransportCard.
Parameters
Properties
val title
Title.
Estimated travel time, for example, "1 hour 42 minutes".
val transports
Transport information.
val description
Description.
Number of transfers and walking time, e.g. <a href="#">1transfer,15min walk</a>.
BriefRoadEvent
BriefRoadEvent(
id: Long = 0,
eventType: RoadEventType = RoadEventType.OTHER,
lanes: EnumSet<Lane>
)
Parameters
Properties
BriefRouteInfo
Basic route information.
BriefRouteInfo(duration: Duration, extraInfo: BriefExtraRouteInfo)
Basic route information.
Parameters
Properties
val duration
Driving time along the route.
val extraInfo
Additional information about the route for a specific type of transport.
BriefRouteInfoSearchPoints
Points used to request searching for the basic route information.
BriefRouteInfoSearchPoints(startPoint: RouteSearchPoint, finishPoint: RouteSearchPoint)
Points used to request searching for the basic route information.
Parameters
Properties
val startPoint
Starting point of the route.
val finishPoint
Finish point of the route.
BuildingId
BuildingInfo
Information about building.
BuildingInfo(
buildingName: String? = null,
purposeName: String? = null,
purposeCode: PurposeCode? = null,
buildingLevels: BuildingLevels? = null,
buildingId: BuildingId?
)
Information about building.
Parameters
buildingName
purposeName
purposeCode
buildingLevels
buildingId
Properties
val buildingName
Name of the building.
val purposeName
Description of the purpose of the building.
val purposeCode
Code of the purpose of the building.
val buildingLevels
Information about floor plans of the building.
val buildingId
Unique identifier of the building.
BuildingLevels
Information about the floor plans of the building.
BuildingLevels(defaultLevelId: LevelId, levels: List<LevelInfo>)
Information about the floor plans of the building.
Parameters
Properties
val defaultLevelId
ID of the default floor plan.
val levels
All floor plans of the building.
CalloutMapPosition
Route callout position.
CalloutMapPosition(
mapId: MapId,
calloutPosition: GeoPoint?,
routePoint: RoutePoint?
)
Route callout position.
Parameters
Properties
val mapId
ID of the map for which the position is given.
val calloutPosition
Position on the map.
val routePoint
Position of a lane callout on the route.
Camera
Camera to start moving the map and adjust tracking.
Extends: ru.dgis.sdk.map.BaseCamera
Methods
fun move(moveController: CameraMoveController): Future<CameraAnimatedMoveResult>
Parameters
moveController
Animated camera movement controller.
Returns
fun move(
position: CameraPosition,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Parameters
position
Final camera position.
time
Time allotted for moving the map
animationType
Camera animation type.
Returns
fun move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: Duration = Duration.ofMilliseconds(300),
animationType: CameraAnimationType = CameraAnimationType.DEFAULT
): Future<CameraAnimatedMoveResult>
Starts the animated map movement using the built-in map movement controller.<p>Resets the current map tracking mode and interrupts gesture processing.</p>
Parameters
point
Point of the final camera position.
zoom
Zoom level in the final camera position.
tilt
Tilt in the final camera poition or an empty value if it is necessary to use the value from the follow controller or the current one depending on the active following mode.
bearing
Bearing in the final camera position.
time
Time allotted for moving the map
animationType
Camera animation type.
Returns
fun processMovementAndStop(): Unit
Sets the camera position according to the current time and stops animated movement.<p>Calling the method interrupts the flyover and gesture processing, and also resets the tracking mode.</p>
Returns
fun addFollowController(followController: FollowController): Unit
Adds a tracking controller.<p>There can be several different ones, for example, a controller for tracking the scale, map tilt,
geolocation, etc.</p>
Parameters
fun removeFollowController(followController: FollowController): Unit
Removes the tracking controller.
Parameters
fun setCustomFollowController(followController: CustomFollowController): Unit
Adds a tracking controller implemented on the platform.<p>Only one such controller can be installed. If you install multiple controllers,
only the last one installed is used.</p>
Parameters
fun removeCustomFollowController(): Unit
Removes the tracking controller implemented on the platform.
Returns
Properties
val stateChannel
Gets the current state of the camera.
val state
Gets the current state of the camera.
val behaviourChannel
Camera tracking mode.
val behaviour
Camera tracking mode.
CameraBehaviour
Camera tracking mode.<p>Camera modes are degraded according to the following rules:</p><ul><li>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</li><li>Rotation of the map relative to the position point blocks the publication of Bearing
events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center</li><li>Changing the scale relative to the position point blocks the publication of StyleZoom
events: MapScalingBeginEvent, DirectMapScalingEvent without event center, ScaleMapEvent without event center</li><li>Tilt locks the publication of Tilt
events: DirectMapTiltEvent</li></ul>
CameraBehaviour(position: FollowPosition?, tilt: FollowTilt = FollowTilt.OFF)
Camera tracking mode.<p>Camera modes are degraded according to the following rules:</p><ul><li>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</li><li>Rotation of the map relative to the position point blocks the publication of Bearing
events: MapRotationBeginEvent, RotateMapToNorthEvent, DirectMapRotationEvent without event center</li><li>Changing the scale relative to the position point blocks the publication of StyleZoom
events: MapScalingBeginEvent, DirectMapScalingEvent without event center, ScaleMapEvent without event center</li><li>Tilt locks the publication of Tilt
events: DirectMapTiltEvent</li></ul>
Parameters
Properties
CameraBehaviourChange
Change tracking mode.
CameraBehaviourChange(newBehaviour: CameraBehaviour, changeReason: CameraBehaviourChangeReason = CameraBehaviourChangeReason.APPLICATION)
Change tracking mode.
Parameters
Properties
val newBehaviour
New tracking mode.
val changeReason
Reason for changing tracking mode.
CameraNotifier
Warns you when you enter the traffic camera coverage area.
Extends: ru.dgis.sdk.NativeObject
CameraNotifier(model: Model)
Navigator extension that warns you when you enter the traffic camera coverage area.
Parameters
model
Model of the navigator which status is being monitored.
Properties
val cameraProgressChannel
Progress of passing the traffic camera coverage area.
val cameraProgress
Progress of passing the traffic camera coverage area.
CameraPosition
Camera position.
Properties
val point
Map point corresponding to the camera position (see ICamera::position_point()).
val zoom
Zoom level.
0 is the entire world inscribed in a square of 256x256 logical pixels (see LogicalPixel).
val tilt
Tilt angle of the direction of vertical view.<p>0 - nadir (look vertically down), the maximum value is 60 degrees.</p>
val bearing
Rotation angle of the direction of horizontal view relative to the north direction.
Counted clockwise, in degrees.
CameraPositionChange
Description of changing some of the camera position parameters.
CameraPositionPoint
Relative screen position of the point to which the camera is attached.<p>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.</p>
CameraPositionPoint(x: Float = 0.5f, y: Float = 0.5f)
Relative screen position of the point to which the camera is attached.<p>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.</p>
Parameters
CameraProgressInfo
Information about the progress of passing the camera zone.
CameraProgressInfo(
camera: RouteCamera,
position: RoutePoint,
progress: Float = 0.0f
)
Information about the progress of passing the camera zone.
Parameters
Properties
val camera
Camera for which the passing progress is being monitored.
val position
Position of the camera on the route.
val progress
Progress of passing the camera coverage area, <a href="#">0.1</a>.
CameraRouteAttribute
Container that describes a point attribute of a route.
Each element is stored as a point on the route (at which the element is located) and the value of the element itself.
Extends: ru.dgis.sdk.NativeObject
Methods
fun entries(begin: RoutePoint, end: RoutePoint): List<CameraRouteEntry>
Elements falling within the [begin, end) range.
Parameters
fun findNearBackward(point: RoutePoint): CameraRouteEntry?
Finds the nearest element, the position of which is
<
= point.<p>The complexity of the operation is log2(N), where N = size.</p>
Parameters
fun findNearForward(point: RoutePoint): CameraRouteEntry?
Finds the nearest element, the position of which is
<
= point.<p>The complexity of the operation is log2(N), where N = size.</p>
Parameters
Properties
val size
Amount of elements.
val isEmpty
Elements are missing.
val first
First element.
val last
Last element.
val entries
All elements.
CameraRouteEntry
Route element - point and value in it.
CameraRouteEntry(point: RoutePoint, value: RouteCamera)
Route element - point and value in it.
Parameters
Properties
CameraViewPoint
The relative position of the screen point with the camera viewpoint.<p>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.</p>
CameraZoomRestrictions
Acceptable zoom range.
CancelEvent
Event of canceling the current action.<p>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.</p>
Extends: ru.dgis.sdk.map.Event
CancelEvent()
CarBriefRouteInfo
Basic car route information.
CarBriefRouteInfo(
length: RouteDistance,
landmark: String,
trafficSpeed: CarBriefRouteInfoTrafficSpeed
)
Basic car route information.
Parameters
Properties
val length
Route length.
val landmark
Landmark.
val trafficSpeed
Traffic speed.
CarInstructionCrossroad
Description of maneuvers at the crossroads.
CarInstructionCrossroad(
direction: CarInstructionCrossroadDirection = CarInstructionCrossroadDirection.STRAIGHT,
turnAngle: Int = 0,
landmark: CarInstructionCrossroadLandmark = CarInstructionCrossroadLandmark.NONE,
exitName: String
)
Description of maneuvers at the crossroads.
Parameters
direction
turnAngle
landmark
exitName
Properties
val direction
Direction of traffic at the intersection.
val turnAngle
Angle of rotation in degrees <a href="#">-180,180</a>.
val landmark
Landmark.
val exitName
Name of the exit.
CarInstructionFinish
End of the car section of the route.
CarInstructionFinish()
End of the car section of the route.
CarInstructionRoundabout
Description of maneuvers at a roundabout.
CarInstructionRoundabout(
type: CarInstructionRoundaboutType = CarInstructionRoundaboutType.ENTRY,
turnAngle: Int = 0,
exitNumber: Int = 0,
exitName: String
)
Description of maneuvers at a roundabout.
Parameters
Properties
val type
Instruction type.
val turnAngle
Angle of rotation in degrees <a href="#">-180,180</a>.
val exitNumber
Exit number - <a href="#">1,inf</a> or 0 if exit number is unknown.
val exitName
Name of the exit.
CarInstructionStart
Beginning of the car section of the route.
CarInstructionStart()
Beginning of the car section of the route.
CarInstructionUTurn
U-turn on the road (not at the intersection).<p>U-turn at the intersection is described by the Crossroad instruction.</p>
CarInstructionUTurn(exitName: String)
U-turn on the road (not at the intersection).<p>U-turn at the intersection is described by the Crossroad instruction.</p>
Parameters
exitName
Properties
val exitName
Name of the exit.
CarRouteSearchOptions
Parameters for finding a car route.
CarRouteSearchOptions(
avoidTollRoads: Boolean = false,
avoidUnpavedRoads: Boolean = false,
avoidFerries: Boolean = false,
avoidLockedRoads: Boolean = true,
routeSearchType: RouteSearchType = RouteSearchType.JAM,
excludedAreas: List<ExcludedArea> = listOf()
)
Parameters for finding a car route.
Parameters
avoidTollRoads
avoidUnpavedRoads
avoidFerries
avoidLockedRoads
routeSearchType
excludedAreas
Properties
val avoidTollRoads
Avoid toll roads.
val avoidUnpavedRoads
Avoid dirt roads.
val avoidFerries
Avoid ferries.
val avoidLockedRoads
Avoid closed roads.
When set to true, the route search does not take into account road sections that are closed to traffic.
If set to false, the route can be built through blocked sections of roads if it is impossible
to build a route without passing through blocked sections.
val routeSearchType
Route search type.
val excludedAreas
Excluded areas (not more than 25).
Certificate
SSL certificate.
Methods
fun match(
system: Function1,
fromFile: Function1,
fromAsset: Function1
): T
Parameters
system
fromFile
fromAsset
Returns
T
fun toString(): String
Returns
fun hashCode(): Int
Returns
Properties
val isSystem
val asSystem
val isFromFile
val asFromFile
val isFromAsset
val asFromAsset
val value
val default
Default certificates.
System certificates and the state ones shipped with the SDK.
CertificateFromAsset
SSL certificate from asset.
Properties
val path
Path relative to the asset root directory.
CertificateFromFile
SSL certificate from a file.
Properties
val path
File path.
ChargingStation
Attributes of EV charging stations.
ChargingStation(aggregate: Aggregate, connectors: List<Connector>)
Attributes of EV charging stations.
Parameters
Properties
CheckableGroupedItem
Single element from GroupCheckableItem.
Extends: ru.dgis.sdk.NativeObject
Properties
val text
Gets a text description of an element.
val values
Gets a list of values by which filtering occurs.
Usually one value.
var isChecked
Gets the state of an element.
CheckableItem
Base representation of a checkable item from a CheckableItemsGroup.
Extends: ru.dgis.sdk.NativeObject
Properties
val type
Gets the type of the checked element.
val filterType
Gets a list of filters that describe the current state of the widget. Can be used when
forming a search query.
CheckableItemsGroup
Widget for representing a group of checked items.
Extends: ru.dgis.sdk.directory.Widget
Properties
val items
Gets a group of widget elements.
Checkbox
Checkbox widget.
Extends: ru.dgis.sdk.directory.Widget
Properties
val filterType
Gets the filter type that the widget represents.
val checkedText
Gets the signature text for a “checked” checkbox.
val uncheckedText
Gets the signature text for a “non-checked” checkbox.
val values
Gets a list of values by which filtering occurs.
Usually one value.
var isChecked
Gets the state of the widget.
Circle
Circle.
Extends: ru.dgis.sdk.map.SimpleMapObject
Properties
var position
Location of the circle center.
var radius
Circle radius.
var color
Circle fill color.
var strokeWidth
Width of the circle outline.
var strokeColor
Circle outline color.
var dashedStrokeOptions
CircleOptions
Parameters for creating a geometric map object of the "Circle" type.
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
)
Parameters for creating a geometric map object of the "Circle" type.
Parameters
position
radius
color
strokeWidth
strokeColor
dashedStrokeOptions
visible
userData
zIndex
levelId
Properties
val position
Geographical position.
val radius
Radius in meters.
val color
Fill color.
val strokeWidth
Width of the circle outline.
val strokeColor
Line color of the circle outline.
val dashedStrokeOptions
val visible
Visibility flag.
val userData
User data (not used inside the SDK, only needed for API users).
val zIndex
Object rendering level.
val levelId
Link to the floor plan of the building.
ClusterObject
Cluster of objects.
Extends: ru.dgis.sdk.map.MapObject
Properties
val position
Gets the position of the cluster on the map.
val objectCount
Gets the number of tokens in the cluster.
val objects
Gets a list of markers in the cluster.
val geometryObject
Gets a cluster geometric object.
ClusterOptions
Cluster marker settings.