boundary=place is valid

Example: 51.4564, -0.6486 -> Windsor (Q464955)
This commit is contained in:
Edward Betts 2023-11-04 21:22:09 +00:00
parent 5dbb50ed34
commit b700f88da6
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ class Polygon(Base):
q = cls.query.filter(
or_(
cls.boundary == "political",
cls.boundary == "place",
and_(
cls.admin_level.isnot(None), # type: ignore
cls.admin_level.regexp_match(r"^\d+$"), # type: ignore