Class PoisService

Hierarchy

  • PoisService

Constructors

Methods

  • Parameters

    • keywords: string
    • bbox: number[]

      Rectangular area, [minLon, minLat, maxLon, maxLat].

    • offset: number = OFFSET

      The maximum value is 100, default is 10.

    • page: number = PAGE

      Default is 1.

    Returns AxiosPromise<IResponse<IResponsePois>>

    Description

    Search POIs in a bbox.

  • Parameters

    • category: string
    • center: number[]
    • distance: number

      Radius from center, unit is meter, cannot exceed 10,000.

    • offset: number = OFFSET

      The maximum value is 100, default is 10.

    • page: number = PAGE

      Default is 1.

    Returns AxiosPromise<IResponse<IResponsePois>>

    Description

    Search POIs by radius distance of the center point.

  • Parameters

    • paramObject: {
          buildingId?: string;
          floorId?: string;
          venueId?: string;
      }
      • Optional buildingId?: string
      • Optional floorId?: string
      • Optional venueId?: string

    Returns AxiosPromise<IResponse<IPoiCategory[]>>

    Description

    Search poi categories by venue id, building id, or floor id. Search scope priority: floorId > buildingId > venueId.

  • Parameters

    • paramObj: {
          angle: number;
          buildingId?: string;
          center: [number, number];
          distance: number;
          distanceSearchType?: DistanceSearchType;
          floorId?: string;
          ordinal?: string;
      }
      • angle: number

        The angle between cellphone's orientation and the north.

      • Optional buildingId?: string
      • center: [number, number]

        User's current position, [lon, lat].

      • distance: number

        Radius.

      • Optional distanceSearchType?: DistanceSearchType

        Search type.

      • Optional floorId?: string
      • Optional ordinal?: string

        Floor order in physical space, e.g. '-1', '0'(ground floor), '1'...

    Returns AxiosPromise<IResponse<IOrientationPoi[]>>

    Description

    Search orientation and poi. BuildingId, floorId and ordinal are mutually exclusive, priority: ordinal > floorId > buildingId.

Generated using TypeDoc