xyzspaces package

The XYZ Spaces for Python - manage your XYZ Hub server or HERE Data Hub.

XYZ Spaces for Python allows you to manage XYZ spaces, projects and tokens with the Hub API, Project API, and Token API, respectively. The Hub API provides the most features to let you read and write GeoJSON data (features) from and to an XYZ space, and perform some higher-level operations like return features inside or clipped by some bounding box or map tile. The Project API and Token API let you manage your XYZ projects and tokens.

See also: - XYZ Hub server: https://github.com/heremaps/xyz-hub - HERE Data Hub: https://developer.here.com/products/data-hub

class xyzspaces.XYZ(credentials=None, server='https://xyz.api.here.com')[source]

Bases: object

A single interface to interact with your XYZ Hub server or HERE Data Hub.

__init__(credentials=None, server='https://xyz.api.here.com')[source]
Instantiate an XYZ object, optionally with access credentials

and custom base URL.

Parameters
  • credentials (Optional[str]) – A string to serve as authentication (a bearer token). Will be looked up in environment variable XYZ_TOKEN if not provided.

  • server (str) – A string as base URL for Data Hub APIs. Required only if Data Hub APIs are self-hosted. For self-hosted Data Hub instances credentials is not required.