The module josm/api provides two classes for downloading data
from and uploading data to the central OSM server:
Api - provides methods for downloading and uploading data
ChangesetApi - provides methods for opening, updating,
closing and downloading changesets
Downloading data
The class Api provides several methods to download data
using the OSM API.
Here's a sample scripts which downloads a bounding box:
Uploading data
The class Api provides the method upload()
to upload data to the server. It can be used to upload data using one of the upload strategies JOSM
supports: