Skip to main content

class

ActivityTracker

Extends: Hashable
public static func == (lhs: ActivityTracker, rhs: ActivityTracker) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
platformContext: Context,
model: Model,
speedBound: Double = 4.2,
timeThreshold: TimeInterval = 20
)
Navigation extension that monitors user activity and gives a signal when the user has stopped using the navigator and it can be turned off.
Parameters
platformContext
Context.
model
Model of the navigator status of which is being tracked.
speedBound
Upper limit of speed in m/s, if exceeded in the Finished state of the navigator, it is considered that the navigator is active, i.e. the movement continues.
timeThreshold
TimeInterval
Time during which in the Finished state of the navigator the speed is tracked below the threshold for determining the inactive state of the navigator. If during this time the speed is less than the set threshold or there is no location and speed data, the navigator is considered inactive.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var stopChannel
StatefulChannel<Bool>
Flag the active state of which indicates that the navigator must be stopped. If in the Finished state the navigation stops, i.e. the movement stops or its speed becomes lower than the threshold value, and if this state persists for some time, the flag is set to true, otherwise it is set to false.
var stop
Flag the active state of which indicates that the navigator must be stopped. If in the Finished state the navigation stops, i.e. the movement stops or its speed becomes lower than the threshold value, and if this state persists for some time, the flag is set to true, otherwise it is set to false.

AlternativeRouteSelector

Alternative route selection.
Extends: Hashable
public static func == (lhs: AlternativeRouteSelector, rhs: AlternativeRouteSelector) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func selectAlternativeRoute(
trafficRoute: TrafficRoute
)
Alternative route selection. If a passed route does not equal any of the current alternative routes, nothing happens. Otherwise, a corresponding alternative route becomes the current active route.
Parameters
trafficRoute
Alternative route that must be selected as the current active route.

AlternativeRoutesProviderSettings

Settings of searching for alternative routes and a better route.
Extends: Hashable
public static func == (lhs: AlternativeRoutesProviderSettings, rhs: AlternativeRoutesProviderSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var alternativeRoutesEnabled
Flag to enable/disable the suggestion of alternative routes. By default, suggestion of alternative routes is enabled.
var betterRouteEnabled
Flag to enable/disable the suggestion of a better route. By default, the better route suggestion 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 at least 5 seconds. The default is 20 seconds.
var betterRouteTimeCostThreshold
Minimum difference in travel time between the original route and the alternate route at which the alternate route is considered a better route.
var betterRouteLengthThreshold
Minimum cumulative length of route edges that differ between the original route and the alternate route, at which the alternate route is considered the better route.
var routerType
Type of a search engine for finding alternative routes.

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: Hashable
public static func == (lhs: AnimationSettings, rhs: AnimationSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var animationIndex
Int32?
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
Int32?
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
Int32?
Gets the number of the model animation repetitions. If null, the value from styles is used.
var animationSpeed
Float?
Gets the speed of playing the model animation. If null, the value from styles is used.

Attributes

Interface for managing map object attributes.
Extends: Hashable
public static func == (lhs: Attributes, rhs: Attributes) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setAttributeValue(
name: String,
value: AttributeValue
)
Setting an attribute.
Parameters
name
Property name.
value
public func setAttributeValues(
values: [String: AttributeValue],
attributesToRemove: [String] = []
)
Sets a set of attributes.
Parameters
values
String[ : ]
Set of “name”:“value” pairs for added properties.
attributesToRemove
List of property names to delete.
public func removeAttribute(
name: String
)
Removes an attribute.
Parameters
name
Name of a property to delete.
public func getAttributeValue(
name: String
) -> AttributeValue
Gets an attribute.
Parameters
name
Name of a property to retrieve.
Returns
Properties
var attributeNames
Retrieving a list of properties.
var changed
Channel<[String]>
Gets a channel notifying about the change of the properties.

AudioSettings

Class for managing the sound.<br/>All methods can be called from any thread.
Extends: Hashable
public static func == (lhs: AudioSettings, rhs: AudioSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
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.

BaseCamera

Camera.
Extends: Hashable
public static func == (lhs: BaseCamera, rhs: BaseCamera) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func clone() -> BaseCamera
Creates a copy of the current camera.
Returns
public func setPosition(
position: CameraPosition
) throws
Sets a new camera position.<br/>The call interrupts flyover and gesture handling, and resets the tracking mode.
Parameters
public func changePosition(
positionChange: CameraPositionChange
) throws
Changes only certain parameters of the camera position.<br/>The call interrupts flyover and gesture handling and resets following changed parameters. If coordinates are changed, following the style scaling level and bearing is also reset.
Parameters
positionChange
public func setZoomRestrictions(
zoomRestrictions: CameraZoomRestrictions
) throws
Sets a new range of zoom level limits.
Parameters
zoomRestrictions
New range of zoom-level restrictions.
public func setPositionPoint(
positionPoint: CameraPositionPoint
) throws
Sets the new position relative to the area of the screen limited by the paddings.
Parameters
positionPoint
New position relative to the area of the screen bounded by the paddings.
public func setViewPoint(
viewPoint: CameraViewPoint?
) throws
Sets the new viewpoint relative to the full size of the map viewport.
Parameters
viewPoint
New viewpoint relative to the full size of the map viewport. If nil is passed, follows the point of camera position.
Properties
var projection
Projection.
var positionChannel
StatefulChannel<CameraPosition>
Gets the current camera position.
var position
Gets the current camera position.
var zoomRestrictionsChannel
StatefulChannel<CameraZoomRestrictions>
Gets the current zoom level limits.
var zoomRestrictions
Gets the current zoom level limits.
var deviceDensityChannel
StatefulChannel<DeviceDensity>
Gets the DPI ratio to the base DPI of the device.
var deviceDensity
Gets the DPI ratio to the base DPI of the device.
var sizeChannel
StatefulChannel<ScreenSize>
Gets the viewport size.
var size
Gets the viewport size.
var paddingChannel
StatefulChannel<Padding>
Gets the current padding from the edges of the screen.
var padding
Gets the current padding from the edges of the screen.
var positionPointChannel
StatefulChannel<CameraPositionPoint>
Screen point to which the camera position is anchored is set with the padding.
var positionPoint
Screen point to which the camera position is anchored is set with the padding.
var viewPoint
Viewpoint relative to the full size of the map viewport.
var visibleArea
Intersection area between the camera's visibility pyramid and the map surface.
var visibleRectChannel
StatefulChannel<GeoRect>
Volume rectangle of the visible area of the map.
var visibleRect
Volume rectangle of the visible area of the map.
var maxTiltRestrictionChannel
StatefulChannel<StyleZoomToTiltRelation?>
Gets the current function of the dependence of the maximum camera tilt angle on the style zoom level.
var maxTiltRestriction
Gets the current function of the dependence of the maximum camera tilt angle on the style zoom level.
var viewportRestrictionChannel
StatefulChannel<GeoRect?>
Gets the viewport restrictions.
var viewportRestriction
Gets the viewport restrictions.

BearingFollowController

Controller following the map bearing.
public convenience init(
bearingSource: BearingSource,
animationDuration: TimeInterval = 1,
valueThreshold: Bearing = Bearing(value: 1)
)
Creates a controller following the map bearing.
Parameters
bearingSource
Source of bearing information.
animationDuration
TimeInterval
Non-negative duration of changing the actual bearing.
valueThreshold
Non-negative threshold of changing the actual bearing taken into account.

BoolRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: BoolRouteLongAttribute, rhs: BoolRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> BoolRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [BoolRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries

BufferedChannel

Extends: Channel<Value>
Properties
var value
Value?

Camera

Camera for triggering map movement and tracking settings.
Extends: BaseCamera
Methods
public func move(
moveController: CameraMoveController
) -> Future<CameraAnimatedMoveResult>
Parameters
moveController
Animated camera movement controller.
Returns
Future<>
public func move(
position: CameraPosition,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Parameters
position
Camera end position.
time
TimeInterval
Time allocated for moving the map.
animationType
Type of animation when moving the camera.
Returns
Future<>
public func move(
point: GeoPoint,
zoom: Zoom,
tilt: Tilt?,
bearing: Bearing,
time: TimeInterval = 0.3,
animationType: CameraAnimationType = CameraAnimationType.`default`
) -> Future<CameraAnimatedMoveResult>
Starts an animated map move using the built-in map move controller.<br/>Resets the current map tracking mode and interrupts gesture processing.
Parameters
point
Point of the final camera position.
zoom
Scaling level in the final camera position.
tilt
Tilt in the final camera position or an empty value if you need to use a value from the FollowController or the current value depending on the active tracking mode.
bearing
Bearing in the final camera position.
time
TimeInterval
Time allocated for moving the map.
animationType
Type of animation when moving the camera.
Returns
Future<>
public func processMovementAndStop()
Sets the camera position according to the current time and stopping the animated movement.<br/>The call interrupts the camera flyover and gesture processing and resets the tracking mode.
public func setBehaviour(
behaviour: CameraBehaviour
)
Switch of the camera tracking mode. If a new mode is more restricted then the current one, the call will interrupt the flyover and gesture handling.
Parameters
public func addFollowController(
followController: FollowController
)
Adds the follow controller.
Parameters
followController
public func removeFollowController(
followController: FollowController
)
Removes the follow controller.
Parameters
followController
public func setCustomFollowController(
followController: CustomFollowController
)
Adding the follow controller implemented on the platform.
Parameters
followController
public func removeCustomFollowController()
Removes the follow controller implemented on the platform.
func setPosition(point: GeoPoint, zoom: Zoom) throws
Parameters
point
zoom
func setPosition(point: GeoPoint) throws
Parameters
Properties
var stateChannel
StatefulChannel<CameraState>
Obtaining the current status of the camera.
var state
Obtaining the current status of the camera.
var behaviourChannel
StatefulChannel<CameraBehaviourChange>
Camera tracking mode.
var behaviour
Camera tracking mode.

CameraNotifier

Warns you if you enter the coverage area of a traffic camera.
Extends: Hashable
public static func == (lhs: CameraNotifier, rhs: CameraNotifier) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
model: Model
)
Navigation extension that warns you if you enter the coverage area of a traffic camera.
Parameters
model
Model of the navigator whose status is being tracked.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var cameraProgressChannel
StatefulChannel<CameraProgressInfo?>
Progress of passing the traffic camera coverage area.
var cameraProgress
Progress of passing the traffic camera coverage area.

CameraRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: CameraRouteAttribute, rhs: CameraRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [CameraRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> CameraRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> CameraRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries
All elements.

CancelEvent

Event of canceling the current action.
Extends: Event
public convenience init()

Cancellable

Cancellation token for a running operation.
Implements: ICancellable
public init(
cancel: @escaping () -> Void,
release: @escaping () -> Void = {}
)
public convenience init()
Make a cancellation token that cancels nothing.
public static func ==(lhs: Cancellable, rhs: Cancellable) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func cancel()
May be called any number of times from any queue.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

Channel

public static func ==(lhs: Channel<Value>, rhs: Channel<Value>) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func sink(
receiveValue: @escaping (Value) -> Void
) -> Cancellable
Subscribe to a stream of values over time. The subscription never fails.
Returns
CancellableCancellable instance. Deallocation of the result will tear down the subscription stream.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
func sinkOnMainThread(_ receiveValue: @escaping (Value) -> Void) -> Cancellable
Get the `Channel` result in the `main` thread.
func sink(on queue: DispatchQueue, receiveValue: @escaping (Value) -> Void) -> Cancellable
Subscribe to a stream of values over time. The subscription never fails.
Parameters
queue
DispatchQueue
Returns

CheckableGroupedItem

Single element from GroupCheckableItem.
Extends: Hashable
public static func == (lhs: CheckableGroupedItem, rhs: CheckableGroupedItem) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var text
Gets a textual description of the element.
var values
Gets the list of values used for filtering. Commonly, only one value is used.
var isChecked
Gets the element state.

CheckableItem

Basic representation of a checkable element from CheckableItemsGroup.
Extends: Hashable
public static func == (lhs: CheckableItem, rhs: CheckableItem) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var type
Gets the type of the checkable element.
var filterType
Gets a list of filters describing the current state of the widget. Can be used during creation of a search query.

CheckableItemsGroup

Widget for presenting a group of selectable elements.
Extends: Widget
Properties
var items
Gets the group of widget elements.

Checkbox

Checkbox widget.
Extends: Widget
Properties
var filterType
Gets the filter type presented by the widget.
var checkedText
Gets the caption of the selected checkbox.
var uncheckedText
Gets the caption of the unselected checkbox.
var values
Gets the list of values used for filtering. Commonly, only one value is used.
var isChecked
Gets the widget state.

Circle

Circle.
public convenience init(
options: CircleOptions
) throws
Parameters
Methods
public func setPosition(
position: GeoPoint
) throws
Sets the location of the circle center.
Parameters
position
public func setRadius(
radius: Meter
) throws
Sets the circle radius.
Parameters
radius
Properties
var position
Location of the center of a circle.
var radius
Radius of a circle.
var color
Circle fill color.
var strokeWidth
Circle border line width.
var strokeColor
Circle border color.
var dashedStrokeOptions

ClusterObject

Cluster of objects.
Extends: MapObject
Properties
var position
Gets the cluster position on the map.
var objectCount
Gets the number of markers in the cluster.
var objects
Gets the list of markers in the cluster.
var geometryObject
Obtains the geometric object of the cluster.

CompassControl

Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var intrinsicContentSize

CompassControlModel

Model of the compass control. The control consists of a compass button that, when clicked, causes the map camera to change its angle in the direction of north. If the map camera is facing the north, the control must be hidden. Thread-safe.
Extends: Hashable
public static func == (lhs: CompassControlModel, rhs: CompassControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Parameters
map
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func onClicked()
Properties
var bearingChannel
StatefulChannel<Bearing>
var bearing

CompassViewModel

ViewModel for the compass UI control.
Extends: ObservableObject
Methods
public func onClicked()

ComplexGeometry

Complex geometry, contains a set of simple or complex geometries.
Extends: Geometry
public convenience init(
geometries: [Geometry]
)
Parameters
geometries
Properties
var elements

Container

Central object for accessing iOS Mobile SDK features.
public required init(
keySource: KeySource = .default,
logOptions: LogOptions = .default,
httpClientForRequest: IHTTPClient? = nil,
httpOptions: HttpOptions = HttpOptions(),
locationProvider: ILocationProvider? = nil,
magneticHeadingProvider: IMagneticHeadingProvider? = nil,
personalDataCollectionOptions: PersonalDataCollectionOptions = .default,
vendorConfig: VendorConfig = .none
)
Container builder.
Parameters
keySource
Settings of the key to access 2GIS services.
logOptions
Logging settings.
httpClientForRequest
Network client for sending HTTP requests.
httpOptions
HTTP client settings (such as caching).
locationProvider
Geolocation source. If nil is passed, the default source is used.
magneticHeadingProvider
Source of a magnetic needle heading.
personalDataCollectionOptions
Data collection service settings.
vendorConfig
Overwrites settings for working in an autonomous environment.
Methods
public func makeDirectoryViewsFactory() -> IDirectoryViewsFactory
Create a factory of directory SwiftUI elements.
public func makeMapFactory(
options: MapOptions
) throws -> IMapFactory
Parameters
options
Initial map properties. Specify `.default` to quickly create an online map looking at Moscow, with a fixed inaccurate PPI (not matching the current device).
Returns
public func makeRouteEditorFactory() throws -> IRouteEditorFactory
Creates a factory of route editors.
public func makeNavigationViewFactory(options: NavigationViewOptions = .default) throws -> INavigationViewFactory
Creates a factory of a navigator layer.
Parameters
options
Custom settings.
Returns
public func makeNavigatorViewFactory(options: NavigationViewOptions = .default) throws -> INavigatorViewFactory
Create a factory of the navigator layer with SwiftUI elements.
Parameters
options
Custom settings.
Returns
public func makeRoadEventCardViewFactory(options: RoadEventCardViewOptions = .default) throws -> IRoadEventCardViewFactory
Creates a factory of a road event card.
Parameters
Properties
var context
Root opaque SDK object container. Used as an argument to the SDK API.
var markerViewFactory
UIView marker factory for map.
var styleFactory
Constructor of standard and custom styles.
var searchManagerFactory
Factory of directory search engines.
var sourceFactory
Factory of map data sources.
var imageFactory
Factory of map object images.
var modelFactory
Model factory for map objects.
var localeManager
Manager of application locale settings.
var locationService
Current ILocationService implementation used within the SDK and working via ILocationProvider.
let httpOptions
HTTP client settings.
var audioSettings
Object for configuring sounds.
var voiceManager
Object for interacting with the list of voice packages of the navigator.

Context

Context - the environment required for the SDK to work.
Extends: Hashable
public static func == (lhs: Context, rhs: Context) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

CoordinatesFollowController

Controller of following the map position coordinates.
public convenience init(
animationDuration: TimeInterval = 1,
valueThreshold: Meter = Meter(value: 0.10000000149011612)
)
Creates a controller following the camera position coordinates.
Parameters
animationDuration
TimeInterval
Duration of changing the actual position.
valueThreshold
Non-negative threshold of the actual position change taken into account.

CreateRoadEventControl

Block for creating road events.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var intrinsicContentSize

CurrentLocationControl

Unit with the function of flyover to the current location.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var intrinsicContentSize

CurrentLocationViewModel

ViewModel for the UI control of the current location.
Extends: ObservableObject
Methods
public func onClicked()

DgisMapObject

2GIS map object.<br/>Information about an object can be obtained in the directory.
Extends: MapObject
Properties
var id
Stable numeric object ID.

DgisSource

Main interface of 2GIS data sources.
Extends: Source
Methods
public static func createDgisSource(
context: Context,
workingMode: DgisSourceWorkingMode = DgisSourceWorkingMode.hybridOnlineFirst
) -> Source
Creates a source that obtains data from 2GIS servers or uses preloaded data.
Parameters
context
workingMode
Returns
public func setHighlighted(
directoryObjectIds: [DgisObjectId],
highlighted: Bool
)
Sets or removes object highlighting.<br/>The method adds the “selected” attribute to the object, which can be used in styles.
Parameters
directoryObjectIds
IDs of the objects being changed.
highlighted
Sets or removes a selection.
Properties
var highlightedObjectsChannel
StatefulChannel<[DgisObjectId]>
Obtaining a list of IDs of the highlighted objects.
var highlightedObjects
Obtaining a list of IDs of the highlighted objects.

DirectMapControlBeginEvent

Event to start direct control of the map. Tells the map to process direct map control events. Direct control events only work from DirectMapControlBeginEvent to DirectMapControlEndEvent. After the sequence of direct control events is complete, kinematics can start. Kinematics uses the occurrence time of the event, so it is better to use the time received from the system rather than fill in the value during processing. For now, kinematics only work for moving the map, but not for rotating and zooming.
Extends: Event
public convenience init()

DirectMapControlEndEvent

Event of ending direct map control. Ends direct map control that was started after receiving the DirectMapControlBeginEvent event. Direct map control events are described in DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
timestamp: TimeInterval
)
Parameters
timestamp
TimeInterval

DirectMapRotationEvent

Direct map rotation event. The events of direct map control are described in DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
bearingDelta: Bearing,
timestamp: TimeInterval,
rotationCenter: ScreenPoint? = nil
)
Parameters
bearingDelta
Change of the map rotation angle, in degrees. Positive values correspond to the direction of rotation counterclockwise.
timestamp
TimeInterval
Time of the system event generation.
rotationCenter
Point on the screen relative to which the map rotates. If not set, rotation is done relative to the map position point.
Properties
var bearingDelta
Changes the rotation angle of the map.
var rotationCenter
Point on the screen relative to which the map rotates.

DirectMapScalingEvent

Event of direct map scaling. Direct map control events are described in DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
zoomDelta: Float,
timestamp: TimeInterval,
scalingCenter: ScreenPoint? = nil
)
Parameters
zoomDelta
Float
Value by which the current scale value will change.
timestamp
TimeInterval
Time of the system event generation.
scalingCenter
Point on the screen relative to which the map scales. If not set, scaling is done relative to the map position point.
Properties
var zoomDelta
Float
Value by which the current scale value will change.
var scalingCenter
Point on the screen relative to which the map scales.

DirectMapShiftEvent

Direct map shift event. Direct map control events are described in DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
screenShift: ScreenShift,
shiftedPoint: ScreenPoint,
timestamp: TimeInterval
)
Parameters
screenShift
Change in the screen position of the map relative to the previous one, in pixels.
shiftedPoint
Center point from which the map is shifted.
timestamp
TimeInterval
Time of the system event generation.
Properties
var screenShift
Changing the map screen position.
var shiftedPoint
Center point from which the map is shifted.

DirectMapTiltEvent

Event of direct camera tilt. The events of direct map control are described in DirectMapControlBeginEvent.
Extends: InputEvent
public convenience init(
delta: Float,
timestamp: TimeInterval
)
Parameters
delta
Float
Tilt angle change in degrees.
timestamp
TimeInterval
Time of the system event generation.
Properties
var delta
Float
Tilt angle change in degrees.

DirectoryObject

Directory object.
Extends: Hashable
public static func == (lhs: DirectoryObject, rhs: DirectoryObject) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func formattedAddress(
type: FormattingType
) -> FormattedAddress?
String representation of the address formatted according to the specified length requirement.
Parameters
Properties
var types
Object type. There can be several, for example, Sun City Mall is a branch of an organization and a building at the same time. The first type in this list is the primary type.
var title
Object title.
var titleAddition
Additional title information. Example: “(apt. 1-12)”.
var subtitle
Object subtitle.<br/>Can be an empty string if a subtitle is missing.
var description
Object description.
var id
Stable numeric object ID.
var markerPosition
Point of the object where the marker should be placed.
var address
Address of the object as a set of components.
var attributes
Additional object attributes.
var contextAttributes
Contextual object's additional attributes.
var timeZoneOffset
The shift of the object's local time relative to UTC in seconds at the current moment.
var openingHours
Opening hours of the object.
var contactInfos
Contacts of the object.
var reviews
Reviews.
var parkingInfo
Additional parking information.
var workStatus
Operating status.
var levelId
Identifier of the floor on which the facility is located.
var buildingLevels
Information about the floor plans of the building.
var entrances
Information about entrances.
var tradeLicense
Data on the organization license.
var buildingInfo
Information about building.
var chargingStation
EV charging station attributes.
var rubricIds
Rubric identifiers.
var orgInfo
Information about the organization.
var group
Objects grouped into a combined card.

DoubleRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: DoubleRouteAttribute, rhs: DoubleRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [DoubleRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> DoubleRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> DoubleRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries
All elements.

DynamicRouteInfoSettings

Settings for getting dynamic route data.
Extends: Hashable
public static func == (lhs: DynamicRouteInfoSettings, rhs: DynamicRouteInfoSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var updatePeriod
Frequency at which dynamic route data should be updated.

Event

Base class for all events handled.
Extends: Hashable
public static func == (lhs: Event, rhs: Event) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

ExceedSpeedLimitSettings

Settings of the detection of exceeding the speed limit.
Extends: Hashable
public static func == (lhs: ExceedSpeedLimitSettings, rhs: ExceedSpeedLimitSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var exceedSpeedNotificationEnabled
Enables/disables detection of exceeding the maximum permitted speed limit.
var allowableSpeedExcess
Float
Allowed exceeding of the speed limit in m/s, default is 0.

File

File ID.
Extends: Hashable
public static func == (lhs: File, rhs: File) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
path: String
)
File in a file system.
Parameters
path
File path.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromString(
contents: String
) -> File
File with the content from a given string.
Parameters
contents
Contents of the file.
Returns

FloatRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: FloatRouteLongAttribute, rhs: FloatRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> FloatRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [FloatRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
var entries

FollowController

Allows you to control the position of the camera and the geopositioning marker. All its methods implementations must be thread-safe. Most methods have trivial default implementations (so that FollowController, which is responsible for scaling, does not have to override coordinates() methods, etc.).
Extends: Hashable
public static func == (lhs: FollowController, rhs: FollowController) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

FreeRoamSelector

Controller for switching the navigator to `FreeRoam` mode if the route rebuilds too long.
Extends: Hashable
public static func == (lhs: FreeRoamSelector, rhs: FreeRoamSelector) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.
Properties
var enabled

FreeRoamSettings

Extends: Hashable
public static func == (lhs: FreeRoamSettings, rhs: FreeRoamSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var onRoutePrefetchLength
Road graph tiles are loaded into HTTP cache during route guidance if they correspond to the route section from the current position to the specified distance. The default value is 5 km.<br/>Tiles are not loaded into the HTTP cache if the parameter corresponds to a zero or negative distance.
var onRoutePrefetchRadiusMeters
When caching road graph tiles during route guidance, the tiles are loaded into HTTP cache if they are closer than the specified distance in meters from the route line. The default value is 1 km.<br/>Tiles are not loaded into HTTP cache if the parameter corresponds to zero or negative distance.
var prefetchRadiusMeters
Road graph tiles are loaded into HTTP cache if they are closer than the specified distance in meters from the current position. The default value is 2 km.<br/>Tiles are not loaded to HTTP cache if the parameter corresponds to zero or negative distance.

Future

public init(
subscriber: @escaping Subscriber,
canceller: @escaping Canceller = {}
)
Parameters
subscriber
Subscriber
Creates a new subscription.
canceller
Canceller
Releases all associated resources. It must be called at some point after the subscription has fired (e.g. in `deinit`).
public static func ==(lhs: Future<Value>, rhs: Future<Value>) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func sink(
receiveValue: @escaping (Value) -> Void,
failure: @escaping (Error) -> Void
) -> Cancellable
Subscribes for a future value or an error.
Returns
CancellableCancellable instance. Deallocation of the result will tear down the single value subscription.
public func sink(
receiveCompletion: @escaping () -> Void,
failure: @escaping (Error) -> Void
) -> Cancellable where Value == Void
Subscribes for a future value or an error.
Returns
CancellableCancellable instance. Deallocation of the result will tear down the single value subscription.
static func makeReadyValue(_ value: Value) -> Future<Value>
Makes an immediately ready future value.
Returns
Future<>
static func makeReadyError(message: String) -> Future<Value>
Makes an immediately ready future error.
Parameters
message
Error message.
Returns
Future<>
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
func sinkOnMainThread(
receiveValue: @escaping (Value) -> Void,
failure: @escaping (Error) -> Void
) -> DGis.Cancellable
Returns
CancellableDGis.

Geometry

Geometry object.
Extends: Hashable
public static func == (lhs: Geometry, rhs: Geometry) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func intersects(
geometry: Geometry
) -> Bool
Allows you to define if the given geometry intersects with another geometry object.
Parameters
geometry
Geometry object to check for intersection. When calculating an intersection with IPointGeometry, elevation is ignored.
Returns
Properties
var kind
var bounds
Rectangle of minimum size containing geometry.
var minPoint
Minimal point of the bounding rectangle.
var maxPoint
Maximum point of the bounding rectangle.

GeometryMapObject

Geometric object of the map.
Extends: MapObject
Properties
var geometryChannel
StatefulChannel<Geometry>
Object geometry.
var geometry
Object geometry.
var objectAttributes
Getting map object properties to read and change.
var isVisibleChannel
StatefulChannel<Bool>
The current visibility flag of the object.
var isVisible
The current visibility flag of the object.
var isDraggableChannel
StatefulChannel<Bool>
Current object relocatability flag.
var isDraggable
Current object relocatability flag.
var animationSettings
Getting animation settings. Applied to objects of the `3D model` or `Directional model` type.
var bounds
Rectangle of minimum size containing geometry.

GeometryMapObjectBuilder

Sets properties and subsequently creating geometric objects.
Extends: Hashable
public static func == (lhs: GeometryMapObjectBuilder, rhs: GeometryMapObjectBuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init()
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setObjectAttribute(
name: String,
value: AttributeValue
) -> GeometryMapObjectBuilder
Sets a map object attribute.
Parameters
name
Name of the map object property.
value
Value of the map object property.
Returns
public func setObjectAttributes(
values: [String: AttributeValue]
) -> GeometryMapObjectBuilder
Sets map object properties.<br/>The method does not replace the entire set of object properties, i.e. if a property is missing in the values, but has already been added to the object earlier, it is not changed.
Parameters
values
String[ : ]
Set of “name”:“value” pairs for the added map object properties.
Returns
public func setGeometry(
geometry: Geometry
) -> GeometryMapObjectBuilder
Sets the geometry of a map object.
Parameters
public func setVisible(
visible: Bool
) -> GeometryMapObjectBuilder
Sets the visibility of a map object.
Parameters
public func setDraggable(
draggable: Bool
) -> GeometryMapObjectBuilder
Sets the ability to drag a map object.
Parameters
public func setUserData(
userData: Any
) -> GeometryMapObjectBuilder
Installs user data.<br/>User data is not used in any way in the SDK and is only returned to the user.
public func createObject() -> GeometryMapObject
Constructs a map object.

GeometryMapObjectSource

Spurce of geometric map objects.
Extends: Source
Methods
public func clusteringObjects(
position: CameraPosition
) -> [MapObject]
Gets the list of objects participating in clustering at the passed camera position. The list will contain both clusters and geometric objects.
Parameters
public func addObject(
item: GeometryMapObject
)
Adds an object to the source.
Parameters
public func addObjects(
objects: [GeometryMapObject]
)
Adds multiple objects to the source.
Parameters
public func removeObject(
item: GeometryMapObject
)
Deletes an object from the source.<br/>The deletion is asynchronous, thread-safe, the method can be used from any thread.
Parameters
public func removeObjects(
objects: [GeometryMapObject]
)
Removes multiple objects from the source.
Parameters
public func removeAndAddObjects(
objectsToRemove: [GeometryMapObject],
objectsToAdd: [GeometryMapObject]
)
Removes and adds objects to the source.
Parameters
objectsToRemove
objectsToAdd
public func clear()
Removes all objects from the source.
Properties
var objects
Gets all objects added to the source.
var sourceAttributes
Gets default property values for all objects added to the source (see IAttributes).

GeometryMapObjectSourceBuilder

Extends: Hashable
public static func == (lhs: GeometryMapObjectSourceBuilder, rhs: GeometryMapObjectSourceBuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
context: Context
)
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setSourceAttribute(
name: String,
value: AttributeValue
) -> GeometryMapObjectSourceBuilder
Sets a map object property common to the entire source (see ISource).
Parameters
name
Property name.
value
Property value.
Returns
public func setSourceAttributes(
values: [String: AttributeValue]
) -> GeometryMapObjectSourceBuilder
Sets map object properties common to the entire source.
Parameters
values
String[ : ]
Set of “name”:“value” pairs of properties.
Returns
public func addObject(
item: GeometryMapObject
) -> GeometryMapObjectSourceBuilder
Adds a geometric map object to the source.
Parameters
public func addObjects(
objects: [GeometryMapObject]
) -> GeometryMapObjectSourceBuilder
Adds multiple geometric map objects to the source.
Parameters
public func createSource() -> GeometryMapObjectSource
Creates a geometry object source.<br/>After calling this function, you cannot use GeometryMapObjectSourceBuilder to create a data source or to set data source parameters.

GeoPointRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: GeoPointRouteAttribute, rhs: GeoPointRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [GeoPointRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> GeoPointRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> GeoPointRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func calculateGeoPoint(
routePoint: RoutePoint
) -> SegmentGeoPoint?
Calculates a GeoPoint from a known RoutePoint.<br/>Operation complexity is O(log2(N)), where N = route_geometry.size()
Parameters
routePoint
Returns
SegmentGeoPoint?Calculated geographic coordinates and direction of the segment pointed to by the route_point parameter. If the route is empty or route_point is out of range, nil is returned.
public func calculateClosestPoint(
point: GeoPoint
) -> RoutePoint?
Calculates the nearest point on the route to the given geographic coordinates of a point.<br/>Operation complexity is O(N), where N = route_geometry.size()
Parameters
point
Point projected on the route.
Returns
RoutePoint?Nearest point on the route. If the route is empty of both range.first and range.second points are located before of after the route, nil is returned.
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries
var length
Route length.

GroupCheckableItem

Set of selectable elements working as a radio group.
Extends: CheckableItem
Properties
var items
Gets a set of group elements.

HttpCacheManager

HTTP cache management interface.
Extends: Hashable
public static func == (lhs: HttpCacheManager, rhs: HttpCacheManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func clear()
Clears contents of HTTP cache.
Properties
var currentSize
Current size of the HTTP cache.
var maxSize
Maximum size of the HTTP cache.

Image

Image.
Extends: Hashable
public static func == (lhs: Image, rhs: Image) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

IncompleteTextHandler

Auto-complete for user-entered text is suggested.
Extends: Hashable
public static func == (lhs: IncompleteTextHandler, rhs: IncompleteTextHandler) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var queryText
It is needed to substitute this text in the search string and let the user continue typing the query.

IndoorBuilding

Building with floor plans.
Extends: Hashable
public static func == (lhs: IndoorBuilding, rhs: IndoorBuilding) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var id
Identifier of a building with floor plans.
var defaultLevelIndex
Default floor index.
var levels
Information about all floors.
var activeLevelIndexChannel
StatefulChannel<UInt64>
Serial infex of the active floor in levels.
var activeLevelIndex
Serial infex of the active floor in levels.

IndoorControl

UI control of the floors in the building.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var focusedBuildingChangeCallback
(() -> ())?
Callback closure when changing the current building.
var intrinsicContentSize

IndoorControlModel

Model of the floors control.
Extends: Hashable
public static func == (lhs: IndoorControlModel, rhs: IndoorControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Parameters
map
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func isLevelMarked(
index: UInt64
) -> Bool
Whether to display a label at the floor with the specified index.
Parameters
index
Returns
Properties
var activeLevelIndexChannel
StatefulChannel<UInt64?>
Active floor index.
var activeLevelIndex
Active floor index.
var markedLevels
Set<LevelId>
Floors on which labels are displayed.
var levelNamesChannel
StatefulChannel<[String]>
Floor names. Blank if the map does not show a building with floor plans, or if the building has only one floor.
var levelNames
Floor names. Blank if the map does not show a building with floor plans, or if the building has only one floor.

IndoorDetector

Detector that determines if the user is indoors.
Extends: Hashable
public static func == (lhs: IndoorDetector, rhs: IndoorDetector) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var indoorChannel
StatefulChannel<Bool>
Channel that alerts you when the user is indoors.
var indoor
Channel that alerts you when the user is indoors.

IndoorManager

Gets the current building with floor plans.
Extends: Hashable
public static func == (lhs: IndoorManager, rhs: IndoorManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setIndoorState(
newState: IndoorManagerState
)
Switches the state (enabled/disabled) of the floor plan manager.
Parameters
Properties
var focusedBuildingChannel
StatefulChannel<IndoorBuilding?>
Gets the current building with floor plans.
var focusedBuilding
Gets the current building with floor plans.

IndoorRouteLevelsGetter

Allows you to get a set of floors through which the routes displayed on the map pass.
Extends: Hashable
public static func == (lhs: IndoorRouteLevelsGetter, rhs: IndoorRouteLevelsGetter) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Parameters
map
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var levelIdsChannel
StatefulChannel<Set<LevelId>>
var levelIds
Set<LevelId>

IndoorViewModel

ViewModel for the UI control of the traffic jam visibility.
Extends: ObservableObject

InputEvent

User input event.
Extends: Event
Properties
var timestamp
Obtains the registration time of the input event.

InstructionRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: InstructionRouteAttribute, rhs: InstructionRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [InstructionRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> InstructionRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> InstructionRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

IntRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: IntRouteAttribute, rhs: IntRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [IntRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> IntRouteEntry?
Find the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> IntRouteEntry?
Find the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries
All elements.

ItemMarkerInfo

Object identifier and coordinates.
Extends: Hashable
public static func == (lhs: ItemMarkerInfo, rhs: ItemMarkerInfo) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var objectId
var geoPoint
var floorInfo
var title
var rubricIds

LaneSignRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: LaneSignRouteLongAttribute, rhs: LaneSignRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> LaneSignRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [LaneSignRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

LocaleManager

Manager of locale settings of an application.
Extends: Hashable
public static func == (lhs: LocaleManager, rhs: LocaleManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func overrideLocales(
locales: [Locale]
)
Sets a list of application locales.
Parameters
locales
Properties
var localesChannel
StatefulChannel<[Locale]>
Application locales. If not set, locales set by operating system user are used.
var locales
Application locales. If not set, locales set by operating system user are used.
var systemLocalesChannel
StatefulChannel<[Locale]>
Gets locales provided by the operating system.
var systemLocales
Gets locales provided by the operating system.

LocationService

Class for working with a geolocation source installed during SDK initialization.
Extends: Hashable
public static func == (lhs: LocationService, rhs: LocationService) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
context: Context
)
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.<br/>This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var lastLocationChannel
StatefulChannel<Location?>
Channel that notifies about geolocation change.
var lastLocation
Channel that notifies about geolocation change.

Map

Map.
Extends: Hashable
public static func == (lhs: Map, rhs: Map) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setFontIconSizeMultiplier(
multiplier: Float
) throws
Sets the size multiplier for icons and fonts obtained from the application.<br/>Through set_font_icon_size_multiplier, you can set the size multiplier for icons and fonts without having to change the system multiplier and thus without affecting the size of icons and fonts in other applications.
Parameters
multiplier
Float
public func resetFontIconSizeMultiplier()
Resets the size multiplier for icons.
public func addSource(
source: Source
)
Adds a data source to the map.<br/>Happens asynchronously. The method can be called from any thread, thread-safe.
Parameters
source
public func removeSource(
source: Source
)
Removes a data source from the map.<br/>Happens asynchronously. The method can be called from any thread, thread-safe.
Parameters
source
public func getRenderedObjects(
centerPoint: ScreenPoint,
radius: ScreenDistance = ScreenDistance(value: 1)
) -> Future<[RenderedObjectInfo]>
Gets the displayed map objects projected on a circle on the screen.<br/>The list of objects is formed in the rendering order from late to early.
Parameters
centerPoint
Circle center.
radius
Circle radius.
Returns
RenderedObjectInfo<[]>
public func sublayerAttributes(
sublayerName: String
) -> Attributes
Gets sublayer attributes that were previously passed explicitly.
Parameters
sublayerName
Sublayer name.
Returns
public func setNavigation(_ isOn: Bool)
Sets the navigation flag. Affects how the map uses styles for the navigator mode.
Parameters
isOn
Properties
var id
Identifier of the map instance, unique within the process.
var camera
Gets a camera.
var indoorManager
Gets floor plan manager.
var dataLoadingStateChannel
StatefulChannel<MapDataLoadingState>
Notification of the status of data being loaded into the map.<br/>When tracking a camera position, the map state is always MapDataLoadingState::Loading.
var dataLoadingState
Notification of the status of data being loaded into the map.<br/>When tracking a camera position, the map state is always MapDataLoadingState::Loading.
var styleChannel
StatefulChannel<Style>
Gets the current map styles.
var style
Gets the current map styles.
var fontIconSizeMultiplierChannel
StatefulChannel<Float>
Icon and font size multiplier obtained from the application.
var fontIconSizeMultiplier
Float
Icon and font size multiplier obtained from the application.
var sources
Obtains map data sources.<br/>Happens asynchronously. The method can be called from any thread, thread-safe.
var mapVisibilityStateChannel
StatefulChannel<MapVisibilityState>
var mapVisibilityState
var attributes
Gets attributes.<br/>The following properties must be specified: “theme”=“day|night” “navigatorOn”=“true|false”
var interactiveChannel
StatefulChannel<Bool>
Interactivity of the map (a user can interact with the map). If interactivity is disabled, the map stops responding to input events obtained from the user. Also, the map controls (zooming in and moving to the current position) stop working. However, you can still work with the map via set_position/move. When switching to a non-interactive state, incomplete gestures are reset. By default, the map is interactive (interactive == true).<br/>The function can be called from any thread.
var interactive
Interactivity of the map (a user can interact with the map). If interactivity is disabled, the map stops responding to input events obtained from the user. Also, the map controls (zooming in and moving to the current position) stop working. However, you can still work with the map via set_position/move. When switching to a non-interactive state, incomplete gestures are reset. By default, the map is interactive (interactive == true).<br/>The function can be called from any thread.
var graphicsPresetHintChannel
StatefulChannel<GraphicsPreset?>
Gets the recommended graphic mode for the given device.
var graphicsPresetHint
Gets the recommended graphic mode for the given device.
var graphicsPresetChannel
StatefulChannel<GraphicsPreset?>
Gets the graphic mode. In case of nil, the recommended mode is used. If the recommended mode cannot be defined, the Normal one is used.
var graphicsPreset
Gets the graphic mode. In case of nil, the recommended mode is used. If the recommended mode cannot be defined, the Normal one is used.

MapLocationController

Controller for managing map positioning in the navigator.
Extends: Hashable
public static func == (lhs: MapLocationController, rhs: MapLocationController) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var mapToNorthOrientation
If forced map orientation to the north is enabled.

MapManager

Interface that allows you to add maps to and remove them from the navigator.
Extends: Hashable
public static func == (lhs: MapManager, rhs: MapManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func addMap(
map: Map
)
Parameters
map
public func removeMap(
map: Map
)
Parameters
map

MapMarkerViewModel

Extends: ObservableObject
public init(
id: UUID,
position: GeoPointWithElevation,
anchor: Anchor,
offsetX: CGFloat,
offsetY: CGFloat
)
Parameters
id
UUID
position
anchor
offsetX
offsetY

MapObject

Object on the map.
Extends: Hashable
public static func == (lhs: MapObject, rhs: MapObject) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var userData
Any
Random custom data attached to the object.

MapObjectManager

Extends: Hashable
public static func == (lhs: MapObjectManager, rhs: MapObjectManager) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
map: Map,
layerId: String? = nil
)
Create IMapObjectManager.
Parameters
map
layerId
ID of a layer with "Dynamic object" style type. Created objects will be stored in this layer so that you can define their order relative to other layers. If not set, objects are stored above other layers.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func withClustering(
map: Map,
logicalPixel: LogicalPixel,
maxZoom: Zoom,
clusterRenderer: SimpleClusterRenderer,
minZoom: Zoom = Zoom(value: 0),
layerId: String? = nil
) -> MapObjectManager
Create IMapObjectManager with data clustering. Only IMarker objects are clustered.
Parameters
map
logicalPixel
Minimum possible distance on the screen between marker anchor points on levels where clustering works.
maxZoom
The level from which all markers are visible.
clusterRenderer
Interface for specifying cluster display parameters.
minZoom
The level from which clusters are formed.
layerId
ID of a layer with "Dynamic object" style type. Created objects will be stored in this layer so that you can define their order relative to other layers. If not set, objects are stored above other layers.
Returns
public static func withGeneralization(
map: Map,
logicalPixel: LogicalPixel,
maxZoom: Zoom,
minZoom: Zoom = Zoom(value: 0),
layerId: String? = nil
) -> MapObjectManager
Create IMapObjectManager with data generalization. Only IMarker objects are generalized.
Parameters
map
logicalPixel
The minimum possible distance on the screen between marker anchor points on the levels where generalization works.
maxZoom
The level from which all markers are visible.
minZoom
The level from which the generalization works.
layerId
ID of a layer with "Dynamic object" style type. Created objects will be stored in this layer so that you can define their order relative to other layers. If not set, objects are stored above other layers.
Returns
public func addObject(
item: SimpleMapObject
)
Adds an object.
Parameters
public func removeObject(
item: SimpleMapObject
)
Removes an object.
Parameters
public func addObjects(
objects: [SimpleMapObject]
)
Adds objects.
Parameters
public func removeObjects(
objects: [SimpleMapObject]
)
Removes objects.
Parameters
public func removeAndAddObjects(
objectsToRemove: [SimpleMapObject],
objectsToAdd: [SimpleMapObject]
)
Removes and adds objects.
Parameters
objectsToRemove
objectsToAdd
public func removeAll()
public func clusteringObjects(
position: CameraPosition
) -> [MapObject]
Gets the list of objects participating in clustering at the transmitted camera position. The list will contain both clusters and markers.
Parameters
Properties
var isVisible
Overrides the visibility of all objects added to the manager instance. The value false here takes precedence over the visibility of an individual object.

MapObjectTappedCallback

Stores a callback function that is called when you click on the map.
public init(callback: @escaping (_ objectInfo: RenderedObjectInfo) -> Void)
public static func == (lhs: MapObjectTappedCallback, rhs: MapObjectTappedCallback) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func call(objectInfo: RenderedObjectInfo)
Parameters

MapRotationBeginEvent

Event of the beginning of the map rotation around the point.
Extends: Event
public convenience init(
inDirection: MapRotationDirection
)
Parameters
Properties

MapRotationEndEvent

Event of the end of the map rotation around the point.
Extends: Event
public convenience init()

MapScalingBeginEvent

Event of the beginning of scaling.
Extends: Event
public convenience init(
inDirection: MapScalingDirection
)
Parameters
Properties
var direction

MapScalingEndEvent

Event of the end of scaling.
Extends: Event
public convenience init()

MapShiftBeginEvent

Event of the map shifting start.
Extends: Event
public convenience init(
inDirection: MapShiftDirection
)
Parameters
Properties
var direction

MapShiftEndEvent

Event of the end of a map shift.
Extends: Event
public convenience init()

Marker

Point mark on the map that is of interest to the user.
public convenience init(
options: MarkerOptions
) throws
Parameters
Properties
var position
Gets marker location.
var icon
Obtains marker icon.
var anchor
Gets the anchor point of the marker icon.
var iconOpacity
Gets the transparency of the marker icon.
var text
Gets the marker caption.
var textStyle
Gets the marker caption style.
var isDraggable
Gets the marker relocatability flag.
var iconWidth
Gets the target marker width used for scaling.
var iconMapDirection
Angle of rotation of the marker on the map relative to the north direction, clockwise.
var animatedAppearance
Whether to animate the appearance.
var iconAnimationMode
Gets the animation mode for an animated marker.

MillisecondsRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: MillisecondsRouteAttribute, rhs: MillisecondsRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [MillisecondsRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> MillisecondsRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> MillisecondsRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func calculateDuration(
routePoint: RoutePoint
) -> TimeInterval
Parameters
routePoint
Returns
TimeInterval
public func calculateDuration(
fromRoutePoint: RoutePoint,
toRoutePoint: RoutePoint
) -> TimeInterval
Parameters
fromRoutePoint
toRoutePoint
Returns
TimeInterval
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries
var duration
Route duration.

Model

Navigator model intended to be displayed in the UI.
Extends: Hashable
public static func == (lhs: Model, rhs: Model) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func betterRouteResponse(
response: BetterRouteResponse
)
User response on the application of the suggested better route.
Parameters
Properties
var stateChannel
StatefulChannel<State>
Navigator state.
var state
Navigator state.
var locationChannel
StatefulChannel<Location?>
Current geoposition that the navigator is working with.
var location
Current geoposition that the navigator is working with.
var locationAvailableChannel
StatefulChannel<Bool>
Flag that indicates whether the current geoposition is used for navigation. After obtaining the geoposition, the navigator decides whether it is suitable for navigation (for example, if the geoposition has too large error, the navigator may decide that it is not suitable for navigation). If the geoposition is suitable for navigation, the navigator sets true in this channel, if not - false.<br/>Even if the value in this channel is false, the geoposition can be updated in the location_channel.
var locationAvailable
Flag that indicates whether the current geoposition is used for navigation. After obtaining the geoposition, the navigator decides whether it is suitable for navigation (for example, if the geoposition has too large error, the navigator may decide that it is not suitable for navigation). If the geoposition is suitable for navigation, the navigator sets true in this channel, if not - false.<br/>Even if the value in this channel is false, the geoposition can be updated in the location_channel.
var routeChannel
StatefulChannel<RouteInfo>
Route with maneuvers.<br/>In the free roam mode (StateChannel::FreeRoam), there is no route that the user is following. That is why the navigator represents the road section on that the user is currently moving as a route and returns it as the current route. This description of the road is not a full-fledged route, because it has no finish line and maneuvers.
var route
Route with maneuvers.<br/>In the free roam mode (StateChannel::FreeRoam), there is no route that the user is following. That is why the navigator represents the road section on that the user is currently moving as a route and returns it as the current route. This description of the road is not a full-fledged route, because it has no finish line and maneuvers.
var dynamicRouteInfoChannel
StatefulChannel<DynamicRouteInfo>
Traffic events and traffic data on the route or on the predicted part of the route for FreeRoam mode.
var dynamicRouteInfo
Traffic events and traffic data on the route or on the predicted part of the route for FreeRoam mode.
var routePositionChannel
StatefulChannel<RoutePoint?>
Current user position on the route.
var routePosition
Current user position on the route.
var exceedingMaxSpeedLimitChannel
StatefulChannel<Bool>
Flag of exceeding the maximum allowed speed.
var exceedingMaxSpeedLimit
Flag of exceeding the maximum allowed speed.
var betterRouteChannel
StatefulChannel<BetterRouteInfo?>
Signal about finding an alternative route with a shorter expected travel time. If the value in the channel is nil, it means that an alternative route is found or is no longer relevant.
var betterRoute
Signal about finding an alternative route with a shorter expected travel time. If the value in the channel is nil, it means that an alternative route is found or is no longer relevant.
var distance
Measurement<UnitLength>?
Distance from the current position to the end of the route.
var duration
Travel time from the current position to the end of the route.
var isFreeRoam

ModelData

Model data.
Extends: Hashable
public static func == (lhs: ModelData, rhs: ModelData) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.

ModelMapObject

Model on the map.
public convenience init(
options: ModelMapObjectOptions
) throws
Parameters
Properties
var position
Model location.
var modelData
Model data.
var opacity
Model opacity.
var size
Model size.
var mapDirection
Angle of the model rotation on the map relative to the north direction in degrees, counted clockwise.
var animationSettings
Animation settings.

MyLocationControlModel

Model of the control of the flyover to the user's location. The control consists of a button that, when pressed, moves the camera to the user's location. If no location is defined, nothing happens. The object methods must be called on the same thread.
Extends: Hashable
public static func == (lhs: MyLocationControlModel, rhs: MyLocationControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Parameters
map
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func onClicked()
Properties
var isEnabledChannel
StatefulChannel<Bool>
var isEnabled
var followStateChannel
StatefulChannel<CameraFollowState>
var followState

MyLocationMapObject

Geoposition marker.
Extends: MapObject
Methods
public func setModelData(
data: ModelData?
)
Sets model data.
Parameters
Properties
var animationSettings
Gets animation settings for reading and editing.
var objectAttributes
Gets map object properties for reading and editing.

MyLocationMapObjectSource

Source containing a geoposition marker.
Extends: Source
public convenience init(
context: Context,
controllerSettings: MyLocationControllerSettings = MyLocationControllerSettings(),
markerType: MyLocationMapObjectMarkerType = MyLocationMapObjectMarkerType.model
)
Create a geopositioning marker source.
Parameters
Properties
var item
Get geo-positioning marker.

MyLocationMapObjectSourceProvider

Provider of the geolocation marker source.
Extends: Hashable
public static func == (lhs: MyLocationMapObjectSourceProvider, rhs: MyLocationMapObjectSourceProvider) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var myLocationMapObjectSource
Source that contains the geolocation marker.
Interface for managing map tracking of the geopositioning marker in the navigator.
Extends: Hashable
public static func == (lhs: NavigationFollowController, rhs: NavigationFollowController) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setFollow(
follow: Bool
)
Immediately enables or disables the map tracking mode for the geopositioning marker.
Parameters
follow
Properties
var followReturnDelay
Timeout after which the map will automatically return to Geoposition Marker Tracking mode after the user has moved it. 0 - automatic return to Geoposition Marker tracking mode is disabled.
var cameraBehaviour
Mode of the camera following the geolocation marker in the navigator.
Extends: UIControl
Root public interface of the navigator.
Extends: Hashable
public static func == (lhs: NavigationManager, rhs: NavigationManager) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
platformContext: Context
) throws
Navigator API entry point, used in the SDK by default.
Parameters
platformContext
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func start() throws
public func start(
routeBuildOptions: RouteBuildOptions,
trafficRoute: TrafficRoute? = nil
) throws
Starts the route guidance.
Parameters
routeBuildOptions
Parameters with which the navigator will rebuild the route.
trafficRoute
Route on which tracking is started. If not set, the navigator builds a route from the current position.
public func startSimulation(
routeBuildOptions: RouteBuildOptions,
trafficRoute: TrafficRoute
) throws
Starts the simulation of route guidance.
Parameters
routeBuildOptions
Parameters with which the navigator will rebuild the route.
trafficRoute
Route guidance that triggers the simulation.
public func stop()
Stops the navigator operation.
Properties
var uiModel
Navigator model intended to be displayed in the UI.
var indoorDetector
Navigates indoors.
var mapFollowController
Controls the automatic return of the map to track the geo-position marker.
var mapLocationController
Controller for managing map positioning in the navigator.
var mapManager
Navigator map manager.
var zoomFollowSettings
Settings of map scaling during the guidance mode.
var routeMapSettings
Route display settings on the map.
var routeSourceSettings
Settings for the source used to display the route on the map.
var routeMapObjectsProvider
Provider of route objects on the map.
var simulationSettings
Route guidance simulation settings.
var voiceSelector
Manages voice packets in the current navigator session.
var exceedSpeedLimitSettings
Settings for speeding detection.
var dynamicRouteInfoSettings
Settings for getting and updating dynamic route data.
var soundNotificationSettings
Settings for sound alerts in the current navigator session.
var freeRoamSettings
Settings for driving without a route in free roam mode.
var alternativeRoutesProviderSettings
Settings of finding alternate routes in the guidance mode.
var alternativeRouteSelector
Alternative route selection.
var myLocationMapObjectSourceProvider
Provider of the geolocation marker source.
var routeRebuilder
Controller for searching for a new route when leaving the current route.
var freeRoamSelector
Controller for switching the navigator to `FreeRoam` mode if the route rebuilds too long.
Voice to be used in the navigator.
Extends: Hashable
public static func == (lhs: NavigationVoice, rhs: NavigationVoice) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
ViewModel of the SwiftUI control for changing the map scale in the navigator.
Extends: ObservableObject
Methods
public func onStartZoom(button: ZoomControlButton)
Parameters
public func onStopZoom(button: ZoomControlButton)
Parameters
public init(map: Map, followMode: NavigatorFollowMode, driveType: NavigatorFollowDriverType = .vehicle)
Parameters
Methods
public func toggleFollowMode()
Switches the follow mode to the next available one.
public func setFollowMode(_ mode: NavigatorFollowMode)
Parameters
public func addFollowModeObserver(_ observer: @escaping FollowModeObserver) -> INavigatorFollowManagerObservation
Parameters
observer
FollowModeObserver
Returns
Properties

NewValuesNotifier

Object interface that reports that there is a change in one of the parameters.
Extends: Hashable
public static func == (lhs: NewValuesNotifier, rhs: NewValuesNotifier) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func sendNotification()
Must be called to report a parameter update.

ObstacleInfoRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: ObstacleInfoRouteAttribute, rhs: ObstacleInfoRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [ObstacleInfoRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> ObstacleInfoRouteEntry?
Find the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> ObstacleInfoRouteEntry?
Find the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

ObstacleInfoRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: ObstacleInfoRouteLongAttribute, rhs: ObstacleInfoRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> ObstacleInfoRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [ObstacleInfoRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

Package

Package. For the convenience of working (installing, updating, deleting), data in 2GIS SDK is grouped into sets according to its functional and logical purpose. A set of grouped data is called a package. Within a single package, the functional purpose of the data is unique. However, data sets of packages with the same functionality may overlap, i.e. data from several packages may have common files. During operations with a group of such packages, the shared data will be processed (downloaded, unpacked, deleted) only once.
Extends: Hashable
public static func == (lhs: Package, rhs: Package) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func install()
Start the package installation or update.
public func uninstall()
Start the package removal.
Properties
var id
Stable technical package ID.
var infoChannel
StatefulChannel<PackageInfo>
Package information.
var info
Package information.
var progressChannel
StatefulChannel<UInt8>
Progress of the package installation or update operation in percent. If the package is not installed locally, the channel contains a value of 0. If the package is installed locally, regardless of whether the data is up to date and compatible with the current SDK version, the channel contains the value 100. If the package is in the installation or upgrade phase, the channel contains an updatable value in the range [0, 100].
var progress
Progress of the package installation or update operation in percent. If the package is not installed locally, the channel contains a value of 0. If the package is installed locally, regardless of whether the data is up to date and compatible with the current SDK version, the channel contains the value 100. If the package is in the installation or upgrade phase, the channel contains an updatable value in the range [0, 100].

PackageManager

Interface for centralized management of packages:
Extends: Hashable
public static func == (lhs: PackageManager, rhs: PackageManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func checkForUpdates()
Forced check for updates.
Properties
var autoupdateEnabled
Status of auto update: enabled/disabled.
var packagesChannel
StatefulChannel<[Package]>
Channel with a list of all known packages. Refreshed if information about at least one of the packages is changed, or if the list composition is changed.
var packages
Channel with a list of all known packages. Refreshed if information about at least one of the packages is changed, or if the list composition is changed.

PackedMapState

Serialized map state.
Extends: Hashable
public static func == (lhs: PackedMapState, rhs: PackedMapState) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func of(
position: CameraPosition,
showTraffic: Bool,
behaviour: CameraBehaviour
) -> PackedMapState
Gets map status.
Parameters
position
Camera position.
showTraffic
Traffic display state on the map.
behaviour
Camera tracking mode.
Returns
PackedMapStateSerialized map state.
public static func fromBytes(
data: Data
) throws -> PackedMapState
Gets map status.
Parameters
data
Data
Map state as a sequence of bytes.
Returns
PackedMapStateSerialized map state.
public static func fromMap(
map: Map
) -> PackedMapState
Gets map status.
Parameters
map
Map the state of which is to be obtained.
Returns
PackedMapStateSerialized map state.
public func toBytes() -> Data
Represents map state as a sequence of bytes.
Returns
Data
Properties
var showTraffic
Gets the state of the traffic display on the map.
var cameraPosition
Obtains the camera position.
var cameraBehaviour
Gets the camera tracking mode.

PackedNavigationState

Auxiliary object for serialization and deserialization of the navigation state.
Extends: Hashable
public static func == (lhs: PackedNavigationState, rhs: PackedNavigationState) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func of(
trafficRoute: TrafficRoute,
routeSearchOptions: RouteSearchOptions? = nil,
finishPoint: RouteSearchPoint? = nil,
routePosition: RoutePoint? = nil,
state: State = State.disabled
) -> PackedNavigationState
Creates an object from the listed elements.
Parameters
trafficRoute
routeSearchOptions
finishPoint
routePosition
state
Returns
public static func fromBytes(
data: Data
) throws -> PackedNavigationState
Deserialization of the navigation state. Invalid elements in the saved state are skipped or replaced by default values.
Parameters
data
Data
Returns
public static func fromModel(
model: Model
) -> PackedNavigationState
Creates an object from the navigator model.
Parameters
public func toBytes() -> Data
Serialization of the navigation state.
Returns
Data
Properties
var trafficRoute
var finishPoint
Finish point of the route.
var routeSearchOptions
Route building options.
var routePosition
Position on the route.
var state
Current navigation state.

PackedSearchQuery

Auxiliary object for serializing and deserializing a search query.
Extends: Hashable
public static func == (lhs: PackedSearchQuery, rhs: PackedSearchQuery) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromBytes(
data: Data
) throws -> PackedSearchQuery
Deserialization of a search query.
Parameters
data
Data
Returns
public static func fromSearchQuery(
searchQuery: SearchQuery
) -> PackedSearchQuery
Parameters
public func toBytes() -> Data
Returns
Data
public func toSearchQuery() -> SearchQuery
Properties
var queryText
Query text. For some queries (e.g., revealing a rubric from a suggest), there is no text because the query stores identifiers, and the behavior is different than searching the text of a suggest element.
var orgId
Organization identifier.
var rubricIds
Rubrics identifiers.
var objectIds
Objects identifiers.
var buildingId
Building identifier.
var spatialRestriction
Geometry limiting the search area.
var areaOfInterest
Rectangular area of interest.
var allowedResultTypes
Restriction on the object types returned by the search.
var pageSize
Int32
The size of the output page.
var directoryFilter
Information about active filters.
var sortingType
Type of result sorting.
var geoPoint
Center of the search area.
var radius
Search radius in meters.
var locale
Search query locale.

Page

Page with search results.
Extends: Hashable
public static func == (lhs: Page, rhs: Page) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func fetchPrevPage() -> Future<Page?>
Gets the previous page of results.
public func fetchNextPage() -> Future<Page?>
Gets the next page of results.
Properties
var items
The non-empty set of directory objects of this page.

ParkingControlModel

Model of the parking lots control.<p>This interface is thread-safe.
Extends: Hashable
public static func == (lhs: ParkingControlModel, rhs: ParkingControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
map: Map
)
Function to create a model for the parking lots control.
Parameters
map
Map.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func toggleParkingsVisibility()
Action upon tapping the UI control. Switches the parking lots visibility on the map.
Properties
var isEnabledChannel
StatefulChannel<Bool>
State of the parking lots visibility control. true if parking lots are visible.
var isEnabled
State of the parking lots visibility control. true if parking lots are visible.

PerformSearchHandler

Looking for a specific set of objects is suggested.
Extends: Hashable
public static func == (lhs: PerformSearchHandler, rhs: PerformSearchHandler) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var searchQuery
Query to run through a search engine.

PointGeometry

Point.
Extends: Geometry
public convenience init(
point: GeoPoint
)
Parameters
public convenience init(
point: GeoPointWithElevation
)
Parameters
Properties

Polygon

Polygon on the map.
public convenience init(
options: PolygonOptions
) throws
Creates a polygon based on parameters.
Parameters
Properties
var contours
var color
var strokeWidth
var strokeColor

PolygonGeometry

Polygon.
Extends: Geometry
public convenience init(
contours: [[GeoPoint]]
)
Parameters
contours
Properties
var contours

Polyline

Polyline on the map.
public convenience init(
options: PolylineOptions
) throws
Parameters
Properties
var points
var width
var color
var erasedPart
var dashedPolylineOptions
Getting dashed polyline parameters.
var gradientPolylineOptions
Gets gradient polyline parameters.

PolylineGeometry

Polyline.
Extends: Geometry
public convenience init(
points: [GeoPoint]
)
Parameters
Properties
var points

Projection

Projection.
Extends: Hashable
public static func == (lhs: Projection, rhs: Projection) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func screenToMap(
point: ScreenPoint
) -> GeoPoint?
Calculates a map point at the specified screen point.<br/>The function returns an empty value if the specified screen point is outside the map projection.
Parameters
public func mapToScreen(
point: GeoPoint
) -> ScreenPoint?
Parameters
public func mapToScreen(
point: GeoPointWithElevation
) -> ScreenPoint?
Calculates a screen point corresponding to the specified map point with elevation.<br/>The function returns an empty value:
Parameters
public func screenToMapClipped(
point: ScreenPoint
) -> GeoPoint
Calculates the map point closest to the projection of the specified screen point.
Parameters
public func distanceOnMap(
fromPoint: ScreenPoint,
toPoint: ScreenPoint
) -> Meter?
Calculates the distance in meters between points on the map that correspond to the specified points on the screen.<br/>Returns an empty value if one or both points on the screen are outside the map projection.
Parameters
fromPoint
toPoint
Returns
public func distanceOnScreen(
fromGeoPoint: GeoPoint,
toGeoPoint: GeoPoint
) -> LogicalPixel?
Calculates the distance in pixels between points on the screen that correspond to the specified points on the map.<br/>Returns an empty value if one or both points on the map are:<ul><li>invalid values (`latitude` is outside the range `-90; 90` or `longitude` is outside the range `-180; 180`)</li><li>above the projection plane of the map on the screen</li><li>far beyond the screen, and the type overflow occurs</li></ul>
Parameters
fromGeoPoint
toGeoPoint
Returns

PublicTransportTransferRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: PublicTransportTransferRouteLongAttribute, rhs: PublicTransportTransferRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> PublicTransportTransferRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [PublicTransportTransferRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RangeWidget

Widget for presenting a continuous or discrete set of sorted values.
Extends: Widget
Methods
public func setValues(
min: Double,
max: Double
)
Sets currently selected values.
Parameters
min
Current minimum value.
max
Current maximum value.
Properties
var range
Gets a set of sorted values.

RasterTileSource

Source that gets raster tiles.
Extends: Source
public convenience init(
context: Context,
sublayerName: String,
sourceTemplate: RasterUrlTemplate
)
Creates a source that gets raster tiles.
Parameters
context
Context.
sublayerName
Name to be used during objects generation. This name must be specified in the filter condition of a raster style layer for the db_sublayer attribute. Example: ["match", <a href="#">get,db_sublayer</a>, <a href="#">NAME</a>, true, false] For details, see the specification: https://docs.2gis.com/en/mapgl/stylespecification
sourceTemplate
Template for requesting tiles.
Methods
public func setOpacity(
opacity: Opacity
)
Sets the transparency value of a raster tile.
Parameters
opacity

Remover

Object for removing user-created content.
Extends: Hashable
public static func == (lhs: Remover, rhs: Remover) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func remove() -> Future<ActionResult>
Removing content.<br/>The action is available only for the content authored by the user.
Returns
Future<>

RoadEvent

Road event.
Extends: Hashable
public static func == (lhs: RoadEvent, rhs: RoadEvent) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func photos() -> Future<[RoadEventPhoto]>
Event photo.
Properties
var type
Event type.
var id
Event identifier.
var name
Localized event name.
var author
Information about the user who added the event.
var timestamp
Date?
Event creation timestamp.
var location
Event coordinates.
var description
User description of the road event.
var cameraInfo
Camera information.<br/>Available for events of the “Camera” type only.
var schedule
Schedule.<br/>Currently only available for road closures (not always).
var lanes
Lanes affected by the event.<br/>Currently can be specified for custom events only.
var availableActions
List of available actions with the event.
var remover
Obtains an object to delete an event.

RoadEventAction

Event action.
Extends: Hashable
public static func == (lhs: RoadEventAction, rhs: RoadEventAction) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func `set`() -> Future<ActionResult>
Applying an action (for example, adding a “like” mark or confirming an event).<br/>There are opposite actions, for example, “like” and “dislike”. If both of such actions are available for an event, calling the method resets the application of the opposite action so that one cannot “like” and “dislike” at the same time.
Returns
Future<>
public func reset() -> Future<ActionResult>
Cancels an action (for example, resetting a “like” mark or revoking event confirmation).<br/>There are opposite actions, for example, “like” and “dislike”. If both of such actions are available for an event, calling the method does not cause the application of the opposite action.
Returns
Future<>
Properties
var type
Type of action.
var name
Localized name of the action.
var infoChannel
StatefulChannel<RoadEventActionInfo>
Action information.
var info
Action information.

RoadEventManager

Object for creating transport events.
Extends: Hashable
public static func == (lhs: RoadEventManager, rhs: RoadEventManager) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
context: Context
)
Gets an object to create road events.
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func createAccident(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Creating a “Road accident” event.
Parameters
location
Event location.
lanes
Lanes of the road affected by the event.
description
Custom event description.
Returns
Future<>
public func createCamera(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Creates a “Camera” event.
Parameters
location
Event location.
description
Custom event description.
Returns
Future<>
public func createRoadRestriction(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Creates a “Road closure” event.
Parameters
location
Event location.
description
Custom event description.
Returns
Future<>
public func createComment(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Creates a “Comment” event.
Parameters
location
Event location.
description
Custom event description.
Returns
Future<>
public func createOther(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Creates an “Other” event.
Parameters
location
Event location.
lanes
Lanes of the road affected by the event.
description
Custom event description.
Returns
Future<>
public func createRoadWorks(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Creates a “Road works” event.
Parameters
location
Event location.
lanes
Lanes of the road affected by the event.
description
Custom event description.
Returns
Future<>

RoadEventMapObject

“Road event” map object.
Extends: MapObject
Properties
var id
var event
Obtains a road event.
var animationSettings
Gets settings of road event animation for reading and editing.

RoadEventMapObjectRouteAttribute

Container that describes a point route attribute. Each element is stored as a route point, in which this element is located, and the value of the element.
Extends: Hashable
public static func == (lhs: RoadEventMapObjectRouteAttribute, rhs: RoadEventMapObjectRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadEventMapObjectRouteEntry]
Elements that fit into the [begin, end) interval.
Parameters
public func findNearBackward(
point: RoutePoint
) -> RoadEventMapObjectRouteEntry?
Find the closest element with the position <= point.<p>Operation complexity: log2(N), where N = size.</p>
Parameters
public func findNearForward(
point: RoutePoint
) -> RoadEventMapObjectRouteEntry?
Find the closest element with the position <= point.<p>Operation complexity: log2(N), where N = size.</p>
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements are missing.
var first
var last
var entries

RoadEventPhoto

Photo of a road event.
Extends: Hashable
public static func == (lhs: RoadEventPhoto, rhs: RoadEventPhoto) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func previewUrl(
desiredSize: ScreenSize
) -> String
URL of a photo preview.
Parameters
desiredSize
Returns
public func report() -> Future<ActionResult>
Sends a complaint about a photo.<br/>A complaint about your photo will not be processed.
Returns
Future<>
Properties
var photoUrl
URL of the full-size photo.
var author
Information about the user who added the photo.
var timestamp
Date
Timestamp.
var remover
Obtaining an object to delete a photo.

RoadEventRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: RoadEventRouteAttribute, rhs: RoadEventRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadEventRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> RoadEventRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> RoadEventRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
var entries

RoadEventSource

Interface of the class that controls the display of road events (tUGC) on the map.
Extends: Source
public convenience init(
context: Context
)
Creates a source to display road events on the map.
Parameters
context
Methods
public func setHighlighted(
directoryObjectIds: [DgisObjectId],
highlighted: Bool
)
Parameters
directoryObjectIds
IDs of changeable events. Can be obtained from RoadEventMapObject.
highlighted
Properties
var visibleEvents
Gets the current event categories provided by this source.
var highlightedObjectsChannel
StatefulChannel<[DgisObjectId]>
var highlightedObjects

RoadMacroGraph

Global road graph package, used to build a passage between two loaded offline territories.
Extends: Package

RoadRuleRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: RoadRuleRouteLongAttribute, rhs: RoadRuleRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> RoadRuleRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadRuleRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RoadSubtypeRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: RoadSubtypeRouteLongAttribute, rhs: RoadSubtypeRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> RoadSubtypeRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadSubtypeRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RoadSurfaceRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: RoadSurfaceRouteLongAttribute, rhs: RoadSurfaceRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> RoadSurfaceRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadSurfaceRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RoadTypeRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: RoadTypeRouteLongAttribute, rhs: RoadTypeRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> RoadTypeRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoadTypeRouteLongEntry]
Elements partially or completely covered by the [begin, end] range.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RotateMapToNorthEvent

Event of turning a map northward.
Extends: Event
public convenience init()

Route

Describes a route. A route is a set of attributes, each of which is a container of type RouteAttribute or RouteLongAttribute that stores route attribute elements. Route attributes are classified into point attributes and extended attributes. Point attributes (e.g., geometry points or speed bumps) are specified as a pair of a RoutePoint and an attribute value. Extended attributes (such as roadway widths or speed limits) are specified as a pair of a RoutePoint that indicates the start of the attribute and an attribute value. A terminator is placed at the end of the route. For example, if the width of the roadway is specified as a set of pairs {{0m, 3m}, {10m, 7m}, {20m, 5m}, {30m, 0m}}, then for the first 10 meters of the route the roadway is 3 meters wide; at the interval [10m., 20m.) the width is 7 meters; from 20m to the end of the route - 5 meters.
Extends: Hashable
public static func == (lhs: Route, rhs: Route) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var geometry
Route geometry. <br/>The RoutePoint of geometry points is not guaranteed to match the RoutePoint of other attribute elements. To calculate the geographic coordinate of an attribute element, you do not need to search the geometry for an element whose RoutePoint matches the RoutePoint of the attribute element. Use the calculate_geo_point function instead.
var instructions
Instructions that must be followed to move along the route.
var intermediatePoints
Intermediate points of a route. The route may not pass directly through an intermediate point, but next to it. The attribute value stores the coordinate where the intermediate point was set, the key stores the coordinate of the projection of the intermediate point on the route.
var altitudes
Elevations on the route.
var badRoads
Bad road (there are bumps and potholes on the road that prevent passage).
var obstacles
Obstacles on a route.
var roadNames
Names of roads/streets.
var settlements
Indication that a section of the route passes through a populated area.
var transportTypes
Mode of transport for which a section of the route is built.
var cameras
var carriagewaysWidth
Width of the roadway in meters. 0 - width unknown.
var exitSigns
var humps
Artificial bumps.
var lanes
var levels
var maxSpeedLimits
Maximum permissible speed limits.<br/>0 - speed limit is unknown.
var roadRules
var roadSubtypes
Additional description to the type of road on which the route runs.
var roadSurfaces
var roadTypes
Type of road the route takes.
var tolls
Sections of the route on toll roads.
var truckData
Indication of the presence or absence of data for freight navigation.
var truckPassZoneIds
Passing zones for trucks.
var truckRestrictedAreas
Indication of the validity of the no-traffic sign.
var vehicleRestrictedAreas
Indication of a sign prohibiting the passage of any motor vehicle (overlap).
var bicycleLanes
Indication of a dedicated cycle lane.
var trafficLights
Indication of traffic lights.
var immersiveData
var publicTransportTransfers
Description of how to travel by public transport between transfer points.

RouteEditor

Interface for the route editor. The route editor receives start and end points of the route, builds routes and notifies about their updates and realignments via channels.<br/>All methods of this interface are called from a single thread.
Extends: Hashable
public static func == (lhs: RouteEditor, rhs: RouteEditor) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
context: Context
)
Creates a route editor.
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func setRouteParams(
routeParams: RouteEditorRouteParams
)
Sets the parameters of the route editor. Starts the search for a new route according to the specified parameters.
Parameters
public func setActiveRouteIndex(
index: RouteIndex
)
Sets the active route index.
Parameters
Properties
var routesInfoChannel
StatefulChannel<RouteEditorRoutesInfo>
Channel through which you can monitor updates of route information operated by the editor.
var routesInfo
Channel through which you can monitor updates of route information operated by the editor.
var activeRouteIndexChannel
StatefulChannel<RouteIndex?>
Channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.
var activeRouteIndex
Channel through which you can monitor updates of the active route index. If there are no routes, nil is placed in this channel.

RouteEditorSource

Interface of the class managing the display of routes on the map.
Extends: Source
public convenience init(
context: Context,
routeEditor: RouteEditor,
activeDisplayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
inactiveDisplayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
activeCalloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
inactiveCalloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
activePermanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil,
inactivePermanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil
)
Function to create IRouteEditorSource.
Parameters
Methods
public func setRoutesVisible(
visible: Bool
)
Enables or disables the display of routes on the map.
Parameters
visible
public func setShowOnlyActiveRoute(
showOnlyActiveRoute: Bool
)
Displays all routes (false) or only the currently active one (true) on the map.
Parameters
showOnlyActiveRoute
public func setPassedDistanceVisualization(
passedDistanceVisualization: RouteMapObjectPassedDistanceVisualization
)
Changes the way to visualize the distance traveled along the route.
Parameters
Properties
var objects
Objects of the route on the map.
var routeSourceSettings
Settings for displaying maneuvers on the route.
var activeDisplayFlags
Flags to display the active route. See IRouteMapObject::display_flags.
var inactiveDisplayFlags
Flags to display inactive routes. See IRouteMapObject::display_flags.
var activeCalloutLabelFlags
Flags that enable the display of the contents of the active route bubbles. See IRouteMapObject::callout_label_flags.
var inactiveCalloutLabelFlags
Flags that enable the display of the contents of inactive routes. See IRouteMapObject::callout_label_flags.
var calloutLabelDisplayMode
Mode of displaying the contents of route bubbles. See IRouteMapObject::callout_label_display_mode.
var activePermanentDisplayFlags
Flags that prevent components of the active route from being hidden on the map. See IRouteMapObject::permanent_display_flags.
var inactivePermanentDisplayFlags
Flags that prevent components of inactive routes from being hidden on the map. See IRouteMapObject::permanent_display_flags.

RouteExitSignRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: RouteExitSignRouteAttribute, rhs: RouteExitSignRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RouteExitSignRouteEntry]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> RouteExitSignRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> RouteExitSignRouteEntry?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RouteInfoCalloutMapObject

Bubble object with information about the route length and/or travel time on the map.
Extends: MapObject
Properties
var route
Route, part of which this bubble object represents.
var routeIndex
Route index.
var routePoint
Position on the route at which the bubble is located.

RouteLevelInfoRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: RouteLevelInfoRouteLongAttribute, rhs: RouteLevelInfoRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> RouteLevelInfoRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RouteLevelInfoRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

RouteMapObject

Route object on the map.
Extends: MapObject
public convenience init(
trafficRoute: TrafficRoute,
isActive: Bool,
index: RouteIndex,
displayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
calloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
permanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil
)
Parameters
Properties
var displayFlagsChannel
StatefulChannel<RouteMapObjectDisplayFlagOptionSet?>
Set of flags for displaying different parts of the route. If not specified, the display logic based on the activity status of the route is used.
var displayFlags
Set of flags for displaying different parts of the route. If not specified, the display logic based on the activity status of the route is used.
var permanentDisplayFlagsChannel
StatefulChannel<RouteMapObjectPermanentDisplayFlagOptionSet?>
Set of flags to prevent different parts of the route from being hidden from the map when you update the distance traveled along the route. If not set, all route elements that fall within the non-displayed part of the route are hidden from the map when you update the distance traveled along the route.
var permanentDisplayFlags
Set of flags to prevent different parts of the route from being hidden from the map when you update the distance traveled along the route. If not set, all route elements that fall within the non-displayed part of the route are hidden from the map when you update the distance traveled along the route.
var isActiveChannel
StatefulChannel<Bool>
Route activity status.
var isActive
Route activity status.
var route
var routeIndex
Route index in the route editor.
var passedDistanceChannel
StatefulChannel<RouteDistance>
Distance traveled along the route.
var passedDistance
Distance traveled along the route.
var passedDistanceVisualizationChannel
StatefulChannel<RouteMapObjectPassedDistanceVisualization>
var passedDistanceVisualization
var calloutPositionChannel
StatefulChannel<[CalloutMapPosition]>
Route bubble position.
var calloutPosition
Route bubble position.
var calloutLabelFlagsChannel
StatefulChannel<RouteMapObjectCalloutLabelFlagOptionSet?>
Set of flags to display the contents of the route's bubble. If not set, then for the active route both route time and its length are displayed, and only the travel time is displayed for inactive routes.
var calloutLabelFlags
Set of flags to display the contents of the route's bubble. If not set, then for the active route both route time and its length are displayed, and only the travel time is displayed for inactive routes.
var calloutLabelDisplayModeChannel
StatefulChannel<RouteMapObjectCalloutLabelDisplayMode>
Mode of displaying values in the route's bubbles. By default, values are displayed as absolute magnitudes.
var calloutLabelDisplayMode
Mode of displaying values in the route's bubbles. By default, values are displayed as absolute magnitudes.
var lanesCalloutPositionsChannel
StatefulChannel<[LanesCalloutMapPosition]>
Lane bubbles positions. Only actual positions are returned for the current distance traveled along the route and only if the source, in which the object is placed, is working in navigation mode.
var lanesCalloutPositions
Lane bubbles positions. Only actual positions are returned for the current distance traveled along the route and only if the source, in which the object is placed, is working in navigation mode.
var roadEventObjectsChannel
StatefulChannel<RoadEventMapObjectRouteAttribute>
Road event objects along the route that are displayed on the map.
var roadEventObjects
Road event objects along the route that are displayed on the map.

RouteMapObjectSource

Source of the route objects on the map.
Extends: Source
public convenience init(
context: Context,
routeVisualizationType: RouteVisualizationType = RouteVisualizationType.normal
)
Creates IRouteMapObjectSource.
Parameters
context
routeVisualizationType
Methods
public func addObject(
item: RouteMapObject
)
Adds a route object to the source.
Parameters
public func removeObject(
item: RouteMapObject
)
Removes a route object from the source.
Parameters
public func replaceObject(
oldObject: RouteMapObject,
newObject: RouteMapObject
)
Replaces one route object with the other. Unlike deleting or adding route objects by calling remove_object and add_object sequentially, replacing one route with the other is done atomically: the old route is deleted and the new one appears on the map simultaneously.<br/>If the old route is not found in source, the call is equivalent to add_object.
Parameters
public func clear()
Removes all route objects from the source.
public func replaceAllObjects(
objects: [RouteMapObject]
)
Replaces all the objects previously added to the source with the passed list of objects. Unlike deleting and adding objects one by one, replacement is done atomically - old routes are deleted and new routes appear on the map at the same time.
Parameters
Properties
var objects
Route objects.
var routeSourceSettings
Sets up the display of objects in the source.

RouteMapObjectsProvider

Interface for getting route objects on the map.
Extends: Hashable
public static func == (lhs: RouteMapObjectsProvider, rhs: RouteMapObjectsProvider) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var objectsChannel
StatefulChannel<[RouteMapObject]>
Route objects on the map.
var objects
Route objects on the map.

RouteMapSettings

Route display settings on the map.
Extends: Hashable
public static func == (lhs: RouteMapSettings, rhs: RouteMapSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var onRouteDisplayFlags
Route display flags on the map for route guidance mode. All flags are enabled by default, except the InactiveFloors flag.
var freeRoamDisplayFlags
Route display flags on the map for free roam mode. The flags Cameras, Humps, Accidents, RoadWorks, Comments, RoadRestrictions, OtherEvents are enabled by default.
var onRoutePermanentDisplayFlags
Flags that prevent various route components from hiding from the map when you update the distance traveled along the route for route guidance mode. By default, all route elements are hidden.
var freeRoamPermanentDisplayFlags
Flags that prevent various route components from hiding from the map when you update the distance traveled along the route for free roam mode. By default, all route elements are hidden.

RoutePointMapObject

Point object that is part of the route on the map ( for example, the start or end point of the route).
Extends: MapObject
Properties
var route
Route part of which this point object represents.
var routeIndex
Route index.
var kind
Type of route point object.
var routePoint
Position on the route that corresponds to this point object.
var pointChannel
StatefulChannel<GeoPoint>
Geographic coordinates in which this point object is located.
var point
Geographic coordinates in which this point object is located.

RouteRebuilder

Controller for searching for a new route when leaving the current route.
Extends: Hashable
public static func == (lhs: RouteRebuilder, rhs: RouteRebuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.
Properties
var enabled

RouteSourceSettings

Settings of the route source.
Extends: Hashable
public static func == (lhs: RouteSourceSettings, rhs: RouteSourceSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func getLargeScaleMergeDistanceMeters(
transportType: TransportType
) -> Float
Minimum allowable distance in meters between consecutive maneuver arrows for the large scale. If the distance is less than the specified, the arrows are combined.
Parameters
transportType
Type of transport for which the distance is requested.
Returns
Float
public func setLargeScaleMergeDistanceMeters(
distance: Float,
transportType: TransportType
)
Sets the minimum allowable distance in meters between consecutive maneuver arrows for the large scale.
Parameters
distance
Float
Distance in meters.
transportType
Type of vehicle for which the distance is set.
public func getSmallScaleMergeDistanceMeters(
transportType: TransportType
) -> Float
Minimum allowable distance in meters between consecutive maneuver arrows for the small scale. If the distance is less than the specified, the arrows are combined.
Parameters
transportType
Type of transport for which the distance is requested.
Returns
Float
public func setSmallScaleMergeDistanceMeters(
distance: Float,
transportType: TransportType
)
Sets the minimum allowable distance in meters between consecutive maneuver arrows for the small scale.
Parameters
distance
Float
Distance in meters.
transportType
Type of vehicle for which the distance is set.
public func getLargeScaleCrossroadsOffsetMeters(
transportType: TransportType
) -> Float
Offset in meters from the intersection point to the beginning and end of the maneuver arrow for the large scale.
Parameters
transportType
Type of vehicle for which the offset is requested.
Returns
Float
public func setLargeScaleCrossroadsOffsetMeters(
offset: Float,
transportType: TransportType
)
Sets the offset in meters from the intersection point to the beginning and end of the maneuver arrow for the large scale. Allows you to set the size of the maneuver arrow.
Parameters
offset
Float
Offset, in meters.
transportType
Type of transport for which the offset is set.
public func getSmallScaleCrossroadsOffsetMeters(
transportType: TransportType
) -> Float
Offset from the intersection point to the beginning and end of the maneuver arrow for the small scale.
Parameters
transportType
Type of vehicle for which the offset is requested.
Returns
Float
public func setSmallScaleCrossroadsOffsetMeters(
offset: Float,
transportType: TransportType
)
Sets the offset from the intersection point to the beginning and end of the small scale maneuver arrow. Allows you to set the size of the maneuver arrow.
Parameters
offset
Float
Offset, in meters.
transportType
Type of transport for which the offset is set.
Properties
var largeScaleRingroadOffsetMeters
Float
Offset from the point of exit from the ring to the beginning and end of the maneuver arrow for large scale. Allows you to set the size of the maneuver arrow.
var smallScaleRingroadOffsetMeters
Float
Offset from the ring exit point to the beginning and end of the maneuver arrow for small scale. Allows you to set the size of the maneuver arrow.
var calloutVisualizationMode
Route time and length bubbles display mode.

ScaleMapEvent

Event of changing the map scale.
Extends: Event
public convenience init(
zoomDelta: Float,
scalingCenter: ScreenPoint? = nil
)
Zoom event builder.
Parameters
zoomDelta
Float
Value by which the current scale value will change.
scalingCenter
Point on the screen relative to which the map scales. If not set, scaling is done relative to the map position point.
Properties
var zoomDelta
Float
Value by which the current scale value will change.
var scalingCenter
Point on the screen relative to which the map scales.

SearchHistory

Extends: Hashable
public static func == (lhs: SearchHistory, rhs: SearchHistory) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
context: Context
)
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.
public func items(
page: SearchHistoryPage
) -> Future<SearchHistoryResult>
Returns a page of the search history. Items are sorted by addition time (from recent to oldest).
Parameters
public func addItem(
item: SearchHistoryItem
)
Adds an item to the search history. If the same item already exists, the earlier duplicate is removed.
Parameters
public func addItems(
items: [SearchHistoryItem]
)
Adds a list of items to the search history. The list is considered to be in chronological order. Any duplicates are removed.
Parameters
public func removeItem(
item: SearchHistoryItem
)
Removes an item from the search history.
Parameters
public func removeItems(
items: [SearchHistoryItem]
)
Removes a list of items from the search history.
Parameters
public func clear()
Clears the search history.
Properties
var capacity
Gets the maximum size of the search history.
var onHistoryChanged
Channel<ChangeType>

SearchHistoryResult

Result of the search history.
Extends: Hashable
public static func == (lhs: SearchHistoryResult, rhs: SearchHistoryResult) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.
Properties
var items
Set of search history items.

SearchManager

Search engine. The main entry point for the reference API.
Extends: Hashable
Implements: ISearchManager
public static func == (lhs: SearchManager, rhs: SearchManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func createOnlineManager(
context: Context
) throws -> SearchManager
Creates a search engine working online.
Parameters
context
Returns
public static func createOfflineManager(
context: Context
) throws -> SearchManager
Creates a search engine working with preloaded data.
Parameters
context
Returns
public static func createSmartManager(
context: Context
) throws -> SearchManager
Creates a search engine working online or with preloaded data depending on the availability of internet connection.
Parameters
context
Returns
public func suggest(
query: SuggestQuery
) -> Future<SuggestResult>
Gets hints that match this query.
Parameters
public func searchById(
id: String
) -> Future<DirectoryObject?>
Get a directory object by its string identifier.
Parameters
public func searchByDirectoryObjectId(
objectId: DgisObjectId
) -> Future<DirectoryObject?>
Gets a directory object by its identifier.
Parameters
objectId
public func searchByIdWithLocale(
id: String,
locale: Locale?
) -> Future<DirectoryObject?>
Gets a directory objecy by a string indentifier with the specified locale.
Parameters
public func searchByDirectoryObjectIdWithLocale(
objectId: DgisObjectId,
locale: Locale?
) -> Future<DirectoryObject?>
Gets a directory objecy by an indentifier with the specified locale.
Parameters
objectId
locale

SearchQuery

Search query.
Extends: Hashable
public static func == (lhs: SearchQuery, rhs: SearchQuery) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

SearchQueryBuilder

Search query builder. The search is performed by the global index, as well as by local indexes of segments, where a segment is a certain piece of the global map partitioning. The procedure for selecting segments for search is performed in the following ways (in the descending order of priority):
Extends: Hashable
public static func == (lhs: SearchQueryBuilder, rhs: SearchQueryBuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromQueryText(
queryText: String
) -> SearchQueryBuilder
Starts building a text search query with the given text.
Parameters
queryText
Returns
public static func fromRubricIds(
rubricIds: [RubricId]
) -> SearchQueryBuilder
Starts building a search query based on the rubric identifiers.
Parameters
public static func fromQueryTextAndRubricIds(
queryText: String,
rubricIds: [RubricId]
) -> SearchQueryBuilder
Starts building a search query based on the rubric identifiers.
Parameters
queryText
rubricIds
Returns
public static func fromQuery(
query: SearchQuery
) -> SearchQueryBuilder
Starts building a query based on the #query to change part of the parameters.<br/>The original #query remains unchanged.
Parameters
public static func fromOrgId(
orgId: OrgId
) -> SearchQueryBuilder
Starts building a search query based on the specified organization ID.
Parameters
public static func fromBuildingId(
buildingId: BuildingId
) -> SearchQueryBuilder
Starts building a search query based on the specified building ID.
Parameters
public static func fromGeoPoint(
geoPoint: GeoPoint
) -> SearchQueryBuilder
Starts building a search query based on the specified center of the search area. The default radius value is `250`. Conflicts with the `setSpatialRestriction` method. The method works only with online search.
Parameters
public func setSpatialRestriction(
spatialRestriction: [GeoPoint]?
) -> SearchQueryBuilder
Sets the search area limitation in the polygon form. The first and the last points of the polygon do not have to coincide.<br/>By default, no limitation is set.
Parameters
spatialRestriction
Returns
public func setAreaOfInterest(
rect: GeoRect?
) -> SearchQueryBuilder
Sets the rectangular region of interest in geographic coordinates. A typical value is visible_rect from ICamera - the enclosing rectangle of the view area.
Parameters
public func setAllowedResultTypes(
allowedResultTypes: [ObjectType]
) -> SearchQueryBuilder
Specifies the object types allowed as a result of the request.<br/>By default, all types except Route are allowed.
Parameters
allowedResultTypes
Returns
public func setPageSize(
pageSize: Int32
) -> SearchQueryBuilder
Sets the preferred number of items on the results page. Values in the [1; 50] range are allowed.<br/>Default value is 10.
Parameters
pageSize
Int32
Returns
public func setDirectoryFilter(
filter: DirectoryFilter
) -> SearchQueryBuilder
Sets filtering for the search query.
Parameters
public func setSortingType(
sortingType: SortingType
) -> SearchQueryBuilder
Sets sorting for the search query.
Parameters
public func setGeoPoint(
geoPoint: GeoPoint
) -> SearchQueryBuilder
Sets the center of the search area. The default radius value is `250`. Conflicts with the `setSpatialRestriction` method.
Parameters
public func setRadius(
radius: Meter
) -> SearchQueryBuilder
Sets the radius of the search area in meters. Works only with the set `GeoPoint` value. For a search query at a point, the limit is from 0 to 2000. For other queries, the limit is from 0 to 50,000.
Parameters
public func setLocale(
locale: Locale?
) -> SearchQueryBuilder
Sets a locale for the search query.
Parameters
public func build() -> SearchQuery
Forms a search query.

SearchQueryWithInfo

Additional information about the search query to display in UI controls.
Extends: Hashable
public static func == (lhs: SearchQueryWithInfo, rhs: SearchQueryWithInfo) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
searchQuery: SearchQuery,
title: String,
subtitle: String
)
Parameters
searchQuery
title
subtitle
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them into the specified hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of the instance.
Properties
var searchQuery
Returns the search query object.
var title
Returns the title text that describes the search query objects. For example, the text from the `title` field of the `ISuggest` object.
var subtitle
Returns the subtitle text. For example, the text from the `subtitle` field of the `ISuggest` object.
var rubrics
Returns a list of rubric to search by.

SearchResult

Result of the search engine work.
Extends: Hashable
public static func == (lhs: SearchResult, rhs: SearchResult) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func markerTitles(
objectIds: [DgisObjectId]
) -> [Future<[UIMarkerInfo]>]
Retrieves marker texts by their identifiers. Returns vector <future
Parameters
objectIds
Marker IDs.
Returns
Properties
var firstPage
First page of search results.
var representativeArea
Rectangular area suitable for displaying search results.
var itemMarkerInfos
Future<[ItemMarkerInfo]?>
Asynchronous marker retrieval.
var searchResultType
Type of search query.
var dynamicFilters
Dynamic filters for the given query.
var actionWidgets
Widgets with quick filters.<br/>Quick filters are the ones most interesting for the user. Maximum 5 quick filters.
var mainWidgets
Filter widgets.
var autoUseFirstResult
Indication that the first result is suitable for direct use.

SettlementRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: SettlementRouteLongAttribute, rhs: SettlementRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> SettlementRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [SettlementRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

SimpleCheckableItem

Simple checkable elements from CheckableItemsGroup.
Extends: CheckableItem
Properties
var text
Gets a textual description of the element.
var values
Gets the list of values used for filtering. Commonly, only one value is used.
var isChecked
Gets the element state.

SimpleClusterObject

Cluster of simple marker-objects.
Extends: MapObject
Methods
public func setIcon(
icon: Image?
)
Set the cluster icon.
Parameters
icon
Properties
var position
Getting the cluster position on the map.
var objectCount
Getting the number of markers in the cluster.
var objects
Getting the list of markers in the cluster.
var anchor
Obtaining and setting the anchor point of the cluster icon.
var iconOpacity
Obtaining and setting the transparency of the cluster icon.
var text
Obtaining and setting the cluster caption.
var textStyle
Obtaining and setting the cluster caption style.
var iconWidth
Obtaining and setting the target cluster width used for scaling.
var iconMapDirection
Obtaining and setting the angle of rotation of the cluster on the map relative to the north direction, clockwise.
var animatedAppearance
Obtaining and setting the cluster appearance animability flag.
var zIndex
Obtaining and setting the object rendering level.

SimpleMapObject

Object on the map, for which you can set the visibility.
Extends: MapObject
Properties
var isVisible
var zIndex
Obtains the drawing level of an object.
var levelId
Obtains the snap of an object to a floor in a building.
var bounds
Rectangle of minimum size containing geometry.

SimulationSettings

Route guidance simulation settings.
Extends: Hashable
public static func == (lhs: SimulationSettings, rhs: SimulationSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var speedMode
Simulator mode of operation.

SoundNotificationSettings

Sound alert settings in the navigator. By default, all values of sound alert categories are enabled. You can change the values while using the navigator.
Extends: Hashable
public static func == (lhs: SoundNotificationSettings, rhs: SoundNotificationSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var enabledSoundCategories
Set of flags for sound alerts.

Source

Source of data on the map.
Extends: Hashable
public static func == (lhs: Source, rhs: Source) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

StatefulChannel

Extends: Channel<Value>
Properties
var value
Value

StringRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: StringRouteLongAttribute, rhs: StringRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> StringRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [StringRouteLongEntry]
Elements partially or completely covered by the [begin, end] the segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
var entries

Style

Style with a set of map object properties (see ISource).
Extends: Hashable
public static func == (lhs: Style, rhs: Style) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var styleAttributes
Gets default properties for objects to which the given layer is applied.

StyleZoomFollowController

Controller for tracking the style zoom level of the map.
public convenience init(
animationDuration: TimeInterval = 0.3
)
Creates a controller for tracking the style zoom level of the map.
Parameters
animationDuration
TimeInterval
Methods
public func setStyleZoom(
styleZoom: StyleZoom
)
Sets a new value for the style zoom level.
Parameters
styleZoom
public func setStyleZoomRange(
minStyleZoom: StyleZoom,
maxStyleZoom: StyleZoom
)
Sets the range of acceptable values of the style zoom level.
Parameters
minStyleZoom
maxStyleZoom

Suggest

Search hint.
Extends: Hashable
public static func == (lhs: Suggest, rhs: Suggest) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var handler
Hint selection handler.
var suggestedType
Hint type.
var title
Hint title.
var subtitle
Hint subheading.

SuggestObjectHandler

Particular directory object is suggested.
Extends: Hashable
public static func == (lhs: SuggestObjectHandler, rhs: SuggestObjectHandler) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var item
Suggested object.

SuggestQuery

Search hint query.
Extends: Hashable
public static func == (lhs: SuggestQuery, rhs: SuggestQuery) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.

SuggestQueryBuilder

Builder of queries to the suggestor.
Extends: Hashable
public static func == (lhs: SuggestQueryBuilder, rhs: SuggestQueryBuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromQueryText(
queryText: String
) -> SuggestQueryBuilder
Starts building a hint query for a given text and area of interest.
Parameters
public static func fromQuery(
query: SuggestQuery
) -> SuggestQueryBuilder
Starts building a hint query based on the #query to change part of the parameters.<br/>The original #query remains unchanged.
Parameters
public func setSpatialRestriction(
spatialRestriction: [GeoPoint]?
) -> SuggestQueryBuilder
Sets the search area limitation in the polygon form. The first and the last points of the polygon do not have to coincide.<br/>By default, no limitation is set.
Parameters
spatialRestriction
Returns
public func setAreaOfInterest(
rect: GeoRect?
) -> SuggestQueryBuilder
Sets the rectangular region of interest in geographic coordinates. A typical value is visible_rect from ICamera - the enclosing rectangle of the view area.
Parameters
public func setAllowedResultTypes(
allowedResultTypes: [SuggestedType]
) -> SuggestQueryBuilder
Specifies the object types allowed as a result of the request.<br/>By default, all types except Route are allowed.
Parameters
allowedResultTypes
Returns
public func setSuggestorType(
suggestorType: SuggestorType
) -> SuggestQueryBuilder
Sets the suggester type.<br/>By default, #SuggestorType::General
Parameters
public func setLimit(
limit: Int32
) -> SuggestQueryBuilder
Sets the desired number of hints. Values from the range [1; 50] are allowed.<br/>Default value is 10.
Parameters
limit
Int32
Returns
public func setLocale(
locale: Locale?
) -> SuggestQueryBuilder
Locale where a hint request is executed and results are returned.
Parameters
public func build() -> SuggestQuery
Builds a query to the suggestor.

SuggestResult

Result of the suggestor work.
Extends: Hashable
public static func == (lhs: SuggestResult, rhs: SuggestResult) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var suggests
Set of suggested hint alternatives.<br/>The set is empty if no suitable hints are found.

SystemMemoryManager

Interface for managing the use of system memory.
Extends: Hashable
public static func == (lhs: SystemMemoryManager, rhs: SystemMemoryManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func reduceMemoryUsage()
Reducing memory usage by clearing all kinds of caches and buffers.

TerritoriesAlongRouteProvider

Interface for finding a route, taking into account traffic jam data.
Extends: Hashable
public static func == (lhs: TerritoriesAlongRouteProvider, rhs: TerritoriesAlongRouteProvider) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func getTerritories(
route: Route
) -> Future<[Territory]>
Returns the minimum required list of offline territories in route order.
Parameters
route

Territory

Territory. The data in 2GIS is split into some indivisible units called segments. For more convenient and flexible work with the data, not the segments themselves, but their sets, called territories, are used for updating. Sets of segments in two territories may overlap, including the possibility of one territory being completely nested in another.
Extends: Package

TerritoryManager

Interface to interact with the list of territories: Subscribe to changes in territory information; Search territories by coordinates and geometry; Subscribe to changes of information about the general progress of territory installation/upgrade; Pause and resume the process of territory installation/upgrade.
Extends: Hashable
public static func == (lhs: TerritoryManager, rhs: TerritoryManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func findByPoint(
geoPoint: GeoPoint
) -> [Territory]
Searches for territories that own the given point. Throws an exception if incorrect point coordinates are passed. Returns an empty list if:<ul><li>Point coordinates are outside the projection.</li><li>An internal error occurred during the processing of a territories list.</li><li>
Parameters
geoPoint
Returns
public func findByRect(
rect: GeoRect
) -> [Territory]
Searches for territories that own the given point. Throws an exception if an unsupported geometry is used. Returns an empty list if the geometry is outside of the project
Parameters
public func pause()
Suspends all running operations to install or update territories.
public func resume()
Resumes all suspended operations to install or update territories.
Properties
var territoriesChannel
StatefulChannel<[Territory]>
Channel with a list of all known territories. It is updated when information about at least one of the territories changes or when the composition of the list changes. The contents of the channel are a subset of the total list of packages obtained from IPackageManager::packages. To avoid unsynchronization of package descriptions, you should not use data obtained simultaneously from several channels containing subsets of a common list of packages.
var territories
Channel with a list of all known territories. It is updated when information about at least one of the territories changes or when the composition of the list changes. The contents of the channel are a subset of the total list of packages obtained from IPackageManager::packages. To avoid unsynchronization of package descriptions, you should not use data obtained simultaneously from several channels containing subsets of a common list of packages.

TiltFollowController

Controller tracking the map tilt angle.
public convenience init(
styleZoomToTilt: StyleZoomToTiltRelation
)
Creating a controller for tracking the tilt angle of the map.
Parameters
styleZoomToTilt
Dependence of the camera tilt angle on the style scaling level.

Traffic

Description of traffic jam data.
Extends: Hashable
public static func == (lhs: Traffic, rhs: Traffic) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var durations
Movement durations on route segments. 0 - duration of movement on the route section is unknown.
var speedColors
Color representation of vehicle speeds on the route (extended attribute).

TrafficCollector

Interface for managing the traffic information collection service.<br/>This interface is thread-safe.
Extends: Hashable
public static func == (lhs: TrafficCollector, rhs: TrafficCollector) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
context: Context
)
The function of creating a traffic information collection service. The service analyzes the state of traffic on the road on which the user is moving and sends the results of the analysis in an anonymized form to the server.
Parameters
context
Context - the environment required to run the SDK.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var trafficCollectingAllowed
Function for determining the allow/deny status of sending traffic information to the server.

TrafficControl

Extends: UIControl
Methods
public override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)
Parameters
previousTraitCollection
public override func layoutSubviews()
public func switchTrafficVisibility()
Properties
var intrinsicContentSize

TrafficControlModel

Model of a traffic jam control.<br/>This interface is thread-safe.
Extends: Hashable
public static func == (lhs: TrafficControlModel, rhs: TrafficControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
map: Map
)
Creates a model of a traffic jam control.
Parameters
map
Map.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func onClicked()
Action on the control click. Switches the visibility of traffic jams on the map.
Properties
var stateChannel
StatefulChannel<TrafficControlState>
The state of the traffic control.
var state
The state of the traffic control.

TrafficRoute

Extends: Hashable
public static func == (lhs: TrafficRoute, rhs: TrafficRoute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromNavigationState(
navigationState: PackedNavigationState,
context: Context
) -> TrafficRoute
Creates a route from the deserialized navigation state with adding the contained objects to the road events database (it is necessary to display events on the route on the map when it is impossible to get events online).
Parameters
navigationState
context
Returns
Properties
var route
Route.
var traffic
Traffic data.

TrafficRouter

Interface for finding a route, taking into account traffic jam data.
Extends: Hashable
public static func == (lhs: TrafficRouter, rhs: TrafficRouter) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
context: Context
)
Parameters
context
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func findRoute(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint,
routeSearchOptions: RouteSearchOptions,
intermediatePoints: [RouteSearchPoint] = []
) -> Future<[TrafficRoute]>
Searches the route according to the specified parameters.
Parameters
startPoint
Starting point of route.
finishPoint
Finish point of the route.
routeSearchOptions
Route search parameters.
intermediatePoints
Intermediate points for a route in the same order as the points are set in the vector.
public func requestRoute(
request: Data,
serverEndpoint: String
) -> Future<[TrafficRoute]>
Searches for a route using previously serialized parameters.
Parameters
request
Data
Serialized request parameters.
serverEndpoint
Type of route specified in the request endpoint: `bicycle`, `carrouting`, `pedestrian`, `truck`.
public func findBriefRouteInfos(
searchPoints: [BriefRouteInfoSearchPoints],
routeSearchOptions: RouteSearchOptions
) -> Future<[BriefRouteInfo?]>
Searches for basic route information for the corresponding set of search points.<br/>If basic information for any of the point pairs is not found, the element with the corresponding index in the returned result will be set to nil.
Parameters
searchPoints
Searches a set of search points for basic route information.
routeSearchOptions
Route search parameters.
Returns
BriefRouteInfo<[?]>Future with basic route set information, corresponding to a set of search points, or SimpleError exception in case of an error.
Properties
var truckPassZonePasses
Future<[TruckPassZonePass]>
Returns a list of all supported passes that allow truck traffic within the pass zones.

TrafficScoreProvider

Subscribes to updates on the traffic jam level.<br/>This interface is thread-safe.
Extends: Hashable
public static func == (lhs: TrafficScoreProvider, rhs: TrafficScoreProvider) -> Bool
Returns a Boolean value indicating whether two values are equal.<br/>This documentation comment was inherited from .
public convenience init(
map: Map
)
Parameters
map
Map for which the visibility area will be tracked.
public convenience init(
context: Context,
point: GeoPoint
)
Creates an object to track the level of traffic jams for a given location. <br/>The resulting object must be stored for as long as the data needs to be updated.
Parameters
context
Context - the environment required to run the SDK.
point
Geo-point for which you want to get the size of the traffic jams.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var scoreChannel
StatefulChannel<TrafficScore>
Current state and size of the traffic jams.
var score
Current state and size of the traffic jams.

TrafficSource

Interface of the class that controls the display of traffic jams on the map.
Extends: Source
public convenience init(
context: Context
)
Parameters
context

TrafficSpeedColorRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: TrafficSpeedColorRouteLongAttribute, rhs: TrafficSpeedColorRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> TrafficSpeedColorRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [TrafficSpeedColorRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

TrafficViewModel

ViewModel for the UI control of the traffic jam visibility.
Extends: ObservableObject

TransportTypeRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: TransportTypeRouteLongAttribute, rhs: TransportTypeRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> TransportTypeRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [TransportTypeRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

TruckPassZoneIdRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: TruckPassZoneIdRouteLongAttribute, rhs: TruckPassZoneIdRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> TruckPassZoneIdRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [TruckPassZoneIdRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
var last
var entries

UIntRouteLongAttribute

Container that stores an extended route attribute. Each element is stored as a pair consisting of a point and an attribute element value. The action of the attribute starts at the given point and ends at the next point, starting from which the action of the attribute of the next element begins.
Extends: Hashable
public static func == (lhs: UIntRouteLongAttribute, rhs: UIntRouteLongAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entry(
point: RoutePoint
) -> UIntRouteLongEntry?
Element in which the point falls.
Parameters
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [UIntRouteLongEntry]
Elements partially or completely covered by the [begin, end] segment.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries

Voice

Voice package with the navigator voiceover.
Extends: Package
Methods
public func playWelcome() -> Future<Void>
Play a voice sample.
Returns
Future<>Future, which becomes ready when sample playing is finished.
Properties
Obtains a voice for use in the navigator.
var language
Voiceover language in ISO 639-1 format.

VoiceManager

Interface to interact with a list of navigator voice packages.
Extends: Hashable
public static func == (lhs: VoiceManager, rhs: VoiceManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var voicesChannel
StatefulChannel<[Voice]>
Channel with a list of all known voice packages. Updated if the information about at least one of the voices has changed, or if the composition of the list has changed. The contents of the channel are a subset of the general package list. To avoid descriptive package descriptions being out of sync, you should not use data from multiple channels that contain subsets of the total package list at the same time.
var voices
Channel with a list of all known voice packages. Updated if the information about at least one of the voices has changed, or if the composition of the list has changed. The contents of the channel are a subset of the general package list. To avoid descriptive package descriptions being out of sync, you should not use data from multiple channels that contain subsets of the total package list at the same time.

VoiceSelector

Manages voice packages in the current navigator session.
Extends: Hashable
public static func == (lhs: VoiceSelector, rhs: VoiceSelector) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var voice
Voice package with which voice alerts are played in the current navigator session.

VoidRouteAttribute

Container that describes a point attribute of a route. Each item is stored as a point on the route, in which the item is located, and the value of the item itself.
Extends: Hashable
public static func == (lhs: VoidRouteAttribute, rhs: VoidRouteAttribute) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func entries(
begin: RoutePoint,
end: RoutePoint
) -> [RoutePoint]
Elements that fall within the [begin, end) range.
Parameters
public func findNearBackward(
point: RoutePoint
) -> RoutePoint?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
public func findNearForward(
point: RoutePoint
) -> RoutePoint?
Finds the nearest element with position < = point.<br/>The operation complexity is log2(N), where N = size.
Parameters
Properties
var size
Number of elements.
var isEmpty
Elements missing.
var first
First element.
var last
Last element.
var entries
All elements.

Widget

Base class representing a widget for filtering search results.
Extends: Hashable
public static func == (lhs: Widget, rhs: Widget) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
Properties
var type
Gets the widget type.
var caption
Gets the widget name. Can be missing.
var filters
Gets a list of filters describing the current state of the widget. Can be used during creation of a search query.

ZoomControl

Map scale control unit.
Extends: UIControl
Methods
public override func layoutSubviews()
Properties
var buttonSpacing
Distance between the zoom buttons.
var intrinsicContentSize

ZoomControlModel

Model of the scale control. The control consists of +/- buttons, which, when pressed, change the map scale. When the permissible scale limit is reached, the button of scaling in this direction becomes inactive. The object methods must be called on a single thread.
Extends: Hashable
public static func == (lhs: ZoomControlModel, rhs: ZoomControlModel) -> Bool
Returns a Boolean value indicating whether two values are equal.
public convenience init(
map: Map
)
Parameters
map
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
public func isEnabled(
button: ZoomControlButton
) -> StatefulChannel<Bool>
Parameters
button
Returns
Bool<>
public func setPressed(
button: ZoomControlButton,
value: Bool
)
Parameters

ZoomFollowSettings

Interface that allows you to control the map zoom settings during guidance.
Extends: Hashable
public static func == (lhs: ZoomFollowSettings, rhs: ZoomFollowSettings) -> Bool
Returns a Boolean value indicating whether two values are equal.
Methods
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by passing them to the given hasher.
Parameters
hasher
Hasher
Hasher to use when combining the components of this instance.
Properties
var speedRangeToStyleZoomSequence
Sequence of speed intervals and corresponding scales. Used to automatically change the scale in the navigator depending on the speed.
var speedRangeToStyleZoomFreeRoamSequence
Sequence of speed ranges and corresponding scales in the FreeRoam navigation mode. Used for automatic scaling in the navigator depending on the speed.
var styleZoomSpeedRangesAnimationDuration
Duration of smooth scaling in the guidance mode when the speed changes and there are no maneuvers ahead/behind at a sufficiently close distance or on low-value roads.
var zoomInBeforeManeuverAnimationDuration
Duration of the smooth zoom level increase when approaching a maneuver. Used only if the speed is lower than in get_min_speed_to_consider_in_zoom_in_before_maneuver_animation.
var zoomOutAfterManeuverAnimationDuration
Duration of smooth zoom level decrease after passing the maneuver.
var minSpeedToConsiderInZoomInBeforeManeuverAnimation
Minimum speed in m/s at which the duration of smooth zoom level change is calculated based on not only the proximity to the maneuver, but also the current speed. It must be at least 0.1 m/s, values less than this are ignored.
var zoomInBeforeManeuverAnimationAcceleration
Acceleration coefficient of the zoom level increase animation when approaching the maneuver. Must be at least 1, values less than that will be ignored.
var distanceGapToManeuver
Distance to the maneuver, at reaching which the animation of the smooth zoom level increase must be completed, so that during the maneuver the zoom does not change. For example, if the maneuver is 300 m, then the animation with the smooth zoom level increase must be completed 50 m before the maneuver. Must be at least 1 m, values less than that will be ignored.
var minAnimationDuration
Minimum animation time. Used to prevent sudden changes in the zoom level during the animation. Must be at least 200, values less than that will be ignored.

ZoomViewModel

ViewModel for the UI control of zooming in and out.
Extends: ObservableObject
Methods
public func onStartZoom(button: ZoomControlButton)
Parameters
public func onStopZoom(button: ZoomControlButton)
Parameters