struct
Address
Address as a set of individual components.
public init(
drillDown: [AddressAdmDiv],
components: [AddressComponent],
buildingName: String?,
postCode: String?,
buildingCode: String?,
fiasCode: String?,
addressComment: String?
)
Parameters
drillDown
components
buildingName
postCode
buildingCode
fiasCode
addressComment
Properties
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 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.
Properties
var comment
Verbal description of the location of a building.
AddressNumber
Some localities designate only the house number, without the street (e.g., Krasnoobsk).
AddressStreet
Normal address, there is a street and house number.
Anchor
Image anchor point (0, 0) - upper left corner, (1, 1) - lower right corner.
public init(
x: Float = 0.5,
y: Float = 0.5
)
Parameters
x
Float
y
Float
Properties
var x
Float
var y
Float
ApartmentRange
Range of apartments.
Properties
var start
Range start/Stored value. Currently only numeric values are supported, apartments with suffixes are not yet available in the data.
var end
End of range. If absent, the range consists of a single start value. Otherwise it is an arithmetic progression from start to end in steps of 1.
ApiKeyOptions
Key settings for working with 2GIS SDK.
Properties
Attribute
Additional attribute. Example: { tag: “hotel_room_internet”, name: “Free internet in the rooms” }.
AudioOptions
Sound settings.
public init(muteOtherSounds: Bool, audioVolume: AudioVolume)
Parameters
Properties
static let `default`
Default settings. Mutes the sound of other applications and maximizes the playback volume.
AuthorInfo
Information about the author of the event or photo.
Properties
var type
Content author category.
var name
String containing the name of the user who added the event or photo.
BatteryOptions
Battery condition monitoring settings. Used to configure the battery condition monitoring service needed to optimize power consumption when the charge level is low or to activate power saving mode.
public init(lowBatteryThreshold: Int, delegate: IBatteryManagerDelegate?)
Parameters
Properties
var lowBatteryThreshold
Percentage of battery charge starting at and below which the charge is considered low. When the battery charge is low, aggressive power saving tools may be activated and warnings may be displayed. Value range: 0...100.
var delegate
Delegate of the battery monitoring service. Required to control turning on and off the battery status monitoring (see `UIDevice.isBatteryMonitoringEnabled`), which allows you to automatically enable power optimization.
static let `default`
Default settings. The low battery limit is 15%. Battery status monitoring is disabled. Power optimization is not automatically enabled.
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.
Parameters
value
Value to create.
Properties
var value
BetterRouteInfo
Information on available alternative route.
public init(
trafficRoute: TrafficRoute,
startPoint: RoutePoint
)
Parameters
Properties
var trafficRoute
Alternative route.
var startPoint
Point on the alternative route from which traffic starts if you switch to this route.
BicycleBriefRouteInfo
Basic cycling route information.
Properties
BicycleInstructionCrossroad
Description of maneuvers when passing through an intersection or crosswalk.
public init(
landmark: BicycleInstructionCrossroadLandmark = BicycleInstructionCrossroadLandmark.`none`,
maneuvers: [BicycleInstructionCrossroadManeuver]
)
Parameters
Properties
var landmark
Landmark.
var maneuvers
Chain of sequential maneuvers.
BicycleInstructionCrossroadManeuver
public init(
direction: BicycleInstructionCrossroadManeuverDirection = BicycleInstructionCrossroadManeuverDirection.straight,
turnAngle: Int32 = 0
)
Parameters
Properties
var direction
Direction of travel.
var turnAngle
Int32
Turning angle in degrees [-180, 180].
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] = []
)
Parameters
Properties
var avoidCarRoads
Avoid roads.
var avoidStairways
Avoid stairs.
var avoidUnderpassesAndOverpasses
Avoid underpasses and overpasses.
var excludedAreas
Excluded areas (not more than 25).
BoolRouteLongEntry
Extended route element - segment and value on it.
public init(
point: RoutePoint,
length: RouteDistance,
value: Bool
)
Parameters
Properties
Borders
Describes a continuous set of sorted values.
Properties
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
)
Parameters
Properties
BriefRouteInfo
Basic route information.
public init(
duration: TimeInterval,
extraInfo: BriefExtraRouteInfo
)
Parameters
Properties
var duration
Time of travel along the route.
var extraInfo
Additional route information for a specific vehicle type.
BriefRouteInfoSearchPoints
Points to query for basic route information search.
public init(
startPoint: RouteSearchPoint,
finishPoint: RouteSearchPoint
)
Parameters
Properties
var startPoint
Starting point of the route.
var finishPoint
Finish point of the route.
BuildingId
BuildingInfo
Information about building.
public init(
buildingName: String? = nil,
purposeName: String? = nil,
purposeCode: PurposeCode? = nil,
buildingLevels: BuildingLevels? = nil
)
Parameters
Properties
var buildingName
Name of the building.
var purposeName
Description of the purpose of the building.
var purposeCode
Code of the purpose of the building.
var buildingLevels
Information about floor plans of the building.
BuildingLevels
Information about the floor plans of the building.
public init(
defaultLevelId: LevelId,
levels: [LevelInfo]
)
Parameters
Properties
var defaultLevelId
Default floor plan identifier.
var levels
All floor plans of the building.
CalloutMapPosition
Route bubble position.
public init(
mapId: MapId,
calloutPosition: GeoPoint?,
routePoint: RoutePoint?
)
Parameters
Properties
var mapId
Identifier of the map for which the position is given.
var calloutPosition
Position on the map.
var routePoint
Lane bubble position on the route.
CameraBehaviour
Camera tracking mode.
public init(
position: FollowPosition?,
tilt: FollowTilt = FollowTilt.off
)
Parameters
Properties
CameraBehaviourChange
Changes tracking mode.
public init(
newBehaviour: CameraBehaviour,
changeReason: CameraBehaviourChangeReason
)
Parameters
Properties
var newBehaviour
New tracking mode.
var changeReason
Reason for changing tracking mode.
CameraPosition
Camera position.
Properties
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.<br/>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
)
Parameters
x
Float
y
Float
Properties
var x
Float
var y
Float
CameraProgressInfo
Information about the progress of the camera zone.
public init(
camera: RouteCamera,
position: RoutePoint,
progress: Float = 0
)
Parameters
Properties
var camera
Camera for the area for which progress is being tracked.
var position
Camera position on the route.
var progress
Float
Progress of the camera area, [0, 1].
CameraPurposeOptionSet
public init(rawValue: UInt32)
Creates a new option set from the given raw value.
Parameters
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.
Properties
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.
Properties
CameraZoomRestrictions
Allowed range of zoom level variation.
CarBriefRouteInfo
Basic information about the automobile route.
public init(
length: RouteDistance,
landmark: String,
trafficSpeed: CarBriefRouteInfoTrafficSpeed
)
Parameters
Properties
var length
Route length.
var landmark
Landmark.
var trafficSpeed
Travel speed.