Function feature

  • Get GeoJSON feature with specific feature ID

    Returns

    • GeoJSON Feature

    Parameters

    • apiKey: string

      A valid OS Data Hub key

    • collectionId: string

      A known collection ID. To view available collection IDs, use the ngd.collections() method.

    • featureId: string

      A known feature ID

    • options: {
          crs?: null | string | number;
      } = {}

      Optional arguments

      • Optional crs?: null | string | number

        CRS of return geoJSON (epsg number or full string e.g. "epsg:27700"). Available CRS values are: EPSG:27700, EPSG:4326, EPSG:7405, EPSG:3857, and CRS84. Defaults to CRS84

    Returns Promise<Feature<Geometry, GeoJsonProperties>>

Generated using TypeDoc