Skip to content

v0.4.1

Choose a tag to compare

@webysther webysther released this 15 Nov 01:39

Fixed

  • A municipality is looked up only in the zones near its location, within
    60 km. DPC lists the municipalities by name, and a few names belong to two
    municipalities far apart: Peglio, in Lombardy and in the Marche, got the
    highest alert of both. So did Livo, Samone, Castro, San Teodoro, Calliano
    and Valverde. Each now gets its own zone. A municipality listed only far
    from the location is ignored, with a warning, and the coordinates are used.
  • "Corvara in Badia/Corvara", as the criticality bulletin lists it, no longer
    matches the Corvara of Abruzzo in the vigilance bulletin.

Added

  • aiodpc.geo.distance_to_area_km(): the distance from a point to a Polygon
    or MultiPolygon, 0 inside it.
  • aiodpc.parsers.MUNICIPALITY_RADIUS_KM, the 60 km above.