Skip to content
  1. Extras
  2. YandexMapsLocator
  3. Getting started
  4. System settings

System settings

Namespace: yandexmapslocator. In the database, keys use the prefix yandexmapslocator_.

System → System Settings → filter yandexmapslocator.

All keys are installed by Free. REST keys (api_*) activate after Pro. Rate limits from the same group also apply to Free search.php.

Map and search (yandexmapslocator_main)

KeyTypeDefaultDescription
yandexmapslocator_api_keytext(empty)JS API and Geocoder key
yandexmapslocator_default_zoomnumber10Map zoom level
yandexmapslocator_default_latitudetext55.751244Center latitude
yandexmapslocator_default_longitudetext37.618423Center longitude
yandexmapslocator_clusterbooleanYesMarker clustering
yandexmapslocator_default_radiusnumber50Search radius, km (when snippet radius=0)
yandexmapslocator_distance_unitlistkmDistance unit: km or m
yandexmapslocator_default_balloon_imagetext(empty)Fallback balloon image
yandexmapslocator_marker_icon_sizetext32,32Custom marker icon size, px
yandexmapslocator_default_contexttextwebFallback context. Also Pro CSV export context
yandexmapslocator_timezonetextEurope/MoscowIANA timezone for Pro working_now / is_open_now
yandexmapslocator_allowed_contextstext(empty)Comma-separated allowlist of context keys. Empty = any existing context

TV names (yandexmapslocator_tvs)

KeyDefault
yandexmapslocator_tv_addressyandexmaps_address
yandexmapslocator_tv_latitudeyandexmaps_latitude
yandexmapslocator_tv_longitudeyandexmaps_longitude
yandexmapslocator_tv_phoneyandexmaps_phone
yandexmapslocator_tv_emailyandexmaps_email
yandexmapslocator_tv_working_hoursyandexmaps_working_hours
yandexmapslocator_tv_categoryyandexmaps_category
yandexmapslocator_tv_balloon_imageyandexmaps_balloon_image
yandexmapslocator_tv_marker_iconyandexmaps_marker_icon

Change the setting value if TVs on the site are already named differently. TV list: Locations and TVs.

REST and limits (yandexmapslocator_api)

KeyTypeDefaultDescription
yandexmapslocator_api_enabledbooleanYesPro REST kill switch. No → 503. On-page locator falls back to search.php
yandexmapslocator_api_max_limitnumber100Max limit in REST
yandexmapslocator_api_max_offsetnumber10000Max offset
yandexmapslocator_api_max_parentsnumber20Max number of parents in a request
yandexmapslocator_api_geocode_rate_limitnumber30Geocode requests per minute per IP
yandexmapslocator_api_list_rate_limitnumber120List requests per minute per IP (and limit for search.php)
yandexmapslocator_api_cors_originstext(empty)Comma-separated origins. Do not use * on production
yandexmapslocator_api_tokentext(empty)Bearer token. Empty = public REST (staging only)
yandexmapslocator_api_resource_tvstext(empty)Allowed TVs for include=tv
yandexmapslocator_api_allowed_parentstext(empty)Allowlist of parent IDs. Empty = any
yandexmapslocator_api_trust_proxybooleanNoTrust X-Forwarded-For for rate limiting

More: API security.

Pro

Pro has no separate runtime settings. Use the Free keys above plus TV ms3_product_id (created by the Pro resolver).