Waze Map Editor JavaScript SDK
    Preparing search index...

    Class DataModel

    Methods for dealing with the WME data model objects.

    Index

    Properties

    BigJunctions: BigJunctions = ...
    Cities: Cities = ...
    Countries: Countries = ...
    EditSuggestions: EditSuggestions = ...
    HouseNumbers: HouseNumbers = ...
    Junctions: Junctions = ...
    MajorTrafficEvents: MajorTrafficEvents = ...
    ManagedAreas: ManagedAreas = ...
    MapComments: MapComments = ...
    MapProblems: MapProblems = ...
    MapUpdateRequests: MapUpdateRequests = ...
    Nodes: Nodes = ...
    PermanentHazards: PermanentHazards = ...
    RestrictedDrivingAreas: RestrictedDrivingAreas = ...
    RoadClosures: RoadClosures = ...
    Segments: Segments = ...
    States: States = ...
    Streets: Streets = ...
    TurnClosures: TurnClosures = ...
    Turns: Turns = ...
    Users: Users = ...
    Venues: Venues = ...

    Methods

    • Checks if an object with the given ID in the specified data model is deletable.

      Parameters

      • args: { dataModelName: DataModelName; objectId: string | number }

      Returns boolean

      true if the object is deletable, false otherwise.

      Error if the object is not found.

    • Checks if an object with the given ID in the specified data model is marked as deleted.

      Parameters

      • args: { dataModelName: DataModelName; objectId: string | number }

      Returns boolean

      true if the object is deleted, false otherwise.

      Error if the object is not found.

    • Checks if an object with the given ID in the specified data model is new (not yet saved to the server).

      Parameters

      • args: { dataModelName: DataModelName; objectId: string | number }
        • dataModelName: DataModelName

          The name of the data model (e.g., "segments", "venues")

        • objectId: string | number

          The ID of the object to check.

      Returns boolean

      true if the object is new, false otherwise.

      Error if the object is not found.

    • Reload the data and the map.

      Returns Promise<void>

      promise that resolves once the data refresh completed.

      InvalidStateError if refresh is disabled