апішка для гео опцій
unknown
json
3 years ago
969 B
15
Indexable
[POST] api/realties/moderation/get_geo_options { "fieldname": oneOf("building", "city", "district", "microdistrict", "raion", "street", "house"). | нас цікавить лише "house" "parentId": int | (street_id у нашому випадку) "value": string || int (для typeahead) } response: { "options": [ { "id": int "value": string || int (human-readable label) }, ... ] } P.S 1. Ліміт поля "options" по дефолту 50. Поки не рішили чи буде фіча з безскінечним скролом, пропоную лишити так 2. FYI field_name to parent_field (valid mappings) region -> None (не юзаєм) city -> region, raion raion -> region district -> city building -> city microdistrict -> district, city street -> microdistrict, district, city house -> street
Editor is loading...