1.0.1 • Published 5 years ago

ror-constants v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

ror-constants

Constants of the rosreestr.ru: cadastral regions and districts.

Used on pages: http://rosreestr.ru/api/online/fir_objects/* and https://rosreestr.ru/wps/portal/p/cc_ib_portal_services/online_request/

Quick start

Install with NPM:

$ npm i ror-constants

Import to your script:

const data = require('ror-constants')
ParamTypeDescription
data[]ArrayCollection of subjects
data[].idStringRosreestr subject id, ex. "101000000000"
data[].typeStringConstant "subject"
data[].valueStringRosreestr subject name, ex. "Алтайский край"
data[].children[]StringCollection of regions
data[].children[].idStringRosreestr region id, ex. "101405000000"
data[].children[].typeStringConstant "region"
data[].children[].valueStringRosreestr region name, ex. "Бийск"
data[].children[].children[]StringCollection of settlements
data[].children[].children[].idStringRoreestr settlement id, ex. "101405564000"
data[].children[].children[].typeStringConstant "settlement"
data[].children[].children[].valueStringRoreestr settlement name, ex. "Сорокино"
data[].children[].children[].settlementIdStringRoreestr settlement type id, ex. "set4"
data[].children[].children[].settlementTypeStringRoreestr settlement type name, ex. "Город"

Parsing

DEBUG=ror-constants npm run parse
1.0.1

5 years ago