Skip to content

v0.9.0

Compare
Choose a tag to compare
@timwie timwie released this 20 Oct 01:44
· 140 commits to main since this release

The Python versions supported by this release are 3.10-3.12.

Added

  • Add Python 3.12 support
  • Add __slots__ to a lot of classes
  • Add pt_ordered.to_ordered_routes() and to_ordered_route()
  • Add GeometryDetails, which provides information on whether an
    element's geometry is "valid"
  • Add Way.geometry_details and Relation.geometry_details
  • Add Status.endpoint
  • Add Status.nb_running_queries

Changed

  • Increased aiohttp requirement to ~3.9.0b0
  • Enable speedups extra of aiohttp
  • Make QueryRunner an abstract class, not a protocol
  • Way.geometry and Relation.geometry may now be geometries fixed
    by shapely instead of the original geometries by the Overpass API.
    To access the original geometry, use Way.geometry_details and
    Relation.geometry_details
  • DefaultQueryRunner no longer blocks the event loop while reading
    from or writing to a cache file
  • Add raise_on_failure argument to Client.run_query(), which can be
    disabled to not raise Query.error if a query fails

Removed

  • Drop Python 3.9 support
  • collect_elements() already no longer worked for "area" elements with the previous
    release, but its documentation did not reflect that change

Fixed

  • Fix an error when RequestTimeout.total_without_query_secs was set to None
  • Fix an edge case that would lead to an error if Query.run_timeout_secs
    was None when a query cooldown occurred
  • Fix an edge case where DefaultQueryRunner would raise an exception
    if a cache file could not be read
  • Fix collect_ordered_routes() breaking when a stop position is missing
  • Fix collect_elements() raising when the result set is empty
  • Fix collect_elements() breaking when the result set included "area" elements