Перейти к содержимому

addrs_get_address_by_type_retrieve

GET
/api/addrs/{id}/get_address_by_type/

Get parent address by type.

For example, we have house number with id 194, and we need to get its street.

Then we can: GET: /api/addrs/194/get_address_by_type/?addr_type=8

addr_type:

  • 0 - Unknown
  • 4 - Locality
  • 8 - Street
  • 12 - House
  • 16 - Office number
  • 20 - Building
  • 24 - Корпус
  • 64 - Other
id
required
integer

A unique integer value identifying this address model.

object
id
required
integer
parent_addr_title
required
string
fias_address_level_name
required
string
fias_address_type_name
required
string
address_type
integer
Allowed values: 0 4 8 12 16 20 24 64
fias_address_level
One of:
  • 0 - Не выбрано
  • 1 - Регион
  • 2 - Автономный округ
  • 3 - Район
  • 4 - Город
  • 5 - Внутригородская территория
  • 6 - Дом
integer
Allowed values: 0 1 2 3 4 5 6
fias_address_type
integer
Allowed values: 0 1 102 101 103 112 104 105 107 106 108 205 207 212 208 209 206 201 203 202 310 301 305 304 316 317 302 311 303 320 307 309 315 314 306 312 401 445 440 402 403 404 405 436 449 407 464 406 410 408 457 409 338 452 413 456 459 461 411 460 412 447 446 414 462 415 439 454 444 416 442 448 417 418 419 463 420 422 443 421 424 423 455 468 466 425 426 427 429 428 441 430 467 465 431 433 432 437 434 435 934 572 501 936 937 581 901 576 502 568 591 503 563 535 587 536 504 539 537 538 559 542 540 541 505 903 506 577 543 507 508 509 567 510 597 585 544 580 988 545 570 511 546 588 512 513 515 514 550 547 517 516 552 989 548 551 958 549 518 590 520 574 521 519 522 554 911 578 571 523 564 -2 555 524 556 561 557 525 584 526 915 916 917 566 919 920 921 922 923 992 924 925 579 990 927 991 928 929 527 528 529 930 530 569 589 558 531 931 601 805 806 809 902 904 905 906 907 909 610 620
title
required
string
<= 128 characters
parent_addr
Parent address
integer
nullable