Multiple Store Locator
A full store locator on Leaflet and OpenStreetMap.
Install in
Multiple Store Locator adds a searchable map of your stores to any page. Visitors type an address or ZIP code, or use their current location, and see the nearest stores on the map and in a list beside it.
The map runs on Leaflet and OpenStreetMap, so you don’t need a Google Maps API key or a billing account. Leaflet is bundled with the plugin.
Everything in this plugin is free. There is no store limit and nothing is locked.
Store management
- A Multiple Store Locator section in the admin with name, address, phone, email, website, WhatsApp number, description and image
- A map in the edit screen: drag the pin or click the map to set the exact location
- “Get coordinates from address” looks up the address with OpenStreetMap Nominatim. Coordinates are also looked up on save when you leave them empty.
- “Geocode missing stores” fixes every store without coordinates in one click, at Nominatim’s 1 request per second
- Unlimited stores
- Store categories (hierarchical) and brands
- Weekly opening hours, with a “Closed” switch for each day
- Up to 3 custom text fields, named in the settings
- Store status: Active, Temporarily closed or Coming soon, with list views, filters and badges
- Duplicate a store from the store list
- Export stores to CSV, all of them or by store status
- Works on multisite. Each site keeps its own stores.
Map
- OpenStreetMap tiles, with no API key
- 4 map styles: OpenStreetMap Standard, Carto Light, Carto Dark and Esri Imagery
- Marker clustering
- Marker color setting
- Popups with name, address, phone, today’s hours, distance and a directions link
- Zoom controls, fullscreen button, gesture handling (Ctrl + scroll, two fingers on touch screens) and scroll lock
- Map height, locator width (wide, full or content), default center (“Pick on map”) and default zoom
- Lazy loading: the map loads only when it scrolls into view
Search
- Address and ZIP code search
- “Use my location” button
- Radius dropdown in kilometers or miles
- Distance search with the Haversine formula in SQL and a bounding-box prefilter on an indexed table, so it stays fast with thousands of stores
- Category filter and store name search
- Limit geocoding to selected countries
- When no store is inside the radius, the nearest store is shown instead
Results
- A results list that stays in sync with the map. Hover or focus a result to highlight its marker. Click a marker to highlight its result.
- Two layouts: list left of the map, or list below the map
- Sort by distance or name
- “Load more” button
- Stacks on phones and narrow columns
- Choose what the list and popups show: address, distance, phone, email, today’s hours, directions, WhatsApp, website and status badge
- Customization page with a live preview: colors for links, buttons, text, result cards and borders (or follow your theme), font, text size, corner radius, card styles (bordered, shadow, flat), outline or filled buttons, pill or underlined links, marker shape (pin, circle, dot) and size, and cluster colors
Directions and contact
- Directions link to Google Maps, Apple Maps or OpenStreetMap, or detect the device (Apple Maps on iPhone and iPad)
- Call, Email, WhatsApp and Website buttons
Store pages and SEO
- Each store has its own page at /stores/store-name/ (the base is configurable) with a map, address, contact details, opening hours and a link back to the locator
- LocalBusiness JSON-LD with name, address, coordinates, phone and URL
- Store pages are added to the WordPress sitemap, and work with the Yoast SEO and Rank Math sitemaps. You can leave them out with one setting.
Page builders
- Shortcode:
[anilsuwal_store_locator], or[anilsuwal_store_locator store="123"]for a map of one store - “Multiple Store Locator” block for the block editor
- Elementor widget
For developers
- Read-only REST API:
GET /wp-json/anilsuwal-store-locator/v1/stores,GET /wp-json/anilsuwal-store-locator/v1/stores/{id}andGET /wp-json/anilsuwal-store-locator/v1/search - Tools page: how to add the locator, CSV export, geocoding progress, cache clearing and system info
- Help Center with a searchable FAQ that links straight to the right settings
- Actions and filters for the search query, store data, output, schema and settings
- Theme template overrides
- Server-side geocoding cache that respects Nominatim’s limit of 1 request per second
- Search result caching with transients or your object cache
- Scripts and styles load only on pages that show a locator or a store
Privacy and accessibility
- Translation-ready, with RTL support
- Works with WPML and Polylang
- Optional consent button before map tiles load or the visitor’s location is used
- Keyboard-friendly list and controls, ARIA labels and visible focus outlines
External services
This plugin relies on the third-party services below to show maps, turn addresses into coordinates and open directions. It does not send data anywhere else, and it has no tracking or analytics.
You can delay all map tile requests until the visitor agrees: turn on Multiple Store Locator > Settings > Privacy > Map consent. The plugin also adds suggested text to Settings > Privacy > Policy Guide.
OpenStreetMap tile server
Map images for the “OSM Standard” style come from tile.openstreetmap.org, run by the OpenStreetMap Foundation. They are requested by the visitor’s browser whenever a map is shown: the store locator, store pages and the map in the store edit screen. The tile server receives the visitor’s IP address, browser details (user agent and referring page) and the map area being viewed.
- Tile usage policy: https://operations.osmfoundation.org/policies/tiles/
- Terms of use: https://osmfoundation.org/wiki/Terms_of_Use
- Privacy policy: https://osmfoundation.org/wiki/Privacy_Policy
CARTO basemaps
Used only when you choose the “Carto Light” or “Carto Dark” map style. The visitor’s browser requests map images from basemaps.cartocdn.com, run by CARTO, and sends the same information as above.
- Terms of service: https://carto.com/legal
- Privacy policy: https://carto.com/privacy
Esri World Imagery
Used only when you choose the “Esri Imagery” map style. The visitor’s browser requests satellite images from server.arcgisonline.com, run by Esri, and sends the same information as above.
- Terms of use: https://www.esri.com/en-us/legal/terms/full-master-agreement
- Privacy policy: https://www.esri.com/en-us/privacy/overview
OpenStreetMap Nominatim (geocoding)
Nominatim, run by the OpenStreetMap Foundation, turns addresses into coordinates. Your server, not the visitor’s browser, sends the request to nominatim.openstreetmap.org:
- when you click “Get coordinates from address” on a store, or save a store without coordinates. The store’s address is sent.
- when you click “Geocode missing stores” on All Stores or in Tools. The address of each store without coordinates is sent, one per second.
- when a visitor searches for an address, city or ZIP code. The text they typed is sent. The visitor’s IP address is not sent.
Each request also sends your site’s address (in the User-Agent and Referer headers), your site language, the optional country restriction and, if you add one in Settings > Advanced, your contact email. Results are cached on your server for 30 days (failed lookups for 1 day), requests are spaced at least one second apart, and each visitor is limited to 20 uncached lookups every 10 minutes.
- Usage policy: https://operations.osmfoundation.org/policies/nominatim/
- Terms of use: https://osmfoundation.org/wiki/Terms_of_Use
- Privacy policy: https://osmfoundation.org/wiki/Privacy_Policy
Directions: Google Maps, Apple Maps, OpenStreetMap
The “Directions” and “Get directions” links open Google Maps, Apple Maps or OpenStreetMap, as chosen in Settings > General (“Detect device” opens Apple Maps on iPhone and iPad and Google Maps elsewhere). Nothing is sent until the visitor clicks a link. The link contains the store’s coordinates and, if the visitor searched first, their search location.
- Google Maps: terms https://policies.google.com/terms, privacy https://policies.google.com/privacy
- Apple Maps: terms https://www.apple.com/legal/internet-services/maps/terms-en.html, privacy https://www.apple.com/legal/privacy/
- OpenStreetMap: terms https://osmfoundation.org/wiki/Terms_of_Use, privacy https://osmfoundation.org/wiki/Privacy_Policy
The “WhatsApp” button opens wa.me, run by WhatsApp (Meta), with the store’s WhatsApp number. Nothing is sent until the visitor clicks it.
- Terms of service: https://www.whatsapp.com/legal/terms-of-service
- Privacy policy: https://www.whatsapp.com/legal/privacy-policy
Third-party libraries
These libraries are bundled in assets/vendor/. The readable source files ship next to the minified ones.
- Leaflet 1.9.4, BSD 2-Clause License, https://github.com/Leaflet/Leaflet
- Leaflet.markercluster 1.5.3, MIT License, https://github.com/Leaflet/Leaflet.markercluster
Written by Joobi from the project's own listing. See the source page
1.0.0
- First release.
Follow this listing's changes (Atom feed)