Adds a new house number at the specified location. This method creates a new house number and associates it with the closest road segment to the given point.
Clears the objects locally if they are not in use.
Deletes a house number. This method allows you to remove an existing house number.
The ID of the house number to be deleted.
Fetches house numbers associated with the specified segment IDs.
segment ids to fetch house numbers
A Promise that resolves to an array of HouseNumber
objects.
Moves a house number to a new location on the map.
This method allows you to relocate an existing house number to a different position. The house number can be moved within the same road segment or to a new segment if the new location is closer to a different segment.
The ID of the house number to move.
The new location for the house number, represented as a GeoJSON Point
Optional
segmentId?: numberSegment to snap the house number to. If not provided, the closest segment is used instead.
Moves the fractional part of a house number to a new location.
This method allows you to relocate the fractional part (e.g., "1/2", "A") of an existing house number to a different position. The fractional part can be moved within the same road segment or to a new segment if the new location is closer to a different segment.
Updates the attributes of an existing house number. This method allows you to modify various properties of a house number, such as its geometry, fraction point, or the house number string.
Optional
fractionPoint?: PointThe new location of the fractional part of the house number.
The ID of the house number to be updated.
Optional
number?: stringThe new house number.
Optional
point?: PointThe new location of the house number
Optional
segmentId?: numberThe house number segment ID to be updated.
Methods for dealing with HouseNumbers