Methods for dealing with HouseNumbers

Hierarchy

  • SdkModule
    • HouseNumbers

Methods

  • 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.

    Parameters

    • args: { number: string; point: Point }
      • number: string

        The number of the new house number.

      • point: Point

        The location of the new house number.

    Returns void

  • Clears the objects locally if they are not in use.

    Returns void

  • Deletes a house number. This method allows you to remove an existing house number.

    Parameters

    • args: { houseNumberId: string }
      • houseNumberId: string

        The ID of the house number to be deleted.

    Returns void

    DataModelNotFoundError If a house number with the specified ID is not found in the WME data model.

    InvalidStateError If the action to delete the house number fails.

  • Fetches house numbers associated with the specified segment IDs.

    Parameters

    • options: { segmentIds: number[] }
      • segmentIds: number[]

        segment ids to fetch house numbers

    Returns Promise<HouseNumber[]>

    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.

    Parameters

    • args: { houseNumberId: string; point: Point }
      • houseNumberId: string

        The ID of the house number to move.

      • point: Point

        The new location for the house number, represented as a GeoJSON Point

    Returns void

    DataModelNotFoundError If a house number with the specified ID is not found in the WME data model.

    InvalidStateError If editing is not allowed or if the action to move the house number fails.

  • 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.

    Parameters

    • args: { fractionPoint: Point; houseNumberId: string }
      • fractionPoint: Point

        The new location for the fraction point of house number, represented as a GeoJSON Point

      • houseNumberId: string

        The ID of the house number of the fraction point to move.

    Returns void

    DataModelNotFoundError If a house number with the specified ID is not found in the WME data model.

    InvalidStateError If editing is not allowed or if the action to move the fraction point fails.

  • 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.

    Parameters

    • args: { fractionPoint?: Point; houseNumberId: string; number?: string; point?: Point }
      • OptionalfractionPoint?: Point

        The new location of the fractional part of the house number.

      • houseNumberId: string

        The ID of the house number to be updated.

      • Optionalnumber?: string

        The new house number.

      • Optionalpoint?: Point

        The new location of the house number

    Returns void

    DataModelNotFoundError If a house number with the specified ID is not found in the WME data model.

    InvalidStateError If the action to update the house number fails.

    ValidationError If no attributes to update are provided.