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

System settings

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

System → System Settings → filter yandexmapslocator.

All keys are installed by Free. REST keys (api_*) activate after Pro. Rate limit from the same group applies to Free search.php too.

Map and search (yandexmapslocator_main)

KeyTypeDefaultDescription
yandexmapslocator_api_keytext(empty)JS API and Geocoder key
yandexmapslocator_default_zoomnumber10Map zoom
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 network timezone (fallback) when the location has no TV yandexmaps_timezone. Required for Pro working_now / is_open_now
yandexmapslocator_allowed_contextstext(empty)Comma-separated context key allowlist. 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 if TVs on the site already use different names. TV list: Locations and TVs.

REST and limits (yandexmapslocator_api)

KeyTypeDefaultDescription
yandexmapslocator_api_enabledbooleanYesPro REST kill switch. Off → 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 parents per 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. Not * on production
yandexmapslocator_api_tokentext(empty)Bearer token. Empty: public REST (dev only)
yandexmapslocator_api_resource_tvstext(empty)Allowed TVs in include=tv
yandexmapslocator_api_allowed_parentstext(empty)Parent ID allowlist. Empty: any
yandexmapslocator_api_trust_proxybooleanNoTrust X-Forwarded-For for rate limit

Details: API security.

Pro

Pro has no own runtime settings in System Settings. Use Free keys above. TVs created by the Pro resolver: yandexmaps_timezone, ms3_product_id, ms3_product_ids, yandexmaps_amenities, yandexmaps_brand. List: Locations and TVs.