Atasu Maps

Search

Autocomplete, address search, reverse geocoding with entrances.

← Все операции

GET/v1/geocode/autocompleteДоступно

Type-ahead suggestions (kk / ru / en, mixed Cyrillic and Latin)

Хост
https://api.atasumaps.com · autocomplete
Доступ
API-ключ с областью: search
Учёт
autocomplete_session (за session)

Normalizes with kz-text (transliteration, мкр / микр. / шағын аудан, дом / үй, подъезд / кіреберіс), then recalls from both the osm and ugc documents (never merged into one record). Metered per autocomplete session: requests sharing session_token count once; a session ends when a suggestion is resolved with getPlace / searchAddress or after 3 minutes idle.

Параметры

ИмяГдеТипОбязательноОписание
qquerystringда
nearqueryLngLatBias point lng,lat.
langqueryLangResponse language; overrides Accept-Language. Default kk (Cyrillic).
session_tokenquerystring (uuid)Client-generated UUID grouping the keystrokes of one search for metering.
limitqueryinteger

Ответы

СтатусОписаниеТип
200SuggestionsAutocompleteResponse
400Invalid request (invalid_request, idempotency_key_required, limit_exceeded, future_departure_not_supported, observation_in_future)Problem
401Missing or invalid credentials (unauthenticated, key_invalid, key_revoked, token_expired, token_invalid)Problem
402A budget cap is reached and no degraded answer exists (budget_exhausted; context.level is organization or product, context.product the product)Problem
403Authenticated but not allowed (scope_denied, key_restriction_failed, forbidden, user_banned, mfa_required, self_moderation_forbidden, feature_disabled)Problem
429Rate 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
503Dependency down (routing_unavailable, search_unavailable, budget_unavailable, traffic_unavailable, auth_unavailable, db_unavailable, tiles_unavailable)Problem
GET/v1/geocode/searchДоступно

Full-text and structured address / place search

Хост
https://api.atasumaps.com · searchAddress
Доступ
API-ключ с областью: search
Учёт
geocode (за request)

Either q (free text), the structured fields, or category with near / bbox. House, microdistrict-house, entrance and flat numbers must match exactly (no typo tolerance). Returns building or street precision when there is no entrance evidence — never a forced entrance.

Category browse / filter (the "Cafe · Restaurant · Parking · School · Market" shortcuts):

  • category restricts results to type: place documents whose category is in the list. It implies types=place: together with a types list that does not contain place the result is empty. House-number matching is skipped (addresses have no category).
  • With q (or structured fields): the normal text search, filtered to those categories.
  • Without q and structured fields: a pure category browse. It requires near or bbox (400 invalid_request otherwise). With near, places are sorted by distance from it (nearest first, distance_m set); with only bbox, by static rank inside the box.
  • The vocabulary is the place category field as returned in SearchResult.category (today the OSM amenity / shop / … value, e.g. cafe, restaurant, parking, school, marketplace, pharmacy). Which sources feed places depends on the POI decision, so coverage varies and a valid category can return no results.

Entrance evidence is an OSM entrance node of the building or an approved crowdsourced entrance submitted for it (parent_place_id = the building's OSM id; decision D42). The result stays the OSM address (its id, source: osm, attribution); the crowdsourced entrance is listed in entrances with source: ugc and its own ugc.* id, and with the same number as an OSM node it is the one chosen (a moderated correction). A reverted entrance is no longer listed.

Параметры

ИмяГдеТипОбязательноОписание
qquerystring
cityquerystring
streetquerystring
housequeryHouseNumber
mkrquerystring
mkr_housequeryHouseNumber
nearqueryLngLatBias point lng,lat.
bboxquerynumber[]Restrict to min_lng,min_lat,max_lng,max_lat.
typesqueryResultType[]
categoryquerystring[]Only places of these categories (comma-separated, e.g. cafe,restaurant). Makes q optional when near or bbox is given (category browse). See the operation description.
langqueryLangResponse language; overrides Accept-Language. Default kk (Cyrillic).
session_tokenquerystring (uuid)Ends the autocomplete session with the same token.
limitqueryinteger

Ответы

СтатусОписаниеТип
200Ranked resultsSearchResponse
400Invalid request (invalid_request, idempotency_key_required, limit_exceeded, future_departure_not_supported, observation_in_future)Problem
401Missing or invalid credentials (unauthenticated, key_invalid, key_revoked, token_expired, token_invalid)Problem
402A budget cap is reached and no degraded answer exists (budget_exhausted; context.level is organization or product, context.product the product)Problem
403Authenticated but not allowed (scope_denied, key_restriction_failed, forbidden, user_banned, mfa_required, self_moderation_forbidden, feature_disabled)Problem
429Rate 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
503Dependency down (routing_unavailable, search_unavailable, budget_unavailable, traffic_unavailable, auth_unavailable, db_unavailable, tiles_unavailable)Problem
GET/v1/geocode/reverseДоступно

Coordinates → address and nearest entrance

Хост
https://api.atasumaps.com · reverseGeocode
Доступ
API-ключ с областью: search
Учёт
reverse (за request)

KNN in osm and ugc separately, assembled in the API. The nearest point is not assumed to be the user's building: building outlines and distance thresholds decide. precision says how exact the answer is.

Параметры

ИмяГдеТипОбязательноОписание
lngquerynumberда
latquerynumberда
radius_mqueryinteger
langqueryLangResponse language; overrides Accept-Language. Default kk (Cyrillic).

Ответы

СтатусОписаниеТип
200Best match plus nearest entranceReverseResponse
400Invalid request (invalid_request, idempotency_key_required, limit_exceeded, future_departure_not_supported, observation_in_future)Problem
401Missing or invalid credentials (unauthenticated, key_invalid, key_revoked, token_expired, token_invalid)Problem
402A budget cap is reached and no degraded answer exists (budget_exhausted; context.level is organization or product, context.product the product)Problem
403Authenticated but not allowed (scope_denied, key_restriction_failed, forbidden, user_banned, mfa_required, self_moderation_forbidden, feature_disabled)Problem
422Understood but cannot be done (outside_coverage, no_route, unresolvable_waypoint, too_far_from_report, event_type_disabled, no_evidence, target_not_editable)Problem
429Rate 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
503Dependency down (routing_unavailable, search_unavailable, budget_unavailable, traffic_unavailable, auth_unavailable, db_unavailable, tiles_unavailable)Problem