export.js 1.3 KB

1234567891011121314151617181920212223242526
  1. var path = require('path')
  2. module.exports = {
  3. // 省级(省份、直辖市、自治区)
  4. provinces: require(path.resolve(__dirname, '../dist/provinces.json')),
  5. // 地级(城市)
  6. cities: require(path.resolve(__dirname, '../dist/cities.json')),
  7. // 县级(区县)
  8. areas: require(path.resolve(__dirname, '../dist/areas.json')),
  9. // 乡级(乡镇、街道)
  10. streets: require(path.resolve(__dirname, '../dist/streets.json')),
  11. // 乡级(乡镇、街道)
  12. villages: require(path.resolve(__dirname, '../dist/villages.json')),
  13. // “省份、城市” 二级联动数据
  14. pc: require(path.resolve(__dirname, '../dist/pc.json')),
  15. // “省份、城市” 二级联动数据(带编码)
  16. pcC: require(path.resolve(__dirname, '../dist/pc-code.json')),
  17. // “省份、城市、区县” 三级联动数据
  18. pca: require(path.resolve(__dirname, '../dist/pca.json')),
  19. // “省份、城市、区县” 三级联动数据(带编码)
  20. pcaC: require(path.resolve(__dirname, '../dist/pca-code.json')),
  21. // “省份、城市、区县、乡镇” 四级联动数据
  22. pcas: require(path.resolve(__dirname, '../dist/pcas.json')),
  23. // “省份、城市、区县、乡镇” 四级联动数据(带编码)
  24. pcasC: require(path.resolve(__dirname, '../dist/pcas-code.json'))
  25. }