Implements

Constructors

Properties

actionManager: ActionManager
isInitialMapDataLoaded: boolean = false
repos: {
    bigJunctions: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    cities: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    countries: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    editSuggestions: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    junctions: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    majorTrafficEvents: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    managedAreas: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapComments: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapProblems: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapUpdateRequests: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    nodes: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    onlineEditors: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    permanentHazards: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    problemDetails: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    restrictedDrivingAreas: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    restrictedEditingAreas: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    roadClosures: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    schedules: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    segmentHouseNumbers: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    segments: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    segmentSuggestions: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    signTypes: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    states: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    streets: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    turnClosures: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    updateRequestSessions: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    userAreas: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    users: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    venues: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
}
reposByObjectType: {
    bigJunction: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    city: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    country: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    editSuggestion: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    houseNumber: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    junction: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    majorTrafficEvent: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    managedArea: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapComment: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapProblem: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    mapUpdateRequest: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    node: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    onlineEditor: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    permanentHazard: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    problemDetail: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    restrictedDrivingArea: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    restrictedEditingArea: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    roadClosure: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    schedule: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    segment: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    segmentSuggestion: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    signType: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    state: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    street: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    turnClosure: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    updateRequestSession: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    user: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    userArea: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
    venue: DataModelRepository<
        DataModelObject<ObjectId, FeatureVectorAttributes<ObjectId>>,
    >;
}
segmentHouseNumbers: DataModelRepository<HouseNumber>

Accessors

  • get isImperial(): boolean

    Returns boolean

  • get isLeftHand(): boolean

    Returns boolean

Methods

  • Returns string[]

  • Returns string[]

  • Returns string[]

  • Returns null | number

  • Returns boolean

  • Returns boolean

  • This function is used by the controller, it merges the objects using mergeObjects but also handle country related properties and trigger merge event

    Parameters

    • allObjects: ParsedResponse

      hash of repository name to {objects: list of objects}

    • options: {
          areObjectsInBbox: boolean;
          updateCategoryBrands: boolean;
          updateTopCity: boolean;
          updateTopCountry?: boolean;
      }

      contains extra flags used to merge the features response

      • areObjectsInBbox: boolean

        true if objects came from bbox response

      • updateCategoryBrands: boolean

        true if should update category brands

      • updateTopCity: boolean

        true if should update the top city, this is true when the response might return segments

      • OptionalupdateTopCountry?: boolean

        true if should update the top country, this is true when the response might return segments

    Returns void

  • Parameters

    • allObjects: Partial<ParsedResponse>

      hash of repository name to {objects: list of objects}

    • options: { areObjectsInBbox: boolean }

      contains extra flags used to merge the objects

      • areObjectsInBbox: boolean

        true if objects came from bbox response

    Returns void

  • Returns void