A pure Dart libraries include chinese cities base on 2020 National Bureau of Statistics

Usage

A simple usage example:

import 'package:chinese_cities/chinese_cities.dart';

main() {
  print(cities);
  ChineseCities.getProvinceByName('浙江');
  ChineseCities.getCityByName('辖');
  ChineseCities.getCountyByName('东城');
}

Extra

  • package core code generated by chinese_cities_fetch(not release yet)

Features and bugs

Please file feature requests and bugs at the [tracker(https://github.com/laiiihz/chinese_cities/issues)].

Libraries

chinese_cities