API reference
Locations
Township
code: str
name: str
county: County
coordinates: Coordinates | None
full_name: str An administrative district, township or county-administered city.
The code identifies the township. The coordinates are a reference point for location queries.
Township.parse
def parse(name: str) -> Township Resolve a Chinese name and report ambiguous short names.
County
code: str
label: str
townships: tuple[Township, ...] A Taiwanese county or municipality, identified by its administrative code.
County.parse
def parse(name: str) -> County Resolve a full Chinese name or an unambiguous short name.
Coordinates
Coordinates(*, latitude: float, longitude: float)
latitude: float
longitude: float A point in WGS84 decimal degrees.