Route | iOS SDK | Urbi Documentation
iOS SDK

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
Properties

Route geometry.
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.

Instructions that must be followed to move along the route.

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.

Elevations on the route.

Bad road (there are bumps and potholes on the road that prevent passage).

Obstacles on a route.

Names of roads/streets.

Indication that a section of the route passes through a populated area.

Mode of transport for which a section of the route is built.

Road cameras.

Width of the roadway in meters. 0 - width unknown.

Artificial bumps.

Maximum permissible speed limits.
0 - speed limit is unknown.

Additional description to the type of road on which the route runs.

Type of road the route takes.

Sections of the route on toll roads.

Indication of the presence or absence of data for freight navigation.

Passing zones for trucks.

Indication of the validity of the no-traffic sign.

Indication of a sign prohibiting the passage of any motor vehicle (overlap).

Description of how to travel by public transport between transfer points.