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.