CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
|
Static Public Attributes | |
static final int | ROUTING_MASK = 0x3E |
static final int | ROAD_TYPE_MASK = 0xFC0 |
static final int | MAJOR_ROAD_TYPE_MASK = 0xF00 |
static final int | LEVEL_MASK = 0xF000 |
static final int | TUNNEL_FLAG = 1 |
static final int | BRIDGE_FLAG = 0x10000 |
static final int | LEVEL_SHIFT = 12 |
static final int | RAMP_FLAG = 64 |
static final int | LINK_FLAG = 64 |
static final int | LOWER_GRADE_FLAG = 128 |
static final int | TOLL_FLAG = 2 |
static final int | ROUNDABOUT_FLAG = 4 |
static final int | RESTRICTION_FLAG = 8 |
static final int | DIRECTION_MASK = 16 | 32 |
static final int | DRIVE_ON_RIGHT_FLAG = 0 |
static final int | DRIVE_ON_LFT_FLAG = 48 |
static final int | ONE_WAY_FORWARD_FLAG = 16 |
static final int | ONE_WAY_BACKWARD_FLAG = 32 |
static final int | FIRST_OVER_LEVEL = 0x1000 |
static final int | FIRST_UNDER_LEVEL = 0xF000 |
static final int | SECOND_UNDER_LEVEL = 0xE000 |
static final int | ROAD_ACCESS_MASK = 0xFFFE0000 |
static final int | BICYCLE_ROAD_ACCESS_FLAG = 0x20000 |
static final int | MOTOR_CYCLE_ROAD_ACCESS_FLAG = 0x40000 |
static final int | MOTOR_CAR_ROAD_ACCESS_FLAG = 0x80000 |
static final int | HIGH_OCCUPANCY_ROAD_ACCESS_FLAG = 0x100000 |
static final int | GOODS_ROAD_ACCESS_FLAG = 0x200000 |
static final int | HEAVY_GOODS_ROAD_ACCESS_FLAG = 0x400000 |
static final int | BUS_ROAD_ACCESS_FLAG = 0x800000 |
static final int | TAXI_ROAD_ACCESS_FLAG = 0x1000000 |
static final int | PEDESTRIAN_ROAD_ACCESS_FLAG = 0x2000000 |
static final int | AGRICULTURAL_ROAD_ACCESS_FLAG = 0x4000000 |
static final int | FORESTRY_ROAD_ACCESS_FLAG = 0x8000000 |
static final int | EMERGENCY_ROAD_ACCESS_FLAG = 0x10000000 |
static final int | HAZARDOUS_ROAD_ACCESS_FLAG = 0x20000000 |
static final int | WHEEL_CHAIR_ROAD_ACCESS_FLAG = 0x40000000 |
static final int | DISABLED_ROAD_ACCESS_FLAG = 0x80000000 |
static final int | MOTOR_VEHICLE_ROAD_ACCESS_MASK = 0xFFFE0000 & ~(BICYCLE_ROAD_ACCESS_FLAG | PEDESTRIAN_ROAD_ACCESS_FLAG | WHEEL_CHAIR_ROAD_ACCESS_FLAG) |
static final int | PUBLIC_SERVICE_VEHICLE_ROAD_ACCESS_MASK = BUS_ROAD_ACCESS_FLAG | TAXI_ROAD_ACCESS_FLAG |
static final int | UNKNOWN_MAJOR = 0 |
static final int | PRIMARY_LIMITED_ACCESS = 0x100 |
static final int | MOTORWAY = PRIMARY_LIMITED_ACCESS |
static final int | MOTORWAY_LINK = PRIMARY_LIMITED_ACCESS | LINK_FLAG |
static final int | PRIMARY_UNLIMITED_ACCESS = 0x200 |
static final int | TRUNK = PRIMARY_UNLIMITED_ACCESS |
static final int | TRUNK_LINK = TRUNK | LINK_FLAG |
static final int | PRIMARY = PRIMARY_UNLIMITED_ACCESS | LOWER_GRADE_FLAG |
static final int | PRIMARY_LINK = PRIMARY | LINK_FLAG |
static final int | SECONDARY = 0x300 |
static final int | SECONDARY_LINK = SECONDARY | LINK_FLAG |
static final int | TERTIARY = SECONDARY | LOWER_GRADE_FLAG |
static final int | TERTIARY_LINK = TERTIARY | LINK_FLAG |
static final int | MINOR = 0x400 |
static final int | UNCLASSIFIED = MINOR |
static final int | RESIDENTIAL = MINOR | LOWER_GRADE_FLAG |
static final int | BYWAY = 0x500 |
static final int | TRACK = BYWAY |
static final int | ACCESS_RAMP = 0x600 |
static final int | SERVICE_ROAD = 0x700 |
static final int | VEHICULAR_FERRY = 0x800 |
static final int | PASSENGER_FERRY = 0x900 |
static final int | PATH = 0xA00 |
static final int | PEDESTRIAN = PATH |
static final int | STAIRWAY = 0xB00 |
static final int | CYCLE_PATH = 0xC00 |
static final int | FOOTPATH = 0xD00 |
static final int | OTHER_0 = 0xE00 |
static final int | OTHER_1 = 0xE00 | LOWER_GRADE_FLAG |
static final int | OTHER_2 = 0xE00 | LINK_FLAG |
static final int | OTHER_3 = 0xE00 | LOWER_GRADE_FLAG | LINK_FLAG |
static final int | OTHER_4 = 0xF00 |
static final int | OTHER_5 = 0xF00 | LOWER_GRADE_FLAG |
static final int | OTHER_6 = 0xF00 | LINK_FLAG |
static final int | OTHER_7 = 0xF00 | LOWER_GRADE_FLAG | LINK_FLAG |
Road types and the masks, bit flags and shifts used to define fields within them.
|
static |
Access ramp to limited access road.
|
static |
Access is forbidden to agricultural vehicles.
|
static |
Access is forbidden to bicycles.
|
static |
A bit flag to identify bridges.
|
static |
Access is forbidden to buses.
|
static |
Byway: road or track open to motor vehicles.
|
static |
Cycle path.
|
static |
A mask for the road direction and driving side.
|
static |
Access is forbidden to vehicles with disabled persons' permits.
|
static |
A road direction value indicating two-way traffic, driving on the left.
|
static |
A road direction value indicating two-way traffic, driving on the right.
|
static |
Access is forbidden to emergency vehicles.
|
static |
The first raised level: the default level for a bridge or overpass.
|
static |
The first sub-surface level: the default value for an underpass.
|
static |
Footpath.
|
static |
Access is forbidden to forestry vehicles.
|
static |
Access is forbidden to light goods vehicles.
|
static |
Access is forbidden to vehicles carrying hazardous materials.
|
static |
Access is forbidden to heavy goods vehicles.
|
static |
Access is forbidden to high-occupancy vehicles.
|
static |
The level (0 = surface, positive = above surface, negative = below surface) is held as a signed nybble in bits 12...15. Levels above 0 are not necessarily bridges; they can be embankments or other raised structures, and levels below 0 are not necessarily tunnels. There are separate bits to mark bridges and tunnels: BRIDGE_FLAG and TUNNEL_FLAG.
The level mask is also used for levels in the 'Type' attribute of non-road objects.
|
static |
The number of bits by which road levels are shifted.
|
static |
A synonym for RAMP_FLAG
|
static |
A bit flag to allow a distinction to be made between grades of road, within the major road type. It allows OSM data to distinguish trunk roads from primary roads in a backward-compatible way.
|
static |
The major road type is held in bits 8...11; bits 7 and 6 are used for finer distinctions.
|
static |
Local road or town or city street.
|
static |
Access is forbidden to motor cars.
|
static |
Access is forbidden to motorcycles.
|
static |
Access is forbidden to motor vehicles.
|
static |
Primary road with limited access (motorway, freeway, etc.).
|
static |
Access ramp or link to primary road with limited access (motorway, freeway, etc.).
|
static |
A road direction value indicating that the road is one-way in the reverse direction to that in which it is defined.
|
static |
A road direction value indicating that the road is one-way in the direction in which it is defined.
|
static |
User-defined road type 0.
|
static |
User-defined road type 1.
|
static |
User-defined road type 2.
|
static |
User-defined road type 3.
|
static |
User-defined road type 4.
|
static |
User-defined road type 5.
|
static |
User-defined road type 6.
|
static |
User-defined road type 7.
|
static |
Passenger-only ferry route.
|
static |
Path or walkway for pedestrians.
|
static |
Access is forbidden to pedestrians.
|
static |
Primary road: UK 'A' road.
|
static |
Primary road with limited access (motorway, freeway, etc.).
Access ramp or link to primary road.
|
static |
Primary road: UK trunk road.
|
static |
Access is forbidden to public service vehicles (buses and taxis).
|
static |
A bit flag to allow access ramps to be marked as sub-types of a major road type.
|
static |
Narrow road or street with residential housing.
|
static |
A bit flag indicating that the road has one or more restrictions (e.g., right turn only). The details of the restrictions are stored in string attributes.
|
static |
Access rules. These flags occupy the bits used for the OSM type in non-road layers, so may be used only where an OSM type is not used. Each flag forbids access to a certain type of vehicle.
|
static |
The road type is held in bits 6...11.
|
static |
A bit flag indicating that the road is part of a roundabout.
|
static |
The toll, roundabout, restriction and direction flags are held in bits 1...5.
|
static |
The second sub-surface level: the default value for a tunnel.
|
static |
Secondary road: UK 'B' road.
Access ramp or link to secondary road.
|
static |
Service road or access road.
|
static |
Stairway or escalator for pedestrians.
|
static |
Access is forbidden to taxis.
|
static |
Tertiary road: one level above minor and residential roads.
Access ramp or link to tertiary road.
|
static |
A toll must be paid to use this road. More details may be available in a the string attributes of a map object.
|
static |
Byway: road or track open to motor vehicles.
|
static |
Primary road: UK trunk road.
Access ramp or link to trunk road.
|
static |
A bit flag to identify tunnels.
|
static |
Local road or town or city street.
|
static |
Roads of unknown type.
|
static |
Vehicular ferry route.
|
static |
Access is forbidden to wheelchairs.