Places
Place details with entrances.
/v1/places/{place_id}ДоступноPlace details with entrances
- Хост
https://api.atasumaps.com·getPlace- Доступ
- API-ключ с областью: search
- Учёт
- place_details (за request)
Name (kk / ru / en), address, entrances with flat ranges, source and last update. Used
by the app and by atasumaps.com/p/{placeId}. A crowdsourced place that was reverted or hidden
returns 410 place_removed, so share pages stop showing old content.
OSM IDs resolve to the address / POI, street way, locality or building. The ID of an OSM entrance node
(Entrance.id) returns that entrance (precision: entrance, parent_id = its building), so route
waypoints and share links can point at an entrance.
entrances of an OSM address / building also lists the approved crowdsourced entrances submitted
for it (source: ugc, decision D42), and the ETag changes when they do. A crowdsourced entrance
submitted for an OSM building has that building's OSM id as parent_id — a reference only: none
of the building's OSM attributes are copied into the crowdsourced place.
Параметры
| Имя | Где | Тип | Обязательно | Описание |
|---|---|---|---|---|
place_id | path | PlaceId | да | |
lang | query | Lang | Response language; overrides Accept-Language. Default kk (Cyrillic). | |
session_token | query | string (uuid) | Ends the autocomplete session with the same token. |
Ответы
| Статус | Описание | Тип |
|---|---|---|
200 | Place | PlaceDetails |
401 | Missing or invalid credentials (unauthenticated, key_invalid, key_revoked, token_expired, token_invalid) | Problem |
402 | A budget cap is reached and no degraded answer exists (budget_exhausted; context.level is organization or product, context.product the product) | Problem |
403 | Authenticated but not allowed (scope_denied, key_restriction_failed, forbidden, user_banned, mfa_required, self_moderation_forbidden, feature_disabled) | Problem |
404 | No such resource, or not visible to the caller (not_found) | Problem |
410 | No longer available (place_removed, session_expired, invitation_expired) | Problem |
429 | Rate limit (rate_limited) or monthly plan quota (quota_exceeded: reject plans only; Retry-After = seconds until the next Asia/Almaty month; context = product, included, used, period_end) | Problem |