Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Provider

Hierarchy

  • Provider

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private options

options: ProviderOptions = defaultOptions

Methods

query

  • query(sources?: string[], bbox?: BoundingBox, options?: any): Promise<FeatureCollection>
  • Perform a query on wikidata and/or OpenStreetMap. results are conflated if both sources are requested.

    Parameters

    • Optional sources: string[]

      list of strings (either 'wikidata' and/or 'osm') indicating which sources to use

    • Optional bbox: BoundingBox

      bounding box to query in

    • Optional options: any

      options for queries

    Returns Promise<FeatureCollection>

Generated using TypeDoc