Skip to content

Configuration

Open Add-ons > Manage add-ons > Maps & Geolocation Cost Saver > Settings. On CS-Cart (Ultimate) the General and OpenStreetMap map tabs can differ per storefront; geocoding, savings and cron settings are shared.

Setting Default What it does
Enable On Switches every feature of the add-on on or off.
Map provider on the storefront OpenStreetMap OpenStreetMap replaces Google or Yandex in the core “Maps and geolocation” add-on (and “Vendor locations” on Multi-Vendor). Core provider keeps the provider of that add-on and only adds lazy loading, the bot filter and deferred location detection.
Map provider in the admin and vendor panels Core provider The same choice for the address pickers and maps of the admin and vendor panels.
Load storefront maps On click On click: a light placeholder with a “Show map” button. When visible: the map loads when it scrolls into view. Immediately: no lazy loading. Maps opened by the visitor (dialogs, “show on map” links) load at once.
Placeholder image URL empty Optional picture behind the “Show map” button, for example a screenshot of your area (full URL or a path starting with /). Empty = a built-in map drawing.
Never load maps or ask for the location for bots On Crawlers, SEO tools and scrapers see the placeholder only.
Customer location detection Deferred Deferred: the core location block detects the visitor’s city only when the visitor opens the location picker or clicks “use my location”. Core behaviour: automatic detection on page load, as before (core keeps the result for the browser session).
Setting Default What it does
Map tiles URL https://tile.openstreetmap.org/{z}/{x}/{y}.png Any tile server with {z}, {x} and {y}. The public OpenStreetMap server is free for normal use; for high traffic use a tile provider or your own server.

Other tile servers. The public OpenStreetMap server is the default so maps work without any account, and the dashboard’s Setup card marks it in amber with a link to its usage policy. For a busy store, use a tile provider or your own server. Examples of URL patterns (each provider has a free plan with a monthly limit; create a key on its site, put the key in the URL and enter the provider’s credit in Map tiles attribution, keeping “© OpenStreetMap contributors”):

Provider Map tiles URL
MapTiler https://api.maptiler.com/maps/streets-v2/{z}/{x}/{y}.png?key=YOUR_KEY
Stadia Maps https://tiles.stadiamaps.com/tiles/osm_bright/{z}/{x}/{y}.png?api_key=YOUR_KEY
Thunderforest https://tile.thunderforest.com/atlas/{z}/{x}/{y}.png?apikey=YOUR_KEY
Your own server for example https://tiles.example.com/{z}/{x}/{y}.png

Check the provider’s current plan, limits and attribution rules before you use it; the add-on does not need any change when you switch. | Map tiles attribution | © OpenStreetMap contributors | Required by the tile server. The OpenStreetMap credit is always kept when the OpenStreetMap tiles are used. | | Maximum zoom | 19 | | | Marker colour | #2563eb | Pins, grouped-marker bubbles and the placeholder icon. | | Group nearby markers | On | Nearby locations are shown as one numbered bubble until the visitor zooms in. | | Default map center | empty | latitude, longitude, zoom for maps without markers, for example 51.5074, -0.1278, 12. |

Setting Default What it does
Geocoding service Nominatim (public, free) Nominatim or Photon (public servers of the OpenStreetMap community) or your own Nominatim / Photon server.
Self-hosted geocoding URL empty Base URL of your own server, for example https://geo.example.com.
Address suggestions while typing Photon (public, free) Nominatim’s usage policy does not allow suggestions while typing, so suggestions use Photon. Off: addresses are searched when the visitor presses Enter.
Self-hosted Photon URL for suggestions empty
Contact e-mail for Nominatim empty Optional. Sent to the public Nominatim server so its operators can contact you about heavy use.
Limit results to countries empty Two-letter ISO codes, for example us,ca.
Keep geocoding results for (days) 180 Answers are reused from the local cache. “Nothing found” answers are kept for one day.
Maximum geocoding requests per day 2000 New lookups wait until the next day when reached; cached answers keep working. 0 = no limit.
Maximum new lookups per visitor and hour 60 Stops a visitor or a bot from using your store as a free geocoding service. On Multi-Vendor the same limit applies per vendor in the vendor panel, so one vendor cannot use up the daily limit. 0 = no limit.

Public server rules. Requests to the public Nominatim and Photon servers are sent one at a time, at most one per second for the whole store, with a user agent that names the add-on and your store. If a request would have to wait more than a few seconds, the visitor gets “please try again” and nothing is sent. For heavy use, run your own server.

Setting Default
Google Dynamic Maps price per 1,000 loads (USD) 7.00
Google Geocoding price per 1,000 requests (USD) 5.00
Google Places Autocomplete price per 1,000 requests (USD) 2.83
Google Geolocation price per 1,000 requests (USD) 5.00
Free monthly events per Google SKU 10000

The defaults follow Google’s public list price for the first tier. Edit them to match your Google Cloud bill: they are only used for the estimate on the dashboard.

Setting Default What it does
Server cron Shows the command for your server cron, for example php /home/yourstore/public_html/admin.php --dispatch=kv_maps_geo_cost_saver.cron.
Addresses per cron run 30 Each run geocodes up to this many addresses.
Fill missing coordinates of store locations and pickup points On Locations of “Stores and pickup points” with latitude and longitude 0 (for example imported ones).
Create missing vendor locations from vendor addresses (Multi-Vendor) On Vendors without a location in “Vendor locations” get one from their company address.

When the core GDPR add-on shows a cookie consent dialog, the add-on adds the service “OpenStreetMap maps” (purpose: functional). Map tiles are loaded only when this service is allowed; otherwise the placeholder shows a link to the cookie settings.

Usage policies of the public OpenStreetMap services

Section titled “Usage policies of the public OpenStreetMap services”

The defaults use free public servers run by the OpenStreetMap community. They have no service level agreement and their operators can throttle or block a site that breaks their rules. Read the current policy text before going live:

  • Map tiles (tile.openstreetmap.org): Tile usage policy. The visible “© OpenStreetMap contributors” credit is required, tiles must be loaded by real visitors (no bulk download, no prefetch, no offline copies) and heavy traffic needs another tile provider or your own tile server. The add-on keeps the credit on every map, loads tiles only when a map is shown (lazy loading), never for bots, and never prefetches tiles.
  • Nominatim (nominatim.openstreetmap.org): Nominatim usage policy. At most one request per second, an identifying user agent, results cached locally, no suggestions while typing, no systematic or large bulk geocoding. The add-on sends at most one request per second for the whole store, names itself and your store in the user agent, caches every answer and never uses Nominatim for suggestions. Filling missing coordinates by cron runs in small batches at the same speed; for thousands of addresses use your own Nominatim server.
  • Photon (photon.komoot.io): a free public demo server for fair use; heavy use can be throttled or blocked without notice. For many address suggestions per day, run your own Photon server and enter its URL.

The daily limit and the per-visitor hourly limit (Geocoding tab) keep your store inside these rules even when a bot hits the address search.

What leaves your store and what the add-on keeps:

Data Where it goes Kept
Address searches, reverse lookups (coordinates) and suggestions Sent by your server to the geocoding service you choose, with the search text, the language, the add-on user agent with your store URL and, for Nominatim, the optional contact e-mail. The visitor’s IP address and cookies are not sent. Search text and answer in the add-on cache table for the cache time (default 180 days; “Nothing found” 1 day). Clear it any time on the dashboard.
Map tiles Loaded by the visitor’s browser from the tile server, which sees the visitor’s IP address, browser user agent and the page address. Nothing in your store. With the core GDPR add-on, tiles load only after the visitor allows the “OpenStreetMap maps” service.
Country of the visitor (location fallback) Looked up locally in the GeoLite2 country database that ships with CS-Cart. No external request. Not stored.
Per-visitor and per-vendor limits The visitor’s IP address (IPv6 per /64 network), or the vendor’s company id in the vendor panel, is turned into a keyed hash (HMAC with a random secret created for your store) before it is stored, so it is pseudonymised and cannot be read back. One row per visitor or vendor and hour; rows older than 2 days are deleted by the cron and, without a cron job, now and then during normal requests.
Savings statistics Counters only (map loads, lookups, cache hits per day), no visitor data. 400 days.

The JavaScript map library (Leaflet) and its add-ons ship with the add-on and are served from your store: no CDN request. Mention the tile server and the geocoding service in your privacy policy; when you use your own servers, only those servers receive the data above.