Class EditingApiClient

Synchronous OSM Editing API 0.6 protocol client.

class EditingApiClient;

The injected exchange is retained, but authorization is not. The application remains responsible for account selection, token refresh, retry/backoff, changeset lifecycle policy and asynchronous scheduling.

Constructors

NameDescription
this (server, backend, limits, options) Construct a client over a generic transport-d HTTP exchange.

Properties

NameTypeDescription
server[get] EditingApiServer

Methods

NameDescription
closeChangeset (id, authorizationHeader, status) Close one Changeset.
createChangeset (request, authorizationHeader, id, status) Create a Changeset and return the server-assigned positive ID.
readCapabilities (document, status) Read dynamic server capabilities and upload limits.
readChangeset (id, changeset, status) Read one Changeset and its current server-managed state.
readNode (id, node, status) Read the current version of one Node.
readNodeHistory (id, history, status) Read the authoritative history of one Node.
readNodeVersion (id, versionNumber, node, status) Read one historical Node version.
readPermissions (permissions, status, authorizationHeader) Read permissions granted to the current connection.
readRelation (id, relation, status) Read the current version of one Relation.
readRelationFull (id, dataset, status) Read one Relation plus the server's full member expansion.
readRelationHistory (id, history, status) Read the authoritative history of one Relation.
readRelationVersion (id, versionNumber, relation, status) Read one historical Relation version.
readWay (id, way, status) Read the current version of one Way.
readWayFull (id, dataset, status) Read one Way plus the Nodes returned by the full expansion endpoint.
readWayHistory (id, history, status) Read the authoritative history of one Way.
readWayVersion (id, versionNumber, way, status) Read one historical Way version.
updateChangeset (id, request, authorizationHeader, changeset, status) Replace all Changeset tags and return the updated representation.
uploadChanges (id, changes, authorizationHeader, result, status) Upload one atomic osmChange diff and parse the returned diffResult.