ru.dgis.sdk.routing.Route | Android SDK | 2GIS Documentation

Route

A class that describes a route. A route is a set of attributes, each of which is a container of type RouteAttribute or RouteLongAttribute, which stores elements of route attributes. Route attributes are divided into point and length attributes. Point attributes (for example, geometry points or lying cops) are specified as a pair of a RoutePoint and an attribute value. Long attributes (such as the width of a roadway or a speed limit) are specified as a pair of a RoutePoint that specifies the beginning of the attribute's action and the attribute's value. A terminator is placed at the end of the route. For example, let the width of the roadway be given as a set of pairs {{0m, 3m}, {10m, 7m}, {20m, 5m}, {30m, 0m}}, then the first 10 meters of the route the carriageway has a width of 3 meters, at the interval [10m., 20m.) - 7m., from 20m. to the end of the route - 5m.

Properties

Route geometry.

It is not guaranteed that the RoutePoint of geometry points will match the RoutePoint of other attribute elements, so in order 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 attribute element, calculate_geo_point should be used instead.

Instructions to be followed to follow the route.

Intermediate points through which the route passes. The route may not pass directly through the intermediate point, but near it. The attribute value stores the coordinate at which the intermediate point was set, the key contains the coordinate of the projection of the intermediate point onto the route.

Altitudes on the route.

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

Obstacles on the route.

Road/street names.

A sign that the route section passes through the settlement.

Type of transport for which the route section is built.

Road cameras.

Width of the carriageway in meters. 0 - width is unknown.

Artificial bumps.

Maximum allowed speed limits.

0 - speed limit unknown.

Side of movement.

Additional description for the type of road the route is on.

The type of road along which the route lies.

Segments of the route that run along toll roads.

A sign of the presence or absence of data for cargo navigation.

Checkpoints for freight transport.

A sign of the validity of the sign of the prohibition of the passage of freight transport.

A sign of the validity of the sign prohibiting the passage of any vehicles (overlapping).

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