Skip to main content
  • Retrieves records from a table as a GeoJSON FeatureCollection.

    A convenience wrapper over /get/records with encoding forced to geojson, unwrapping the single encoded document the server returns.

    Parameters

    • table_name: string

      Table to read from

    • Optionaloffset: number

      Record offset; defaults to 0

    • Optionallimit: number

      Maximum records to return; defaults to 10000

    • Optionaloptions: Record<string, string>

      Optional parameters for /get/records

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<Record<string, any>>

    Promise resolving to the GeoJSON FeatureCollection