Skip to content

Usage

Everything that uses the core “Maps and geolocation” add-on keeps working, with OpenStreetMap maps instead of Google:

  • Stores and pickup points page and the pickup point map at checkout: a placeholder with the number of locations and a Show map button. The map loads when the visitor clicks it (or scrolls to it, depending on the setting) or clicks a location in the list.
  • Customer location block: the visitor’s city is detected when they open the location picker. The picker map has an address search box with suggestions.
  • Vendor locations (Multi-Vendor): the “closest vendors” block, the location filter, the vendors map and the vendor address field use OpenStreetMap and the cached geocoding.

Map placeholder before the visitor asks for the map

Bots and crawlers see the placeholder only.

Open Website > Maps cost saver.

Savings dashboard

  • Estimated Google Maps bill avoided this month: the requests served without Google, priced with your list prices, counting only events above Google’s free monthly cap per SKU. Next to it: the list-price value of everything served for free, the previous month and the total since install.
  • Map loads avoided: OpenStreetMap maps, maps that were never opened thanks to lazy loading, and maps skipped for bots.
  • Geocoding requests answered by the cache or the free service, with the cache hit rate. Lookups the store makes for itself (filling coordinates by cron or Run now, the address tester) are not counted as savings: the core add-ons would not have sent them to Google.
  • Address suggestions and location lookups avoided (deferred automatic detections and free lookups).
  • Last 30 days chart and the estimate by Google SKU table.
  • Setup: which provider each area uses, lazy loading, bot filter, location detection, map tiles (amber with a link to the usage policy while the public OpenStreetMap tile server is used), geocoding, and the state of the core map add-ons (with a warning when Google is still used without an API key).
  • Geocoding cache: cached answers, reuse, hit rate, expired entries, size, today’s requests to the free service; Delete expired entries and Clear the cache.
  • Test an address: look up an address with the store’s settings and see the results on a map.
  • Fill missing coordinates: store locations, pickup points and vendors without coordinates; Run now geocodes 10 addresses, Retry addresses not found gives failed addresses another chance (each address is tried 3 times).
  • Cheapest: OpenStreetMap on the storefront and in the admin, maps on click, deferred location detection.
  • Keep Google, pay less: core provider on the storefront with maps on click, the bot filter and deferred detection. Google is only loaded for visitors who open a map.
  • Google in the admin: OpenStreetMap on the storefront, core provider in the admin panel (the default).

The cron command fills missing coordinates in small batches and removes expired cache entries:

php /home/yourstore/public_html/admin.php --dispatch=kv_maps_geo_cost_saver.cron

Every 15 minutes is enough. The add-on runs no background process of its own.