api.md
December 19, 2019 ยท View on GitHub
Table of Contents
- Hecate
- Auth
- BBox
- Bounds
- Clone
- Deltas
- Feature
- ArrayReader
- Import
- Revert
- Schema
- Server
- Tiles
- User
- Webhooks
Hecate
Auth
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Return the auth settings for a given hecate instance
Parameters
optionsOptions for making a request to the auth API (optional, default
{})cbfunction (err, res) style callback function
BBox
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Queries hecate /api/data/features endpoint Currently supports downloading features by bbox
Parameters
optionsOptions for making a request to the hecate /api/data/features endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
Bounds
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
stats
Return stats of geo data within a give bounds
Parameters
optionsoptions for making a query to the bounds list endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
list
Return a list of the bounds that are currently loaded on the server
Parameters
optionsoptions for making a query to the bounds list endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
get
Queries the /api/data/bounds endpoints, returning a line-delimited stream of GeoJSON Features
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
meta
Returns underlying bounds geojson for a given bounds
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})options.boundString? Name of the bound to download from
cbfunction (err, res) style callback function
Returns function (err, res) style callback
delete
Delete a boundary file
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})options.boundString? Name of the bound to download from
cbfunction (err, res) style callback function
Returns function (err, res) style callback
set
Create or update a boundary file
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
Clone
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Clone all data on a given hecate server
Parameters
optionsOptions for making a request to the hecate /api/data/features endpoint (optional, default
{})options.outputStream? Stream to write line-delimited GeoJSON to
cbfunction (err, res) style callback function
Returns function (err, res) style callback
Deltas
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
list
Queries the recent deltas list, returning the most recent 100 deltas
Parameters
optionsOptions for making a request to the deltas endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
get
Returns data about a specific delta
Parameters
optionsOptions for making a request to the deltas endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
Feature
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
history
Queries the feature store endpoint, returning a history of a GeoJSON Feature
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})options.featureString? ID of the feature to download from
cbfunction (err, res) style callback function
Returns function (err, res) style callback
key
Queries the feature store endpoint by key, returning a GeoJSON Feature
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})options.featureString? key of the feature to download from
cbfunction (err, res) style callback function
Returns function (err, res) style callback
get
Queries the feature store endpoint, returning a GeoJSON Feature
Parameters
optionsOptions for making a request to the bounds endpoint (optional, default
{})options.featureString? ID of the feature to download from
cbfunction (err, res) style callback function
Returns function (err, res) style callback
ArrayReader
Allow features to be passed to the import API as an array instead of as a stream
Parameters
next
Return the next feature in the array, mimics a stream
Returns string GeoJSON Feature to import
Import
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
multi
Given a Stream of line-delimited features or an Array of features, validate and import them
Parameters
optionsObject options object (optional, default{})options.messagestring Human readable description of changesoptions.input(string | Array<Object>) String of filepath or Array containing features to importoptions.ignoreRHRboolean Ignore RHR winding errorsoptions.ignoreDupboolean Don't check duplicate IDs (will usually cause an import failure if they exist)options.dryrunboolean Perform all validation but don't import
cbfunction (err, res) style callback
Returns function (err, res) style callback
Revert
help
Print help documentation about the subcommand to stderr
deltas
Revert a given set of deltas
Parameters
optionsOptions for making reversion of a set of deltas (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
Schema
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Retrieve a JSON schema that feature properties must conform to
Parameters
Returns function (err, res) style callback
Server
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Get server metadata
Parameters
optionsOptions for making a request to meta API (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
stats
Get server stats
Parameters
optionsOptions for making a request to meta API (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
Tiles
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
get
Fetch a Mapbox Vector Tile for the given zxy
Parameters
optionsOptions for making a request to the deltas endpoint (optional, default
{})options.zxyString? z/x/y coordinate to request
cbfunction (err, res) style callback function
Returns function (err, res) style callback
User
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
list
List users with optional filtering
Parameters
optionsObject Options object (optional, default{})options.filterstring User prefix to filter by
cbfunction (err, res) style callback
Returns function (err, res) style callback
info
Retrieve metadata about the user that makes the request
Parameters
Returns function (err, res) style callback
register
Register a new user account
Parameters
Returns function (err, res) style callback
Webhooks
- See: Hecate Documentation
help
Print help documentation about the subcommand to stderr
list
Queries hecate /api/webhooks endpoint
Parameters
optionsOptions for making a request to the hecate /api/webhooks endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback
get
Get a specific webhook given the ID
Parameters
optionsOptions for making a request to the hecate /api/webhooks endpoint (optional, default
{})options.idnumber ID of the webhook to retreive
cbfunction (err, res) style callback function
Returns function (err, res) style callback function
delete
Delete a specific webhook given the ID
Parameters
optionsOptions for making a request to the hecate /api/webhooks endpoint (optional, default
{})options.idnumber ID of the webhook to delete
cbfunction (err, res) style callback function
Returns function (err, res) style callback function
update
Update a given webhook ID
Parameters
optionsOptions for making a request to the hecate /api/webhooks endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback function
create
Create a new webhook
Parameters
optionsOptions for making a request to the hecate /api/webhooks endpoint (optional, default
{})cbfunction (err, res) style callback function
Returns function (err, res) style callback function