v0.9.0
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()
andto_ordered_route()
- Add
GeometryDetails
, which provides information on whether an
element's geometry is "valid" - Add
Way.geometry_details
andRelation.geometry_details
- Add
Status.endpoint
- Add
Status.nb_running_queries
Changed
- Increased
aiohttp
requirement to~3.9.0b0
- Enable
speedups
extra ofaiohttp
- Make
QueryRunner
an abstract class, not a protocol Way.geometry
andRelation.geometry
may now be geometries fixed
byshapely
instead of the original geometries by the Overpass API.
To access the original geometry, useWay.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 toClient.run_query()
, which can be
disabled to not raiseQuery.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 toNone
- Fix an edge case that would lead to an error if
Query.run_timeout_secs
wasNone
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