Osmdiff (Python)

From OpenStreetMap Wiki
Jump to navigation Jump to search
osmdiff
Author: Martijn van Exel
License: MIT License (free of charge)
Platform: python
Version: 0.3.2 (2022-10-12)
Website: https://github.com/osmlab/osmdiff
Source code: https://github.com/osmlab/osmdiff
Features
Feature Value
Map Display

(Not set)

Routing

(Not set)

Navigating

(Not set)

Tracking

(Not set)

Monitoring

(Not set)

Editing

(Not set)

Rendering

(Not set)

Accessibility

(Not set)

osmdiff is a Python module to retrieve and use OSM replication diffs and Augmented diffs.

A simple usage example:

>>> from osmdiff import OSMChange
>>> o = OSMChange()
>>> o.frequency = "minute"  # the default
>>> o.get_state()  # retrieve current sequence ID
>>> o.sequence_number
2704451
>>> o.retrieve()  # retrieve from API
>>> o
OSMChange (677 created, 204 modified, 14 deleted)

More examples can be found at the project's Github page. Martijn van Exel wrote a diary entry accompanying the 0.3.2 release.