struct
Address
Address as a set of individual components.
public init(
drillDown: [AddressAdmDiv],
components: [AddressComponent],
buildingName: String?,
buildingId: BuildingId?,
postCode: String?,
buildingCode: String?,
fiasCode: String?,
addressComment: String?
)
drillDown
components
buildingName
buildingId
postCode
buildingCode
fiasCode
addressComment
var drillDown
Set of administrative division objects in which the object being described is located.
var components
Complete address of an object may contain several separate address components.
var buildingName
Name of the building.
var buildingId
Unique identifier of the building.
var postCode
ZIP code.
var buildingCode
The unique ZIP code of the building.
var fiasCode
FIAS code of the building.
var addressComment
Address comment. Example: “office 301; floor 9”.
AddressAdmDiv
Administrative unit object.
AddressLocation
Applies to components that are hard to describe with a specific address.
AddressNumber
Some localities designate only the house number, without the street (e.g., Krasnoobsk).
AddressStreet
Normal address, there is a street and house number.
Aggregate
EV charging station description.
var connectorsFree
Number of available connectors (in the Available status).
var connectorsTotal
Total number of connectors, except for connectors in the Unavailable status.
var isActive
Shows whether connectors are active. true if there is at least one available (in the Available status), reserved (Reserved), or busy (Charging) connector.
var isBusy
Shows whether connectors are busy. true if half or more of the connectors are busy (in the Charging status).
var power
The maximum power of the connector at the station.
Anchor
Image anchor point (0, 0) - upper left corner, (1, 1) - lower right corner.
public init(
x: Float = 0.5,
y: Float = 0.5
)
x
y
ApartmentRange
Range of apartments.
Attribute
Additional attribute. Example: { tag: “hotel_room_internet”, name: “Free internet in the rooms” }.
AuthorInfo
Information about the author of the event or photo.
Bearing
Angle between the direction to one object and another object or between the direction to the object and north. The angle is counted clockwise. The value range is [0°, 360°].
public init(floatLiteral value: Double)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
BetterRouteInfo
Information on available alternative route.
public init(
trafficRoute: TrafficRoute,
startPoint: RoutePoint
)
BicycleBriefRouteInfo
Basic cycling route information.
BicycleInstructionCrossroad
Description of maneuvers when passing through an intersection or crosswalk.
public init(
landmark: BicycleInstructionCrossroadLandmark = BicycleInstructionCrossroadLandmark.`none`,
maneuvers: [BicycleInstructionCrossroadManeuver]
)
BicycleInstructionCrossroadManeuver
public init(
direction: BicycleInstructionCrossroadManeuverDirection = BicycleInstructionCrossroadManeuverDirection.straight,
turnAngle: Int32 = 0
)
BicycleInstructionFinish
End of the cycling part of the route.
public init()
BicycleInstructionStart
The beginning of the cycling part of the route.
public init()
BicycleRouteSearchOptions
Bicycle route search options.
public init(
avoidCarRoads: Bool = false,
avoidStairways: Bool = false,
avoidUnderpassesAndOverpasses: Bool = false,
excludedAreas: [ExcludedArea] = []
)
BoolRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: Bool
)
Borders
Describes a continuous set of sorted values.
var snapping
Defines snapping to the value multiple of this number.
var isLg
Indication of using the logarithmic scale.
var value
Value by which filtering is done.
var min
Lower bound of the values set.
var max
Upper bound of the values set.
var currentMin
Currently set minimum value.
var currentMax
Currently set maximum value.
BriefRoadEvent
public init(
id: UInt64 = 0,
eventType: RoadEventType = RoadEventType.other,
lanes: LaneOptionSet
)
BriefRouteInfo
Basic route information.
public init(
duration: TimeInterval,
extraInfo: BriefExtraRouteInfo
)
BriefRouteInfoSearchPoints
Points to query for basic route information search.
public init(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint
)
BuildingId
BuildingInfo
Information about building.
public init(
buildingName: String? = nil,
purposeName: String? = nil,
purposeCode: PurposeCode? = nil,
buildingLevels: BuildingLevels? = nil,
buildingId: BuildingId?
)
buildingName
purposeName
purposeCode
buildingLevels
buildingId
BuildingLevels
Information about the floor plans of the building.
public init(
defaultLevelId: LevelId,
levels: [LevelInfo]
)
CalloutMapPosition
Route bubble position.
public init(
mapId: MapId,
calloutPosition: GeoPoint?,
routePoint: RoutePoint?
)
CameraBehaviour
Camera tracking mode.
public init(
position: FollowPosition?,
tilt: FollowTilt = FollowTilt.off
)
CameraBehaviourChange
Changes tracking mode.
public init(
newBehaviour: CameraBehaviour,
changeReason: CameraBehaviourChangeReason = CameraBehaviourChangeReason.application
)
CameraPosition
Camera position.
var point
Terrain point that is located at the camera position point (see ICamera::position_point()).
var zoom
Zoom level. 0 is the entire world inscribed in a square of 256x256 logical pixels (see LogicalPixel).
var tilt
Tilt angle of the gaze direction vertically.
0 is nadir (vertically downward), maximum value is 60 degrees.
var bearing
Angle of rotation of the view direction horizontally relative to the north direction. Counted clockwise, in degrees.
CameraPositionChange
Changing specific parameters of camera position.
CameraPositionPoint
Relative screen position of the point to which the camera is linked.
public init(
x: Float = 0.5,
y: Float = 0.5
)
x
y
CameraProgressInfo
Information about the progress of the camera zone.
public init(
camera: RouteCamera,
position: RoutePoint,
progress: Float = 0
)
CameraPurposeOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let speedControl
Recording of exceeding the speed limit.
static let averageSpeedControl
Recording of exceeding the average speed on the section.
static let publicTransportLaneMovementControl
Recording of movement on the dedicated lane for public transport.
static let roadMarkingsCrossingControl
Recording of crossing the solid line of road markings, driving on the side of the road.
static let trafficLightsViolationControl
Recording of passing at the forbidden signal of traffic lights.
static let stopLineCrossingControl
Recording of driving over the stop line, driving without stopping the stop sign, driving to the intersection during a jam.
static let oncomingTrafficLaneMovementControl
Recording driving in the oncoming lane.
static let pedestrianAdvantageViolationControl
Recording failure to give priority to pedestrians.
static let laneDisciplineControl
Recording of violation of lane rotation at the intersection.
static let noStoppingViolationControl
Recording of violation of prohibition of stopping.
static let dummy
Fake item.
static let truck
Platon system camera, truck restriction control camera.
CameraRouteEntry
Route element - a point and a value in it.
CameraViewPoint
The relative position of the screen point with the camera viewpoint.
public init(
x: Float = 0.5,
y: Float = 0.5
)
x
y
CameraZoomRestrictions
Allowed range of zoom level variation.
CarBriefRouteInfo
Basic information about the automobile route.
public init(
length: RouteDistance,
landmark: String,
trafficSpeed: CarBriefRouteInfoTrafficSpeed
)
CarInstructionCrossroad
Description of maneuvers at the intersection.
public init(
direction: CarInstructionCrossroadDirection = CarInstructionCrossroadDirection.straight,
turnAngle: Int32 = 0,
landmark: CarInstructionCrossroadLandmark = CarInstructionCrossroadLandmark.`none`,
exitName: String
)
direction
turnAngle
landmark
exitName
CarInstructionFinish
End of the automobile part of the route.
public init()
CarInstructionRoundabout
Description of maneuvers at a traffic circle intersection.
public init(
type: CarInstructionRoundaboutType = CarInstructionRoundaboutType.entry,
turnAngle: Int32 = 0,
exitNumber: UInt32 = 0,
exitName: String
)
CarInstructionStart
Start of the automobile part of the route.
public init()
CarInstructionUTurn
U-turn on the road (not at an intersection).
U-turn at an intersection is described by the Crossroad instruction.
CarRouteSearchOptions
Route search parameters in a passenger car.
public init(
avoidTollRoads: Bool = false,
avoidUnpavedRoads: Bool = false,
avoidFerries: Bool = false,
avoidLockedRoads: Bool = true,
routeSearchType: RouteSearchType = RouteSearchType.jam,
excludedAreas: [ExcludedArea] = []
)
avoidTollRoads
avoidUnpavedRoads
avoidFerries
avoidLockedRoads
routeSearchType
excludedAreas
var avoidTollRoads
Avoid toll roads.
var avoidUnpavedRoads
Avoid unpaved roads.
var avoidFerries
Avoid ferry crossings.
var avoidLockedRoads
Avoid closed roads. If true, the route search will not take into account road closures. If false is set, the route can be created through roadblocks if you cannot build a route without passing through roadblocks.
var routeSearchType
Route search type.
var excludedAreas
Excluded areas (not more than 25).
ChargingStation
Attributes of EV charging stations.
public init(
aggregate: Aggregate,
connectors: [Connector]
)
CircleOptions
Parameters for creating a geometric map object of the Circle type.
public init(
position: GeoPoint,
radius: Meter,
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value: 0),
strokeColor: Color = Color(),
dashedStrokeOptions: DashedStrokeCircleOptions? = nil,
visible: Bool = true,
userData: Any = (),
zIndex: ZIndex = ZIndex(value: 0),
levelId: LevelId? = nil
)
position
radius
color
strokeWidth
strokeColor
dashedStrokeOptions
visible
zIndex
levelId
var position
Geographic position.
var radius
Radius in meters.
var color
Fill color.
var strokeWidth
Circle border line width.
var strokeColor
Color of the circle boundary line.
var dashedStrokeOptions
var visible
Visibility flag.
var userData
User data. (not used inside SDK, only for API users).
var zIndex
Object drawing level.
var levelId
Binding to the floor plan of the building.
ClusterOptions
Cluster marker parameters.
public init(
attributes: [String: AttributeValue],
userData: Any = ()
)
attributes
Color
Color.
init(
red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
)
CompassView
UI control of the compass in SwiftUI.
var body
Contents and behavior of the control.
Connector
public init(
power: UInt16,
price: UInt16,
status: StatusType,
type: String
)
ContactInfo
Way to contact the organization.
CurrentLocationView
Control of the current location in SwiftUI.
var body
Contents and behavior of the control.
DashboardButtonSettings
Settings for a button in the bottom panel of the NavigationView.
var enabled
Button visibility.
var icon
Icon. By default, the icon for adding road events is used.
var callback
Callback function that is called when a button is pressed. By default, the function for creating road events is set.
static var `default`
Default settings for a button in the bottom panel.
DashedPolylineOptions
Parameters of the dotted polyline.
public init(
dashLength: LogicalPixel = LogicalPixel(value: 5),
dashSpaceLength: LogicalPixel = LogicalPixel(value: 2)
)
DashedStrokeCircleOptions
public init(
dashLength: LogicalPixel = LogicalPixel(value: 5),
dashSpaceLength: LogicalPixel = LogicalPixel(value: 2)
)
DayTime
Time moment within a day.
public static func < (lhs: DayTime, rhs: DayTime) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
DefaultRasterUrlTemplate
DeviceDensity
Multiplier that is calculated as the ratio of DPI to the base DPI of the device.
Must be positive.
public init(
value: Float = 0
)
value
var value
DevicePpi
Resolution of the device display, in pixels per inch.
Must be positive.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
The value to create.
var value
static let autodetected
PPI of the head unit screen. For example, for a smartphone connected to CarPlay, this is the PPI of the smartphone screen. The value is nil if the current device has an unknown PPI (unsupported device, e.g. from future). In such cases, you need to set the PPI yourself using the entry in Map.devicePpi.
static let defaultForFailedAutodetection
This PPI is used by default in cases where it was not possible to automatically determine from the device model. See `.autodetected'.
DgisObjectId
DirectoryFilter
Filters for the directory.
public init(
workTime: WorkTimeFilter?,
dynamic: [DynamicFilter]
)
DoubleRouteEntry
Route element - a point and a value in it.
DynamicRouteInfo
public init(
roadEvents: RoadEventRouteAttribute,
traffic: Traffic
)
Elevation
Non-negative elevation of the point above the surface, in meters.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
EntranceGeometry
Geometries for displaying the entrance on the map.
public init(
entrancePoints: [GeoPoint],
entrancePolylines: [[GeoPoint]]
)
EntranceInfo
Information about the entrance to the building.
public init(
id: DgisObjectId,
buildingNumber: String?,
porchName: String?,
porchNumber: String?,
apartmentRanges: [ApartmentRange],
geometry: EntranceGeometry?
)
id
buildingNumber
porchName
porchNumber
apartmentRanges
geometry
var id
Input object ID.
var buildingNumber
Number of the house to which the entrance belongs.
var porchName
Non-empty entrance name. Filled in for entrances only. Can take values of the entrance name (e.g. "Entrance 1 ") or building number if the entrance has its own address.
var porchNumber
Non-empty entrance number. Filled in for entrances only. Can take values of entrance number (e.g. "1 ") or building number if the entrance has its own address.
var apartmentRanges
Apartment numbers pertaining to the entryway.
var geometry
Geometries for displaying the entrance on the map.
ExcludedArea
Excluded area to be avoided when building a route.
public init(
type: ExcludedAreaType = ExcludedAreaType.point,
severity: ExcludedAreaSeverity = ExcludedAreaSeverity.soft,
extent: RouteDistance,
points: [GeoPoint]
)
FlagFilter
Flag filter.
FloatRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: Float
)
FloorInfo
Information about the floor plan for the marker - element of the search output.
FollowPosition
Tracking settings for direction, tilt, and zoom level.
public init(
bearing: FollowBearing = FollowBearing.off,
styleZoom: FollowStyleZoom = FollowStyleZoom.off
)
FollowValueOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
FormattedAddress
A human-readable representation of the address.
var drilldownAddress
Address from a drill-down. Example: “Novosibirsk, Kirovsky district”.
var streetAddress
Address inside a settlement. Example: “Nikolaeva str., 11”.
var addressComment
Address comment. Example: “office 301; floor 9”.
var postCode
Postal code of the object with a building code, if any. Example: “630088”, “630007/XBVJF8”.
GeoPoint
Point in a spherical coordinate system that, together with a geodetic coordinate system (e.g., WGS84), points to a point on the Earth's surface. This structure is not bound to a specific geodetic coordinate system. But this module contains free functions that operate with this structure already in a specific coordinate system (see the documentation to the functions).
init(latitude: CLLocationDegrees, longitude: CLLocationDegrees)
func bearing(point: GeoPoint) -> Bearing
Calculates the bearing (the angle between the geographic north direction and the direction of movement, counted clockwise) between two points.
func distance(point: GeoPoint) -> Meter
Calculates the minimum distance (along a great circle) between two points.
GeoPointRouteEntry
Route element - a point and a value in it.
GeoPointWithElevation
Point in a geographic coordinate system (latitude, longitude, elevation).
Elevation is defined in meters above the surface, not above the sea level.
public init(
latitude: Latitude,
longitude: Longitude,
elevation: Elevation = Elevation(value: 0)
)
init(
latitude: CLLocationDegrees,
longitude: CLLocationDegrees,
elevation: CLLocationDistance
)
init(
coordinate: CLLocationCoordinate2D,
elevation: CLLocationDistance
)
func bearing(point: GeoPoint) -> Bearing
Calculates the bearing (the angle between the geographic north direction and the direction of movement, counted clockwise) for the projection of a point on the map and for a given point.
func distance(point: GeoPoint) -> Meter
Calculates the minimum distance (along a great circle) between two points.
func move(bearing: Bearing, meter: Meter) -> GeoPointWithElevation
Calculates the point obtained by moving the source point in the specified direction by the specified distance.
GeoRect
Rectangular area in a spherical coordinate system (e.g. WGS84). This structure is not tied to a specific geodetic coordinate system.
func contains(
point: GeoPoint
) -> Bool
Whether the rectangle contains the point. Points on the border are also considered to belong to the rectangle.
func expand(
point: GeoPoint
) -> GeoRect
Expands a rectangle. Return a minimum-sized rectangle containing the original rectangle and a point.
var southWestPoint
Southwest point, bottom left border of rectangle.
var northEastPoint
Northeast point, top right of rectangle.
var isValid
Checks rectangle for correctness.
var isDegenerate
Checks the rectangle for degeneracy. If the points in the rectangle are equal, the rectangle is degenerate to a point. A degenerate rectangle is a correct rectangle. An incorrect rectangle is not degenerate.
GradientPolylineOptions
Parameters of the gradient polyline.
public init(
borderWidth: LogicalPixel = LogicalPixel(value: 0),
secondBorderWidth: LogicalPixel = LogicalPixel(value: 0),
gradientLength: LogicalPixel = LogicalPixel(value: 1),
borderColor: Color = Color(),
secondBorderColor: Color = Color(),
colors: [Color],
colorIndices: Data
)
borderWidth
secondBorderWidth
gradientLength
borderColor
secondBorderColor
colors
colorIndices
var borderWidth
Line border width.
var secondBorderWidth
Width of the second line border.
var gradientLength
Gradient line length.
var borderColor
Outline color.
var secondBorderColor
Color of the second outline.
var colors
Gradient polyline color palette.
var colorIndices
Gradient polyline color indexes. The number of indexes must be 1 less than the number of polyline points.
GroupItem
Element of a combined card that contains information about an object.
HttpOptions
HTTP client options.
var timeout
Timeout for HTTP requests.
var useCache
Use the HTTP cache.
var cacheStoragePath
Path to the root-level directory for the primary HTTP cache file storage. File storage will be located in the http_cache subdirectory of this directory. If the path is not specified, the default directory is used.
var cacheMaxSize
Maximum size of the HTTP cache in bytes. If not specified, the default maximum HTTP cache size is 300 Mb.
ImageData
Image data: size, format, and binary data.
public init(
size: ScreenSize,
format: ImageFormat,
data: Data
)
IndoorControlOptions
Settings for the floor control element in the building.
public init(visibilityBehavior: VisibilityBehavior)
visibilityBehavior
init(
visibilityBehavior: VisibilityBehavior,
markingByRoute: MarkingByRoute
)
visibilityBehavior
markingByRoute
IndoorView
Ui control of floor switching in SwiftUI.
var body
Contents and behavior of the control.
InstructionRouteEntry
Route element - a point and a value in it.
public init(
point: RoutePoint,
value: RouteInstruction
)
IntRouteEntry
Route element - a point and a value in it.
IsOpenNow
Open now.
public init()
KeyFromAsset
Key from an asset. For Android - assets directory. For iOS - Bundle.main directory.
KeyFromFile
KeyFromString
Key from a string.
LaneOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
LanesCalloutMapPosition
Position of the lane bubble for the route.
public init(
mapId: MapId,
routePoint: RoutePoint,
geoPoint: GeoPoint
)
LaneSignRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RouteLaneSign
)
Latitude
Geographic latitude.
static func + (lhs: Latitude, rhs: Latitude) -> Latitude
static func - (lhs: Latitude, rhs: Latitude) -> Latitude
static func * (lhs: Latitude, rhs: Double) -> Self
static func * (lhs: Double, rhs: Latitude) -> Self
static func / (lhs: Latitude, rhs: Double) -> Self
static func <= (lhs: Latitude, rhs: Latitude) -> Bool
static func >= (lhs: Latitude, rhs: Latitude) -> Bool
public init(floatLiteral value: Double)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
LevelId
Floor plan identifier.
LevelInfo
Building floor information.
Locale
Locale identifier in the format [language designer]-[region designer]. Where language designer is the language code described in ISO 639-1, region designer is the country code described in ISO 3166-1.
static func makeLocale(
localeStr: String
) -> Locale?
Creates a locale from a string representation in the LanguageTag or POSIX format.
func toLocalePosix() -> String
Location
Geoposition.
public init(
coordinates: LocationCoordinates,
altitude: LocationFuzzyDouble?,
course: LocationCourse?,
groundSpeed: LocationFuzzyDouble?,
source: String,
timestamp: TimeInterval
)
coordinates
altitude
course
groundSpeed
source
timestamp
var coordinates
coordinates::value - geoposition coodinates. coordinates::accuracy - horizontal accuracy of geopositioning coordinates (DRMS), m. https://en.wikipedia.org/wiki/Circular_error_probable Value range: >= 0.
var altitude
altitude::value - altitude above the WGS84 reference ellipsoid, m. altitude::accuracy - standard deviation of the altitude measurement error, m. nil means that the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation Value range: (nil, > 0).
var course
course::value - bearing (direction of travel along the Earth's surface. The angle is measured relative to geographic north). course::accuracy - standard deviation of the error of the bearing measurement. nil means that the platform does not provide this field. https://en.wikipedia.org/wiki/Standard_deviation Value range: (nil, > 0).
var groundSpeed
ground_speed - speed along the Earth surface, m/s. Value range: >= 0. ground_speed::accuracy - mean square deviation of the speed measurement error, m/s. nil means that the platform does not provide this field. https://en.wikipedia.org/wiki/Rayleigh_distribution Value range: (nil, > 0).
var source
Name of the geoposition source.
The timestamps between different geoposition sources are not synchronized, so you cannot compare the timestamps of geopositions that are derived from different sources.
var timestamp
Time point at which the geoposition was determined. This point is not attached to any specific date and is used solely to calculate the time between two geopositioning measurements obtained from one geopositioning source in one session. This field should increase monotonically (even when the system is in sleep mode).
LocationCoordinates
LocationCourse
LocationFuzzyDouble
LogicalPixel
Pixel the size of which is independent of screen density.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
LogMessage
Message being logged.
LogOptions
SDK logging settings.
Longitude
Geographic longitude.
static func + (lhs: Longitude, rhs: Longitude) -> Longitude
static func - (lhs: Longitude, rhs: Longitude) -> Longitude
static func * (lhs: Longitude, rhs: Double) -> Self
static func * (lhs: Double, rhs: Longitude) -> Self
static func / (lhs: Longitude, rhs: Double) -> Self
static func <= (lhs: Longitude, rhs: Longitude) -> Bool
static func >= (lhs: Longitude, rhs: Longitude) -> Bool
public init(floatLiteral value: Double)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
MapDirection
Angle of the object relative to the north direction, in degrees, counted clockwise.
MapGestureViewFactory
Default gesture processing factory.
public func makeGestureView(
map: Map,
eventProcessor: IMapEventProcessor,
coordinateSpace: IMapCoordinateSpace
) -> UIView & IMapGestureView
Creates a gesture handling layer.
MapGestureViewOptions
Default gesture layer settings.
public init(
doubleTapScalingCenter: ScalingCenter,
twoFingerTapScalingCenter: ScalingCenter,
pinchScalingCenter: ScalingCenter
)
doubleTapScalingCenter
twoFingerTapScalingCenter
pinchScalingCenter
var doubleTapScalingCenter
var twoFingerTapScalingCenter
var pinchScalingCenter
static let `default`
Default settings. For double tap and two-finger tap gestures, zooming is relative to the location of the gesture.
MapId
Identifier of the map instance, unique within the process.
public init(
value: Int32 = 0
)
value
var value
MapMarkerView
public init(
viewModel: MapMarkerViewModel,
content: AnyView,
tapHandler: (() -> Void)? = nil
)
public static func == (lhs: MapMarkerView, rhs: MapMarkerView) -> Bool
Returns a Boolean value indicating whether two values are equal.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
hasher
The hasher to use when combining the components of this instance.
MapMarkerViewOverlay
public func removeAll()
var body
The content and behavior of the view.
MapOptions
Initial map properties that can be set during its initialization. A property set to nil will not be applied, so the default value will be used.
var devicePPI
Number of physical screen points in a line 2.54 cm long.
var deviceDensity
Multiplier that is calculated as the ratio of devicePPI to the device's base DPI. The multiplier value corresponds to the nativeScale of the target screen.
var position
Camera location relative to the map.
var positionPoint
Relative location of the map location point in the camera view space.
var zoomRestrictions
Boundaries of the map zoom.
var sources
Map data sources.
var sourceDescriptors
Simplified way to specify map data sources.
var styleFuture
Initial map style with delayed loading. The style can be loaded using an IStyleFactory instance, see. Container.styleFactory'. Use Future.makeReadyValue(style)` if the style is already loaded.
var gestureViewFactory
Gesture processing layer factory. If nil, gestures are not processed until the IMapView.gestureView property is set.
var graphicsPreset
Selects a graphic preset.
var appearance
Selection of a theme within the selected map style, taking into account the environment.
var maxFps
Maximum allowable map refresh frequency.
var powerSavingMaxFps
Maximum allowable map refresh frequency in energy saving mode.
var backgroundColor
Backgroud color for loading styles.
static var `default`
Initial settings set when creating map objects. The DPI is determined based on the main device screen (see DevicePpi.autodetected). If autodetected fails, DevicePpi.defaultForFailedAutodetection is used.
MapViewOverlay
Protocol of the SwiftUI map layer.
func mapViewOverlayGestureView(_ view: (UIView & IMapGestureView)?) -> MapViewOverlay
Additional layer placed above the whole map surface. Used for intercepting gestures. If this layer is replaced with another one, you must also implement sending the map gestures via IMapEventProcessor. If the nil value is set, the built-in gesture handling is stopped.
func mapViewOverlayAppearance(_ value: MapAppearance) -> MapViewOverlay
Sets an active theme set of the current style and enables automatic theme switching depending on the environment. If .automatic is selected, the map switches to the selected theme depending on the current look (light or dark).
func mapViewOverlayShowsAPIVersion(_ value: Bool) -> MapViewOverlay
Whether to show the API version in the copyright. Default value is false.
func mapViewOverlayCopyrightAlignment(_ alignment: CopyrightAlignment) -> MapViewOverlay
Copyright location.
func mapViewOverlayCopyrightInsets(_ insets: EdgeInsets) -> MapViewOverlay
Margin between the copyright and map borders. Default value is .zero. During positioning, safeAreaInsets of the map view are considered. Margin values cannot be negative.
func mapViewOverlayUrlOpener(_ url: ((URL) -> Void)?) -> MapViewOverlay
Custom handler of opening the URL when a user taps the copyright.
Enables redefining the default behavior when following the link is done without user confirmation.
func mapViewOverlayObjectTappedCallback(callback: MapObjectTappedCallback) -> MapViewOverlay
Adds a callback function that is called after a click on the map.
func mapViewOverlayObjectLongPressCallback(callback: MapObjectTappedCallback) -> MapViewOverlay
Adds a callback function that is called after a long click on the map.
func mapViewOverlayRemoveObjectTappedCallback(callback: MapObjectTappedCallback) -> MapViewOverlay
Removes a callback function that is called after a click on the map.
func mapViewOverlayRemoveLongPressCallback(callback: MapObjectTappedCallback) -> MapViewOverlay
Removes a callback function that is called after a long click on the map.
var body
Contents and behavior of the control.
MarkedUpText
Span text.
public init(
text: String,
matchedParts: [MarkedUpTextSpan]
)
MarkedUpTextSpan
Describes a subset of bytes of the string text.
MarkerOptions
Marker settings.
public init(
position: GeoPointWithElevation,
icon: Image?,
iconMapDirection: MapDirection? = nil,
anchor: Anchor = Anchor(x: 0.5, y: 0.5),
text: String? = nil,
textStyle: TextStyle? = nil,
iconOpacity: Opacity = Opacity(value: 1),
visible: Bool = true,
draggable: Bool = false,
iconWidth: LogicalPixel = LogicalPixel(value: 0),
userData: Any = (),
zIndex: ZIndex = ZIndex(value: 0),
animatedAppearance: Bool = true,
levelId: LevelId? = nil,
iconAnimationMode: AnimationMode = AnimationMode.normal
)
position
icon
iconMapDirection
anchor
text
textStyle
iconOpacity
visible
draggable
iconWidth
zIndex
animatedAppearance
levelId
iconAnimationMode
var position
var icon
var iconMapDirection
var anchor
var text
var textStyle
var iconOpacity
var visible
var draggable
var iconWidth
Target width used for scaling.
var userData
var zIndex
Object drawing level.
var animatedAppearance
Whether to animate the appearance.
var levelId
Binding to the floor plan of the building.
var iconAnimationMode
Animation mode.
MeasurementFormatterOutput
Result of the formatting of the measurement.
Meter
Length/distance in meters.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
MillisecondsRouteEntry
Route element - a point and a value in it.
ModelMapObjectOptions
Model parameters.
public init(
position: GeoPointWithElevation,
data: ModelData?,
size: ModelSize,
mapDirection: MapDirection? = nil,
opacity: Opacity = Opacity(value: 1),
visible: Bool = true,
userData: Any = (),
levelId: LevelId? = nil
)
position
data
size
mapDirection
opacity
visible
levelId
var position
Location.
var data
Data.
var size
Target width for scaling.
var mapDirection
Angle of the model rotation on the map relative to the north direction in degrees, counted clockwise.
var opacity
Opacity.
var visible
Visibility.
var userData
User data.
var levelId
Binding to the floor plan of the building.
ModelScale
Model scaling factor selected manually. Available values are from 0.0 to 64.0.
public init(
value: Float = 0
)
value
var value
MTLDeviceError
MyLocationControllerSettings
Settings of the controller of a geolocation marker moving.
public init(
bearingSource: BearingSource? = BearingSource.auto,
animationDuration: TimeInterval = 1,
coordinatesThreshold: Meter = Meter(value: 0.10000000149011612),
bearingThreshold: Bearing = Bearing(value: 1)
)
bearingSource
animationDuration
coordinatesThreshold
bearingThreshold
var bearingSource
Bearing source. If missing, a marker without bearing is displayed.
var animationDuration
Non-negative duration of the real direction change.
var coordinatesThreshold
Non-negative threshold value of the considered change of the real position and its precision.
var bearingThreshold
Non-negative threshold value of the considered change of the real bering.
NavigationViewOptions
Navigator interface settings.
var mapControlsBehaviour
var distanceFormattingStrategy
var durationFormattingStrategy
var durationValueFormattingStrategy
var timeFormattingStrategy
var speedFormattingStrategy
var theme
var roadEventCardViewOptions
var roadEventCreationEnabled
var dashboardButtonSettings
static var `default`
Navigator default interface settings.
NavigationViewTheme
Navigator theme.
let colors
var dashboardTheme
var remainingRouteInfoControlTheme
var nextManeuverControlTheme
var speedControlTheme
var cameraControlTheme
var messageBarControlTheme
var mapControlsTheme
var betterRouteControlTheme
var thermometerTheme
var routeOverviewControlTheme
static let `default`
Default navigator theme.
NavigatorView
var body
Content and behavior of the View.
NoopCancellable
Ready-made ICancellable implementation that does not override anything.
public init()
public func cancel()
ObstacleInfo
Obstacle information on the route.
public init(
type: Obstacle = Obstacle.other,
limitation: ObstaclePassLimitation = ObstaclePassLimitation.unlimited
)
ObstacleInfoRouteEntry
Route element - a point and a value in it.
ObstacleInfoRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: ObstacleInfo
)
Opacity
Opacity - from 0.0 (full transparency) to 1.0 (full opacity).
public init(
value: Float = 0
)
value
var value
OpeningHours
Hours of operation for the organization.
public init(
weekOpeningHours: [[WeekTimeInterval]],
isOpen24x7: Bool
)
OrderedValue
Describes one value from the set.
OrderedValues
Describes a set of sorted values.
public init(
values: [OrderedValue],
currentMinIndex: UInt64? = nil,
currentMaxIndex: UInt64? = nil
)
OrgId
Identifier of the organization.
OrgInfo
Information about the organization.
PackageInfo
Package information. See IPackage.
public init(
name: String,
installed: Bool = false,
incomplete: Bool = true,
preinstalled: Bool = false,
compatible: Bool = false,
hasUpdate: Bool = false,
error: PackageInfoError?,
updateStatus: PackageUpdateStatus = PackageUpdateStatus.notAvailable,
finalSizeOnDisk: UInt64? = nil,
currentSizeOnDisk: UInt64 = 0
)
name
installed
incomplete
preinstalled
compatible
hasUpdate
error
updateStatus
finalSizeOnDisk
currentSizeOnDisk
var name
Localized name of the package.
var installed
Installation sign - true if the package has been selected for installation.
var incomplete
Sign of incomplete installation - true if there is no fully downloaded version of the package (possibly incompatible with the current SDK version).
var preinstalled
Sign of preinstalled packages. Preinstalled packages are always installed and fully loaded, and cannot be removed.
var compatible
Compatibility sign - true in case the downloaded package is compatible with the current SDK version.
var hasUpdate
Update availability sign is true in case there is an update for the downloaded package. It is possible situation, when during update process to new version even newer version of the package became available on the server. In this case the value will be true both during and after the upgrade.
var error
Error that occurs during an attempt to download and/or install a package. If no error occurs, nil is returned.
var updateStatus
Package upgrade status.
var finalSizeOnDisk
Size of the disk space that the territory takes after installation, in bytes. Uninitialized value indicates that the territory does not contain files (this information is obtained from a preinstalled status file that does not contain a list of territory files).
var currentSizeOnDisk
Size of the disk space that currently installed territory files take, in bytes
Padding
Padding the edges of the camera.
ParkingCapacity
Parking capacity.
public init(
total: String?,
specialSpaces: [SpecialSpace]
)
ParkingInfo
General information about the parking lot.
public init(
type: ParkingType?,
purpose: ParkingPurpose,
access: ParkingAccess,
pavingType: ParkingPavingType?,
isPaid: Bool,
isIncentive: Bool,
forTrucks: Bool,
levelCount: UInt16?,
capacity: ParkingCapacity?
)
type
purpose
access
pavingType
isPaid
isIncentive
forTrucks
levelCount
capacity
PedestrianBriefRouteInfo
Basic information about the walking route.
PedestrianInstructionCrossroad
Description of maneuvers when passing through an intersection or crosswalk.
public init(
landmark: PedestrianInstructionCrossroadLandmark = PedestrianInstructionCrossroadLandmark.`none`,
maneuvers: [PedestrianInstructionCrossroadManeuver]
)
PedestrianInstructionCrossroadManeuver
public init(
direction: PedestrianInstructionCrossroadManeuverDirection = PedestrianInstructionCrossroadManeuverDirection.straight,
turnAngle: Int32 = 0
)
PedestrianInstructionFinish
End of the pedestrian part of the route.
public init()
PedestrianInstructionIndoorEnter
Entrance to the building.
PedestrianInstructionIndoorExit
Building exit.
public init()
PedestrianInstructionIndoorFloorChange
Floor change in the building.
public init(
type: PedestrianInstructionIndoorFloorChangeType = PedestrianInstructionIndoorFloorChangeType.undefined,
beginId: LevelId = LevelId(),
endId: LevelId = LevelId()
)
PedestrianInstructionStart
Starts of the walking part of the route.
public init()
PedestrianRouteSearchOptions
Pedestrian route search options.
public init(
avoidStairways: Bool = false,
avoidUnderpassesAndOverpasses: Bool = false,
useIndoor: Bool = true,
excludedAreas: [ExcludedArea] = []
)
PersonalDataCollectionOptions
Personal data collection and processing settings.
public init(personalDataCollectionConsent: PersonalDataCollectionConsent)
personalDataCollectionConsent
PolygonOptions
Polygon parameters.
public init(
contours: [[GeoPoint]],
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value: 0),
strokeColor: Color = Color(),
visible: Bool = true,
userData: Any = (),
zIndex: ZIndex = ZIndex(value: 0),
levelId: LevelId? = nil
)
contours
color
strokeWidth
strokeColor
visible
zIndex
levelId
PolylineOptions
Polyline parameters.
public init(
points: [GeoPoint],
width: LogicalPixel = LogicalPixel(value: 1),
color: Color = Color(),
erasedPart: Double = 0,
dashedPolylineOptions: DashedPolylineOptions? = nil,
gradientPolylineOptions: GradientPolylineOptions? = nil,
visible: Bool = true,
userData: Any = (),
zIndex: ZIndex = ZIndex(value: 0),
levelId: LevelId? = nil
)
points
width
color
erasedPart
dashedPolylineOptions
gradientPolylineOptions
visible
zIndex
levelId
var points
Polyline points.
var width
Polyline width.
var color
Main color of the polyline.
var erasedPart
Proportion of erased part of the polyline, must be in the [0; 1] range.
var dashedPolylineOptions
Dashed polyline options.
Dashed gradient line is not currently supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, the dashed_polyline_options will be ignored when creating a polyline.
var gradientPolylineOptions
Gradient polyline options.
Dashed gradient line is not currently supported, so if both dashed_polyline_options and gradient_polyline_options are present in PolylineOptions, the dashed_polyline_options will be ignored when creating a polyline.
var visible
Visibility of a polyline.
var userData
User data.
var zIndex
Object drawing level.
var levelId
Binding to the floor plan of the building.
PublicBriefRouteInfo
Basic information about the route on public transportation.
public init(
publicTransportInfos: [PublicBriefRouteTransportInfo]
)
publicTransportInfos
var publicTransportInfos
Description of route options on public transportation.
PublicBriefRouteTransportInfo
Description of the means of public transportation.
public init(
type: PublicTransportType = PublicTransportType.bus,
names: [String],
color: UInt32?,
routeLogo: String
)
var type
Type of public transport vehicle.
var names
Names of the used public transport routes.
var color
ARGB representation of the color associated with a given public transport mode, such as the color of a subway line. If there is no information about the color, the field will be nil.
var routeLogo
Icon identifier for route stops. An empty string if no information is available. Technical field.
PublicRoutePart
Description of the section of the route on public transportation.
public init(
transports: [PublicTransportInfo],
intermediateStops: [PublicTransportStop]
)
var transports
Types of public transport that can be used to travel this section of the route.
If the list is empty, this route section is suggested to be traveled by private or rented transport or on foot.
var intermediateStops
Intermediate stops that transport will pass before reaching the transfer point.
PublicTransportInfo
Description of the means of public transportation.
var type
Type of public transport vehicle.
var names
Names of the used public transport routes.
var suggestedCarNumbers
Car numbers in that boarding recommended.
If a vehicle consists of a single car or one can board any car, this list will be empty.
var boardingSuggest
Text description of the cars in which boarding is recommended.
var color
ARGB representation of the color associated with a given public transport mode, such as the color of a subway line. If there is no information about the color, the field will be nil.
var routeLogo
Icon identifier for route stops. An empty string if no information is available. Technical field.
PublicTransportRouteSearchOptions
Route search options on public transport.
public init(
startTime: Date? = nil,
useSchedule: Bool = false,
transportTypes: PublicTransportTypeOptionSet = []
)
var startTime
Time in UTC for which the route is to be plotted. If not specified, the current time is used.
var useSchedule
Public transport schedules are taken into account when constructing the route.
var transportTypes
Types of public transport. If not filled in, routes will be built for all supported public transport types.
PublicTransportStop
Description of the public transport stop.
PublicTransportTransfer
Description of the way to get by public transport to the next transfer point.
public init(
startPointName: String,
finishPointName: String,
routeParts: [PublicRoutePart]
)
PublicTransportTransferRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: PublicTransportTransfer
)
PublicTransportTypeOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let bus
static let trolleybus
Trolleybus.
static let tram
static let shuttleBus
Shuttle bus.
static let metro
Subway.
static let suburbanTrain
Suburban train.
static let funicularRailway
Funicular.
static let monorail
Monorail.
static let waterwayTransport
Water transport.
static let cableCar
Cable car.
static let speedTram
High-speed tram.
static let premetro
Underground tram.
static let lightMetro
Light metro.
static let aeroexpress
Aeroexpress.
static let moscowCentralRing
Moscow Central Ring.
static let moscowCentralDiameters
Moscow Central Diameters.
PurposeCode
Code of the purpose of the building.
RangeFilter
Filter of value ranges.
RemainingRouteInfoView
var body
Content and behavior of the view.
RenderedObject
Displayed map object.
RenderedObjectInfo
Detailed information about the displayed map object.
public init(
closestViewportPoint: ScreenPoint,
closestMapPoint: GeoPointWithElevation,
item: RenderedObject
)
Reviews
Reviews.
RoadCameraInfo
Camera information.
public init(
purposes: CameraPurposeOptionSet,
speedLimit: UInt16?
)
RoadEventActionInfo
Action information.
public init(
state: RoadEventActionState,
count: UInt32?
)
RoadEventCardViewOptions
Traffic event card settings.
public init(
timeFormattingStrategy: TimeFormattingStrategy = .default
)
Settings constructor.
timeFormattingStrategy
Method of formatting date/time.
RoadEventDisplayCategoryOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let camera
Cameras of all types, including those added by the user.
static let comment
Comments on the roads.
static let accident
Traffic accident.
static let roadRestriction
Road closures.
static let roadWorks
Road works.
static let other
Events in the Other category.
static let user
Always displays events created by the current user, regardless of their category.
RoadEventMapObjectRouteEntry
Route element: a point and a value in it.
public init(
point: RoutePoint,
value: RoadEventMapObject
)
RoadEventRouteEntry
Route element - a point and a value in it.
RoadRuleRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RoadRule
)
RoadSubtypeRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RoadSubtype
)
RoadSurfaceRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RoadSurface
)
RoadTypeRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RoadType
)
RouteBuildOptions
The structure that describes the route building parameters in the navigator.
public init(
finishPoint: RouteSearchPoint,
routeSearchOptions: RouteSearchOptions
)
RouteCamera
Structure describing the traffic camera.
public init(
purposes: RouteCameraPurposeOptionSet,
rangeAgainst: RouteDistance,
rangeAlong: RouteDistance,
direction: RouteCameraDirection = RouteCameraDirection.against,
maxSpeedLimit: Float?
)
purposes
rangeAgainst
rangeAlong
direction
maxSpeedLimit
var purposes
Camera purposes.
var rangeAgainst
Range of camera action against the motion.
var rangeAlong
Range of the camera against the motion.
var direction
Direction of camera action.
var maxSpeedLimit
Speed in m/s, the exceeding of which is captured by a camera. Missing if the camera does not detect exceeding the speed limit.
RouteCameraPurposeOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let speedControl
Recording of exceeding the speed limit.
static let trafficLightsControl
Recording of passing at the forbidden signal of traffic lights.
static let stopLineControl
Recording of driving over the stop line, driving without stopping the stop sign, driving to the intersection during a jam.
static let publicTransportLaneControl
Recording of movement on the dedicated lane for public transport.
static let oncomingTrafficLaneControl
Recording driving in the oncoming lane.
static let pedestrianAdvantageControl
Recording of failure to give preference to pedestrians.
static let laneDisciplineControl
Recording of violation of lane rotation at the intersection.
static let roadMarkingsCrossingControl
Recording of crossing the solid line of road markings, driving on the side of the road.
static let averageSpeedControl
Recording of exceeding the average speed on the section.
static let noStoppingControl
Recording of violation of prohibition of stopping.
static let dummy
Fake item.
static let platon
Platon” system camera: https://platon.ru/en/about/.
RouteDistance
Distance along the route.
public init(
millimeters: Int64 = 0
)
millimeters
var millimeters
RouteEditorRouteParams
Route parameter information.
public init(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint,
routeSearchOptions: RouteSearchOptions,
intermediatePoints: [RouteSearchPoint] = []
)
startPoint
finishPoint
routeSearchOptions
intermediatePoints
RouteEditorRoutesInfo
Information about the routes the editor operates on.
public init(
routes: [TrafficRoute],
routeParams: RouteEditorRouteParams
)
var routes
When the route list is updated, the first route will be active if the route list is not empty.
var routeParams
Route parameters for which the search was performed. Can be different from the parameters passed to the editor, if routes were found already after the parameters were changed in the editor.
RouteExitSign
Exit sign information.
public init(
type: RouteExitSignType = RouteExitSignType.undefined,
roadNameTable: RouteExitSignTable,
roadNumberTable: RouteExitSignTable?
)
RouteExitSignRouteEntry
Route element - a point and a value in it.
RouteExitSignTable
Exit sign information.
public init(
backgroundColor: RouteExitSignTableColor = RouteExitSignTableColor.undefined,
text: String
)
RouteIndex
RouteInfo
Route description with maneuvers.
public init(
route: Route,
routeBuildOptions: RouteBuildOptions?,
external: Bool = false
)
var route
Route.
var routeBuildOptions
Route construction parameters in the navigator. The nil value means that the route has no finish point. In this case, a section of road, which is supposedly used by the user, is calculated based on the road graph and parameters of the user's movement and is returned as a route in the route field. Consequently, this route cannot contain instructions, and the last point in this route is not the destination point to which the user is moving, but simply the point to which the user's movement was predicted. It is not known where the user will go next. This mode of the navigator operation is called a mode of guidance without a route or free roam.
var external
Route source. True - the route is passed to the navigator externally in the start method. False - the route is generated by the navigator.
RouteInstruction
The instruction that must be executed to drive the route.
public init(
roadName: String,
range: RouteDistance,
extraInstructionInfo: ExtraInstructionInfo
)
RouteLane
Structure describing a single lane.
public init(
routeManeuver: RouteLaneManeuver = RouteLaneManeuver.undefined,
maneuvers: RouteLaneManeuverOptionSet,
speedLimit: Float = 0,
prohibited: Bool = false,
onlyPublicTransport: Bool = false
)
routeManeuver
maneuvers
speedLimit
prohibited
onlyPublicTransport
var routeManeuver
Maneuver to be performed to move along the route.
var maneuvers
Allowed maneuvers to be made in the lane.
var speedLimit
Maximum permitted speed on the lane is m/s. 0 - speed limit is unknown.
var prohibited
No passing in the lane.
var onlyPublicTransport
Public transportation lane.
RouteLaneManeuverOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let undefined
Not set.
static let forward
Straight ahead.
static let right
To the right.
static let left
To the left.
static let slightlyRight
Slightly to the right.
static let slightlyLeft
Slightly to the left.
static let sharplyRight
Sharply to the right.
static let sharplyLeft
Sharply to the left.
static let rightWithLeftTurns
To the right, then to the left.
static let turnover
U-turn.
RouteLaneSign
Description of the lanes.
public init(
lanes: [RouteLane],
signStartPoint: RoutePoint?,
signPoint: RoutePoint?,
signEndPoint: RoutePoint?
)
var lanes
Lanes for cars on a road section. Listed in order from the edge to the middle of the roadway.
If the number of lanes is unknown or there is only one lane on the road in the direction of the route, this array is empty.
var signStartPoint
Point on the route at which the lane traffic sign starts. nil if the starting position of the sign is unknown.
var signPoint
Point on the route at which the lane control sign begins. nil if the position of the sign is unknown.
var signEndPoint
Point on the route at which the lane control sign ends. nil if the end position of the sign is unknown.
RouteLevelInfo
Building floor information corresponding to the route section.
RouteLevelInfoRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: RouteLevelInfo
)
RouteMapObjectCalloutLabelFlagOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
RouteMapObjectDisplayFlagOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let routeParts
Route segments.
static let startPoint
Starting point of the route.
static let finishPoint
Finish point of the route.
static let intermediatePoints
Intermediate waypoints.
static let transportConnectionPoints
Connection points of route segments (except for routes on public transport). For example, a point at the junction point of a pedestrian and automobile segment.
static let maneuvers
Maneuvers.
static let cameras
static let humps
Artificial bumps.
static let barriers
Road closures.
static let gates
Gates, barriers.
static let stairways
static let publicTransportPlatforms
Public transport stops.
static let accidents
Traffic accident.
static let roadWorks
Road works.
static let comments
Comments.
static let roadRestrictions
Traffic closures.
static let otherEvents
Other" events.
static let tollRoads
Start and end of toll road.
static let lanesBubbles
Lane bubbles (displayed only in source with navigation mode).
static let bubbles
Lane bubbles with travel time and route length.
static let indoorInstructions
Instructions in buildings. Move by elevator, escalator, etc.
static let inactiveFloors
Shows parts of the route inside buildings not just for the active floor.
static let trafficLights
Highlight traffic lights on the route.
static let immersiveRouteParts
Use immersive geometry for route parts (used together with RouteParts).
RouteMapObjectPermanentDisplayFlagOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
The corresponding value of the raw type.
static let startPoint
Starting point of the route.
static let finishPoint
Finish point of the route.
static let intermediatePoints
Intermediate waypoints.
static let cameras
static let accidents
Traffic accident.
static let roadWorks
Road works.
static let comments
static let roadRestrictions
Traffic closures.
static let otherEvents
Other" events.
static let tollRoads
Start and finish of toll road.
RoutePoint
Point on the route, set as the distance along the route relative to the start of the route.
var distance
RouteSearchPoint
Description of the points on which the route is built.
public init(
coordinates: GeoPoint,
course: Bearing? = nil,
objectId: DgisObjectId = DgisObjectId(objectId: 0, entranceId: 0),
levelId: LevelId? = nil
)
RubricId
Schedule
Road event action schedule.
public init(
startTime: Date?,
finishTime: Date?,
weekTimeIntervals: [WeekTimeInterval]
)
ScooterBriefRouteInfo
Basic route information on the scooter.
ScooterInstructionCrossroad
Description of maneuvers when passing through an intersection or crosswalk.
public init(
landmark: ScooterInstructionCrossroadLandmark = ScooterInstructionCrossroadLandmark.`none`,
maneuvers: [ScooterInstructionCrossroadManeuver]
)
ScooterInstructionCrossroadManeuver
public init(
direction: ScooterInstructionCrossroadManeuverDirection = ScooterInstructionCrossroadManeuverDirection.straight,
turnAngle: Int32 = 0
)
ScooterInstructionFinish
End of the scooter part of the route.
public init()
ScooterInstructionStart
Start of the scooter part of the route.
public init()
ScooterRouteSearchOptions
Search parameters for scooter routes.
public init(
avoidCarRoads: Bool = true,
avoidStairways: Bool = true,
avoidUnderpassesAndOverpasses: Bool = true,
excludedAreas: [ExcludedArea] = []
)
ScreenDistance
Distance between objects on the screen in millimeters.
Cannot be negative.
public init(
value: Float = 0
)
value
var value
ScreenPoint
Point in screen coordinates.
public init(
x: Float = 0,
y: Float = 0
)
x
y
ScreenShift
Horizontal and vertical displacement of the map in the coordinates space of the screen.
public init(
dx: Float = 0,
dy: Float = 0
)
dx
dy
ScreenSize
Size in pixels.
SDKError
SearchHistoryFilterOptionSet
public init(rawValue: UInt32)
Creates a new OptionSet from the given raw value.
rawValue
The raw value of the option set (OptionSet) to create. Each bit of rawValue potentially represents an element of the OptionSet, but raw values may include bits that are not defined as distinct values of the OptionSet type.
SearchHistoryPage
public init(
limit: UInt64 = 100,
offset: UInt64 = 0,
filter: SearchHistoryFilterOptionSet = []
)
SegmentGeoPoint
Describes a geographic point on the segment and the direction of the segment. The route geometry is a sequence of points that form segments in pairs. For all functions working with the route geometry, it is considered that the first point of the pair forming the segment is included in this segment, and the second one is not: [point_1, point_2),[point_2, point_3),...,[point_n-1, point_n)[point_last]. The last point forms a zero-length segment with itself. Thus, each point of the route belongs to exactly one segment. The direction of point_last is not defined.
SettlementRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: Settlement
)
SimpleClusterOptions
Parameters of the cluster marker simple marker objects.
public init(
icon: Image?,
iconMapDirection: MapDirection? = nil,
anchor: Anchor = Anchor(x: 0.5, y: 0.5),
text: String? = nil,
textStyle: TextStyle? = nil,
iconOpacity: Opacity = Opacity(value: 1),
iconWidth: LogicalPixel = LogicalPixel(value: 0),
userData: Any = (),
zIndex: ZIndex = ZIndex(value: 0),
animatedAppearance: Bool = true,
iconAnimationMode: AnimationMode = AnimationMode.normal
)
icon
iconMapDirection
anchor
text
textStyle
iconOpacity
iconWidth
zIndex
animatedAppearance
iconAnimationMode
SimpleError
public static func == (lhs: SimpleError, rhs: SimpleError) -> Bool
Returns a Boolean value indicating whether two values are equal.
SimulationAutoWithOverSpeed
Structure for setting the mode of driving taking into account the maximum speed on the route edge.
SimulationConstantSpeed
Structure for setting the mode of driving with constant speed.
SortingFilter
Sorting type.
SoundCategoryOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
rawValue
Raw value of the option set to create. Each bit of rawValue potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the OptionSet type.
var rawValue
Corresponding value of the raw type.
static let crossroadCameras
Intersection control cameras.
static let laneCameras
Cameras recording traffic in the dedicated lane for public transport.
static let noStoppingControlCameras
Stop control cameras.
static let roadMarkingCameras
Traffic lane cameras.
static let averageSpeedCameras
Average speed cameras.
static let maxSpeedCameras
Instant speed cameras.
static let accidents
Accidents.
static let roadWorks
Road works.
static let tolls
Toll roads.
static let exceedSpeedLimits
Violations of maximum permitted speed.
static let intermediatePoints
Intermediate points on the route.
static let routeRebuild
Route is rebuilt.
static let instructions
Instructions (maneuvers) on route.
static let obstacles
Obstacles.
static let roadSubtypes
Road subtypes.
static let lostLocation
Lost GPS signal.
static let routeEnd
Route completion.
SpecialSpace
Special parking space.
public init(
type: SpecialSpaceType,
name: String,
count: String?
)
SpeedRange
Speed interval. Speeds are specified in meters per second.
SpeedRangeToStyleZoom
Matching speed interval and style zoom.
public init(
range: SpeedRange,
minDistanceToManeuver: RouteDistance,
maxDistanceToManeuver: RouteDistance,
styleZoom: StyleZoom
)
range
minDistanceToManeuver
maxDistanceToManeuver
styleZoom
StringRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: String
)
StyleLayerId
StyleZoom
Style zoom level.
Cannot be negative.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
TaxiRouteSearchOptions
Parameters for route search by taxi.
var car
Route search parameters common to other car routes.
TextStyle
Text appearance settings.
public init(
fontSize: LogicalPixel = LogicalPixel(value: 8),
color: Color = Color(),
strokeWidth: LogicalPixel = LogicalPixel(value: 0.3499999940395355),
strokeColor: Color = Color(argb: 4294967295),
textHorizontalAlignment: TextHorizontalAlignment = TextHorizontalAlignment.auto,
textPlacement: TextPlacement = TextPlacement.bottomCenter,
textOffset: LogicalPixel = LogicalPixel(value: 0),
fontName: String? = nil,
suppressOnOverlap: Bool = true
)
fontSize
color
strokeWidth
strokeColor
textHorizontalAlignment
textPlacement
textOffset
fontName
suppressOnOverlap
Theme
Specifies a theme within some style (see Style).
public init(stringLiteral value: String)
Creates an instance initialized to the given string value.
value
Value of the new instance.
Tilt
Tilt angle in degrees, where 0 is nadir (looking vertically down), 90 is front horizon.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
TradeLicense
License of the organization.
TrafficControlState
State of the traffic control.
public init(
status: TrafficControlStatus = TrafficControlStatus.hidden,
score: UInt32?
)
TrafficScore
Traffic rate.
public init(
state: TrafficScoreState = TrafficScoreState.pending,
value: UInt32?
)
TrafficSpeedColorRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: TrafficSpeedColor
)
TrafficView
UI control of the traffic jam visibility.
var body
Contents and behavior of the control.
TrafficViewColors
public init(
titleColor: SwiftUI.Color,
enabledTitleColor: SwiftUI.Color,
iconColor: SwiftUI.Color,
enabledIconColor: SwiftUI.Color,
emptyStateLoadingColor: SwiftUI.Color,
disabledInnerBackgroundColor: SwiftUI.Color,
lowScoreColor: SwiftUI.Color,
mediumScoreColor: SwiftUI.Color,
highScoreColor: SwiftUI.Color,
lowScoreDisabledColor: SwiftUI.Color,
mediumScoreDisabledColor: SwiftUI.Color,
highScoreDisabledColor: SwiftUI.Color
)
titleColor
enabledTitleColor
iconColor
enabledIconColor
emptyStateLoadingColor
disabledInnerBackgroundColor
lowScoreColor
mediumScoreColor
highScoreColor
lowScoreDisabledColor
mediumScoreDisabledColor
highScoreDisabledColor
static let `default`
TransportTypeRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: TransportType
)
TruckPassZoneId
Identifier of the pass zone for trucks. The value 0 corresponds to the absence of the pass zone.
TruckPassZoneIdRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: TruckPassZoneId
)
TruckPassZonePass
Pass allowing truck traffic in the pass zones.
public init(
id: TruckPassZonePassId,
name: String,
passZoneIds: Set<TruckPassZoneId>
)
TruckPassZonePassId
TruckRouteSearchOptions
Truck route search parameters. Only filled parameters are taken into account when searching a route.
public init(
car: CarRouteSearchOptions,
truckLength: UInt32? = nil,
truckHeight: UInt32? = nil,
truckWidth: UInt32? = nil,
actualMass: UInt32? = nil,
maxPermittedMass: UInt32? = nil,
axleLoad: UInt32? = nil,
dangerousCargo: Bool = false,
explosiveCargo: Bool = false,
passIds: Set<TruckPassZonePassId> = [],
fallbackOnCar: Bool = false
)
var car
Route search parameters common to other car routes.
var truckLength
Length of cargo vehicle in millimeters.
var truckHeight
Cargo vehicle height in millimeters.
var truckWidth
Cargo vehicle width in millimeters.
var actualMass
Actual weight of cargo vehicle in kilograms.
var maxPermittedMass
Permissible maximum weight of cargo vehicle in kilograms.
var axleLoad
Axle load in kilograms.
var dangerousCargo
Dangerous cargo indication.
var explosiveCargo
Indication of the presence of explosives in cargo.
var passIds
Identifiers of the user's existing passes required to move within the pass zones.
var fallbackOnCar
Use of automatic fallback from cargo route search to vehicle route search when unable to find a cargo route that satisfies the search parameters.
UIMarkerInfo
ID of an object with caption.
UIntRouteLongEntry
Extended route element - a segment and a value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: UInt32
)
VendorConfigFromAsset
Overwrites SDK settings by specifying the path to the application asset. For Android - assets directory. For iOS - Bundle.main directory.
VendorConfigFromFile
Overwrites SDK settings by specifying the path to a file in the device file system.
VendorConfigFromString
Overwrites SDK settings by specifying the file contents.
VoiceAssistantView
SwiftUI element for voice input.
func permissionDeniedCallback(callback: @escaping (() -> Void)) -> VoiceAssistantView
func recognitionProcessCallback(callback: @escaping ((VoiceRecognitionState) -> Void)) -> VoiceAssistantView
func recognitionCompleteCallback(callback: @escaping ((VoiceRecognitionResult) -> Void)) -> VoiceAssistantView
func startRecognition()
var body
The content and behavior of the view.
WeekTime
Timestamp within a week.
public static func < (lhs: WeekTime, rhs: WeekTime) -> Bool
Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
WeekTimeInterval
Time interval during the week.
WmsRasterUrlTemplate
WorkStatus
Operating status.
ZIndex
Index that sets the order in which objects are rendered within a layer.
Zoom
Zoom level.
Cannot be negative.
public init(
value: Float = 0
)
value
public init(floatLiteral value: Float)
Creates an instance initialized to the specified floating-point value.
value
Value to create.
var value
ZoomView
UI control of zooming in and out in SwiftUI.
var body
Contents and behavior of the control.