Add an alternate street address to the segment.
ID of segments to add an alternate street to.
Street id for the alternate street.
Splits two intersecting segments into four segments at their intersection point.
This method divides two intersecting segments into four new segments, with a new node created at the intersection point to connect them.
Note: This method only splits two segments, and they should have the same road type
Ids of segments to be split.
the ids of the four newly created segments.
Add a new segment to the map.
Segment geometry.
A type of the segment to be added.
segment id of the new segment
An id of the segment to get address for.
an address of the segment with provided id.
an array of all the segments in the WME data model
An id of the segment to find.
segment with id, or null if not found in the WME data model
Gets segments connected to a specified segment.
This method retrieves an array of segments connected to the segment identified by segmentId
.
You can check for connections in either the forward or reverse direction using the reverseDirection
parameter.
Forward direction checks if segments share the node defined by the fromNodeID
attribute.
Reverse direction checks if segments share the node defined by the toNodeID
attribute.
Optional
reverseDirection?: booleanIf segments should be connected in reverse direction, defaults to false.
An id of the segment to find connected segments for.
connected segments in specified direction
all possible road types and their localised names.
Optional
permission?: SegmentPermissionA name of the permission to check. If not provided, the method checks whether the current user has any permissions for this segment.
An id of the segment to check the permissions for.
whether the current user has a permission for this segment or not.
Update segment address or alternative addresses.
Optional
alternateStreetIds?: number[]New ids of the alternative streets for the segment.
Optional
primaryStreetId?: numberAn id of the new street for the segment.
The id of the segment to update the address for.
Update segment attributes.
Optional
direction?: SegmentDirectionNew traffic direction for the segment.
Optional
elevationLevel?: numberNew elevationLevel for the segment.
Optional
flagAttributes?: Pick<SegmentFlagAttributes, "tunnel" | "unpaved" | "headlights" | "nearbyHOV">New flag attributes for the segment.
Allows updating flags such as unpaved
, tunnel
, nearbyHOV
, and headlights
.
Optional
fromLanesInfo?: null | SegmentLanesInfoNew lanes info for the segment in the forward direction, or null if lanes info has to be deleted.
laneWidth
should be provided in m or ft depending on the active units system.
Optional
fwdSpeedLimit?: null | numberNew max speed for the segment in the forward direction, in km/h.
Optional
geometry?: LineStringNew geometry for the segment.
Optional
hasToll?: booleanNew toll status for the segment. Will be set on both directions of the segment.
Optional
lockRank?: UserRankNew lock rank for the segment.
Optional
revSpeedLimit?: null | numberNew max speed for the segment in the reverse direction, in km/h.
Optional
roadType?: RoadTypeIdNew road type for the segment.
Optional
routingRoadType?: 1 | 2 | 3 | 6 | 7New routing road type of the segment.
The id of the segment to be updated.
Optional
toLanesInfo?: null | SegmentLanesInfoNew lanes info for the segment in the reverse direction, or null if lanes info has to be deleted.
laneWidth
should be provided in m or ft depending on the active units system.
Methods for dealing with Segments.