內容簡介
Nearspot Store Finder for OpenStreetMap 是一款幫助網站訪客快速找到附近地點的外掛,透過地圖和列表顯示結果,並支援多種搜尋和過濾功能,提升使用者體驗。
【主要功能】
• 支援地址、郵遞區號或城市搜尋
• 可設定搜尋半徑及結果數量過濾
• 提供「使用我的位置」功能
• 類別過濾,搭配分類法
• 標記聚合功能,自動管理大量標記
• 批次地理編碼及報告功能
外掛標籤
開發者團隊
② 後台搜尋「Nearspot Store Finder for OpenStreetMap」→ 直接安裝(推薦)
原文外掛簡介
Locations are a custom post type with an address and coordinates. A visitor
types a place, picks a radius, and gets the nearest locations as pins on a map
and as a list beside it. It ships as a shortcode and as a Bricks Builder
element.
What it does
Search by address, postcode or city, with suggestions as you type and a
search button beside the field
A radius filter in kilometres or miles, and a result-count filter
“Use my location”, which asks the browser for a position only when the
visitor presses the button
A category filter, backed by a taxonomy
Marker clustering, which switches itself on once a locator would draw fifty
pins, and which can be forced on or off
A directions link from a result to OpenStreetMap or to Google Maps, or none
at all, whichever the site chooses
Bulk geocoding from the admin, with a report of what happened to each row
A settings screen whose fields are a closed list of options rather than a
free-text box that can hold anything
How it is built
No dependencies and no build step. No npm, no Composer, no bundler. What
is in the plugin is what runs.
No jQuery. One frozen window.SLOSM namespace on the front end.
The REST API rather than admin-ajax. Four narrow, read-only routes.
Conditional assets. The clustering bundle downloads only when a locator
actually needs it; a site with twenty branches never sees it.
Geocoding through a server-side proxy, with a thirty-day cache and a
one-request-per-second gap, so a visitor’s browser never talks to the
geocoder itself and a failure is never cached.
Leaflet and Leaflet.markercluster are bundled rather than loaded from a CDN.
Known limitations in this release
Worth reading before this goes on a site that matters.
The search button is new in this release, and there is no form around
it. The address field has a Search button beside it now, running the same
search Enter runs; with the suggestion list open, both take the highlighted
suggestion rather than looking the text up again. What this markup
deliberately does not have is a
