Closed tsevdos closed 1 week ago
Visiting https://geodata.gov.gr/dataset/poleis & choosing GeoJson && WSG format is the most suitable resource for this open issue.
Let's add the below helper fns for the cities:
getCities({ locale = "el" }: options) => City[]
searchCityByName({searchTerm: "Αθήνα", locale? = "el"}: options) => City[]
getCityById({ id, locale = "el" }: options) => City
getCityAdministrativeDivision({ id, locale = "el", type: "region" | "unit" | "municipality" | "prefecture" }: options) => Region | Unit | Municipality | Prefecture | null
fixed with https://github.com/tsevdos/elUtils/pull/83
We can get data from this site: https://geodata.gov.gr