=== Pinscribe – Maps, Directories & Routes ===
Contributors: pinscribe
Tags: map, directory, store locator, routes, ai
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 3.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Beautiful maps for WordPress that anyone can make: blog maps, directories, store locators, routes and tours. Ask your AI assistant to fill them in.

== Description ==

**Write it. Pin it.** Pinscribe turns your places into a beautiful map people can search: the places you write about, the shops you stock, the routes you ride and the tours you run.

= Your first map in a minute =

Activate Pinscribe and a short setup asks six plain questions: what you're making, where, which look, sample places, the credit and your map page. Then it's live. No codes, no keys, no sign-ups, and every "put it on a page" option has a **Make a page for me** button.

= Five kinds of map =

* **Blog maps**: every post about a place becomes a pin and a card.
* **Directories and store locators**: places people can search, with opening hours, "Open now", Near me and directions.
* **Routes**: drives, rides and walks that follow real roads and paths, with distance, climbing, GPX and a live mode for the road.
* **Tours**: stops joined up in order, with nights, travel and places to stay near each one.
* **Trips**: day-by-day plans travellers book and follow on their phone, even offline.

= Built with AI =

Pinscribe gives AI assistants such as Claude and ChatGPT their own tools on your site (WordPress Abilities, through any MCP connector): see the map's setup, list places, find a location, add a place and make a map page. New places start as drafts. Every place also carries the details Google and AI search read (schema.org).

= Also included =

Reviews and saved places, business owners who claim their listing, reels from TikTok, Instagram and YouTube, ads and featured listings, statistics without cookies, your own colours, fonts and wording, blocks, Elementor and Divi, and maps that stay fast with thousands of places.

= Nothing locked in =

Everything is stored on your own posts. The maps use free OpenFreeMap tiles: no API key. Remove the plugin and every post, photo and address stays where it is.

= Made to be found =

Pinscribe is free. In return, new installs show a small "Map by Pinscribe · Descent Digital" credit in the corner of your maps. The setup tells you about it and lets you turn it off, and everything works the same either way.

Full guides: [pinscribe.app/guides](https://pinscribe.app/guides/).

== Installation ==

1. Install Pinscribe from Plugins → Add New, or upload the zip under Plugins → Add New → Upload Plugin, and activate it.
2. Open **Pinscribe → Home**, pick the kind of map you want, and follow the quick start. It ticks itself off as you go.
3. Choose your design under **Appearance**.
4. Choose the category or tag that puts a post on the map (it is "map" to begin with), and add your listing types under **Listing types & custom pins**.
5. Write a post, give it that category or tag, and find its place in the **Map location** box in the editor's sidebar. Publish, and it is on the map.
6. Put the map on a page with the **Pinscribe map** block, the Elementor widget or the `[pinscribe]` shortcode, and choose that page as the main map page under **Settings**.

== Frequently Asked Questions ==

= Do I need an API key or an account anywhere? =

No. The map runs on OpenFreeMap, which needs no key, no sign-up and has no usage limits. You can switch to CARTO, Stadia Maps or MapTiler under Design → Map controls, which need their own free key.

= What happens to my posts if I remove the plugin? =

Nothing. Your posts, their text and their pages are never changed. Locations and featured dates are kept as ordinary custom fields on each post. Maps added as a block or Elementor widget disappear from their pages by themselves; a shortcode is left showing as plain text, so edit those pages first. Deleting the plugin keeps all map data unless you tick "Also delete all map data" under Settings first.

= Does it work with pages and custom post types? =

Yes. Under Directories → More options → Other content on the map, tick any content type your site has, such as pages or a "Branches" type from your theme. Each gets the Map location box, and goes on the map as soon as it has a location.

= Can I import lots of locations at once? =

Yes. Directories → Need a location can look up every post's location from its address, or its name and town. Or download the spreadsheet template, fill it in and upload it as CSV. New listing types named in the spreadsheet are created for you.

= Can venues pay to be featured? =

Yes, through a Stripe Payment Link or your own WooCommerce checkout. Paid listings is in beta: make a test payment from start to finish before offering it to venues. A listing is featured automatically as soon as the payment clears, and paying again extends it. Card details never touch your site.

= Does it set cookies or need a cookie banner? =

Pinscribe sets no cookies of its own and collects nothing personal in its statistics. Like any map, it loads its background from a map provider, which sees visitors' IP addresses. The Privacy panel on the Settings screen lists exactly where visitors' requests go with your settings, and suggests wording for your privacy policy.

= Can I change every word visitors see? =

Yes. Branding & wording covers every label, button and message on the map, the cards and the suggestion form, so the map can speak in your own voice or language. The plugin is also ready for translation.

= The map stays blank until I scroll or tap. Why? =

A speed plugin is delaying scripts. Pinscribe excludes itself from LiteSpeed Cache, WP Rocket, Perfmatters and Cloudflare Rocket Loader automatically. With any other, add `pinscribe.js` to its list of scripts not to delay or combine.

= Can it handle thousands of listings? =

Yes. Map pages don't carry your listings: each map fetches a small, cached list of pins (about 140 KB compressed for 5,000 listings), and each card's picture and details only when it is shown. Saving a listing updates only that listing. If a security plugin blocks the REST API for visitors, allow `/wp-json/pinscribe/v1/`.

= Where is the source of the map script? =

`assets/pinscribe.js` is built from the readable source in the plugin's `source` folder, which includes the build instructions.

== Features in detail ==

= Nothing locked in =

Everything Pinscribe knows is stored on your own posts. There is no separate listings section to maintain, and no data held anywhere else. Remove the plugin and every post, location and featured date stays exactly where it is.

= No keys, no sign-ups =

The map works the moment the plugin is activated, on free OpenFreeMap tiles. CARTO, Stadia Maps and MapTiler are there if you prefer them.

= The map =

* Pins group into numbered circles that open up as you zoom in
* A frosted glass bar floating over the map: listing types, List, search, Near me and Share, with finger-sized controls on phones
* Glowing continent outlines you can click to explore a region, with every listing placed in its continent automatically
* A panel for every venue: photo, dates, opening hours, description, Read More, Get directions, Call, Website and Share
* A list beside the map, grouped by region and country, which can follow the map as it moves
* Near me: venues around the visitor or any town or postcode, sorted by distance, with a distance limit
* On computers, a glass zoom strip down the right edge. On phones the map sits still so the page scrolls past it, and a tap opens it full screen with pinch to zoom
* Dark, light or colour map styles, or your own sea and land colours
* Height presets, so a map fits neatly into a blog post
* An ad slot with separate desktop and mobile banners
* Loads only when scrolled into view, so pages stay quick
* Map area: cover the whole world, one continent, or one place such as a country, region, county or city. The map opens on it and stays there, the rest of the world is shaded out, and your own areas inside it can still be picked

= Routes (switch on under Pinscribe → Routes) =

* Drives, bike rides on roads, rides on roads and trails, and walks, each drawn on its own post
* Click the start and finish and the route follows roads, bridleways, trails or footpaths to suit; drag it to send it another way, or upload a GPX file instead
* Places to stay along the route, from your own listings or added by name, with overnight stops turning the route into days
* For visitors: distance, climbing and time, a height profile that points to the spot on the map, day-by-day stages, a GPX download and directions to the start
* Routes show as lines on your maps, with their own button in the bar, their own cards and a place in the list
* No key or sign-up: routes are worked out while you draw them, saved with the post, and kept as a GPX file in your Media Library

= Cards, filters and calendar =

* Cards under the map, one section per listing type, with Load more
* A listings page with no map: your listings like a blog, newest first, with the same filters (a block layout and an Elementor widget)
* Every section has its own filter chips, drawn from its own listings: months for events, Open now, services, Featured, and countries or towns
* Card sets: pick venues, drag them into order and place a numbered "top five" in any post, as a map, a list or cards
* A calendar section: a month grid and a list of events

= Listing details =

* Each listing post can end with its details as cards: contact (phone, website, email, Instagram, Facebook, TikTok, X), opening hours with Open now, a summary, services, and the location with a small map and directions
* Cards only appear for what a listing has, and take your map's colours and fonts
* A block, an Elementor widget (made for Elementor Pro single post templates) and [pinscribe_details], to place them yourself

= Store locator =

* A one-word store locator layout: the list open and following the map, with search and Near me
* Phone, email, website, opening hours and services on each listing, with an Open now badge
* Works with your own content types (branches, venues, pages), not only posts, and can read locations from Advanced Custom Fields

= Featured and paid listings (paid listings in beta) =

* Featured listings get a larger, ringed pin, come first in their section and the list, and carry a Featured label
* Venues can pay to be featured themselves, through a Stripe Payment Link or your own WooCommerce checkout
* With WooCommerce: sell several packages (such as 30 or 90 days) with every payment method, tax rule, invoice and coupon your shop already has. Refunds take the days off again, and WooCommerce Subscriptions renewals extend them
* A listings carousel for blog sidebars, featured listings first, inviting readers to the map

= Put it anywhere =

* An editor block, an Elementor widget and a shortcode
* Show everything, one region, one custom view area, a card set or a single venue
* Custom view areas: type a place such as Texas or Shropshire to frame it, or drag a box into shape on a map
* Every listing post can end with its own small map and "Also nearby" cards
* Link straight to any pin, region, custom view area or listing type on your main map
* A Share button with links, social sharing and embed code, so other sites can show your map, with every embed linking back to you
* Keep listings out of the blog page, feeds and search if you prefer

= Visitor suggestions =

* Visitors suggest venues and events, pinning the spot on a map
* Suggestions wait for your approval, then become draft posts with the location already filled in
* Spam protection with no CAPTCHA

= Statistics =

* Map views, venues opened, and Read More, directions, call, website and share clicks, with a chart over time
* Views, clicks and click rate for every banner, ready to show advertisers
* The same events can be passed to the Google Analytics your site already runs
* Anonymous: no cookies and no personal data, and your own team is left out of the counts

= Look and feel =

* Seven colour themes to start from, then any colour adjusted
* Card style: the outline (none, solid, dashed, dotted, double or glow), its thickness, the corners and a shadow
* Uses your theme's fonts by default, or any Google font
* Every phrase visitors see can be reworded, so the map speaks in your own voice or language
* A live preview of every change before you save

= Easy for editors =

* Find a place by name or postcode, or click the map, and the address fills itself in
* Listings that need a location: find the locations for many posts at once, or import them from a spreadsheet template
* An admin organised by kind of map (Tours, Routes, Directories, Blog maps), each with its own start page, settings, codes to copy and setup guide, plus Help & guides with search
* Works with AI assistants, automation tools and the REST API: a post's location is a set of simple fields

= Made to be trusted =

* Walled off from your theme's styles, and plays nicely with other map plugins, Elementor, Yoast SEO and WooCommerce
* Excludes itself automatically from script delaying in LiteSpeed Cache, WP Rocket, Perfmatters and Cloudflare Rocket Loader
* A Privacy panel showing exactly where visitors' requests go with your settings, with suggested privacy-policy wording to match
* Suggestions are included in WordPress's Export and Erase Personal Data tools
* Clean uninstall: keep your map data for later, or remove every trace
* No credit links on your site unless you switch one on

== Screenshots ==

1. The map, with the frosted glass bar, clustered pins, glowing continent outlines and the zoom strip.
2. A venue's panel: photo, opening hours, Call and Website buttons, services, Read More and directions.
3. Cards under the map, with the section's own filter chips for months and countries.
4. The Map location box in the post editor: find the place, or click the map to drop the pin.
5. Home, with a card for each kind of map and the quick start.
6. Appearance: pick a colour theme and see it in the live preview before saving.
7. Custom view areas: frame a place by name, or drag its box into shape.
8. Paid listings through WooCommerce, with packages from your own shop.

== External services ==

Pinscribe connects to the outside services below. Each is used only for the purpose described, and most only when you choose to use it.

= Map tiles (one of these, chosen under Design → Map controls → Map tiles) =

The map's background is loaded by each visitor's browser from the chosen provider whenever a map is shown. The provider receives the visitor's IP address and which part of the map is being viewed, as with any image a website loads.

* **OpenFreeMap** (the default): tiles.openfreemap.org. [Terms](https://openfreemap.org/tos/), [privacy](https://openfreemap.org/privacy/).
* **CARTO**, only if chosen: basemaps.cartocdn.com, with your CARTO key. [Terms](https://carto.com/legal), [privacy](https://carto.com/privacy).
* **Stadia Maps**, only if chosen: tiles.stadiamaps.com, with your key if you give one. [Terms](https://stadiamaps.com/terms-of-service/), [privacy](https://stadiamaps.com/privacy-policy/).
* **MapTiler**, only if chosen: api.maptiler.com, with your MapTiler key. [Terms](https://www.maptiler.com/terms/), [privacy](https://www.maptiler.com/privacy-policy/).

Map data © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright).

= Outdoor map style: Terrain Tiles (optional) =

Only if you choose the Outdoor map style under Appearance, or keep "Use the Outdoor style on maps of walks and trail rides" ticked and have Routes switched on. Visitors' browsers then load height data for the area on screen from elevation-tiles-prod.s3.amazonaws.com (Terrain Tiles, on Amazon's open data programme), which receives their IP address and the part of the map being viewed, as with any image. No key is used. [About Terrain Tiles](https://registry.opendata.aws/terrain-tiles/), [AWS privacy](https://aws.amazon.com/privacy/).

= Waymarked walking routes: Waymarked Trails (optional) =

Only if you tick "Show waymarked walking routes" under Appearance. Visitors' browsers then load the routes layer from tile.waymarkedtrails.org, which receives their IP address and the part of the map being viewed. No key is used. Map data © OpenStreetMap contributors, routes © Waymarked Trails (CC BY-SA). [Waymarked Trails](https://hiking.waymarkedtrails.org/).

= Place and address searches: OpenStreetMap Nominatim =

nominatim.openstreetmap.org is used to turn a place name or address into a location: when a visitor uses "Places near…" in the map's search box or "Find the address" in the suggestion form, when the site owner looks up a place's outline under Settings → Map area (the place name is sent, and its outline comes back), and when an editor uses "Find the place" or drops a pin in the Map location box (the pin's position is sent, to fill in the address), "Find all" under Directories → Need a location or "Find a place" on the View areas screen (the last two go to OpenCage instead when an OpenCage key is set). It receives the words searched for (or the pin's position) and the IP address of whoever searched, and only at that moment. [Usage policy](https://operations.osmfoundation.org/policies/nominatim/), [privacy](https://osmfoundation.org/wiki/Privacy_Policy).

= Routes: BRouter (optional) =

Only if you switch Routes on under Pinscribe → Routes. While an editor draws a route in the post editor, their browser asks brouter.de (or your own BRouter server, if you set one under Routes → More options → Route finder) for the route between the points they click: it receives those points, the way of travelling and the editor's IP address. Visitors are never involved, because the finished route is saved with the post. A route written through the REST API (by an AI assistant, say) with only its points is worked out the same way, but by your site rather than a browser: brouter.de then receives the points and the way of travelling, from your server. Routes are worked out from OpenStreetMap data. [BRouter](https://brouter.de/brouter/), [privacy](https://brouter.de/privacypolicy.html).

= Wales's 20 mph roads: DataMapWales (optional) =

Only for driving routes in Wales. When one is saved, your site asks datamap.gov.wales (the Welsh Government's map service) which roads in the area the route covers have stayed at 30 mph: it receives that area's corners, from your server. Visitors and editors are never involved. Any other road OpenStreetMap still has at 30 mph in Wales is shown at 20 mph, the Welsh default since September 2023. Contains public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/): "30mph roads in Wales" and the Welsh highway authority boundaries, from [DataMapWales](https://datamap.gov.wales/). Speed limits on UK roads always show in mph: the UK outline used for that is from the [Office for National Statistics](https://geoportal.statistics.gov.uk/) (Countries, December 2023), also under the Open Government Licence v3.0. US and Puerto Rico limits always show in mph too, using [Natural Earth](https://www.naturalearthdata.com/)'s country outlines (public domain).

= Speed cameras on routes: Overpass API (optional) =

Only for a driving route with "Show speed cameras on this route" ticked. When it is saved, your site asks overpass-api.de (or, when that is too busy, its mirror overpass.private.coffee) for the speed cameras in the area the route covers: it receives that area's corners, from your server. Visitors and editors are never involved. The cameras come from OpenStreetMap data. [Overpass API](https://overpass-api.de/), [mirror](https://private.coffee/).

= Route videos: YouTube and Vimeo (optional) =

Only for a route given a YouTube or Vimeo link. Nothing is loaded from either until a visitor presses play; the video then plays in the service's own player (YouTube's privacy-enhanced youtube-nocookie.com), which receives the visitor's IP address and what the service's own player collects. [YouTube privacy](https://policies.google.com/privacy), [Vimeo privacy](https://vimeo.com/privacy).

= Address lookups for many posts: OpenCage (optional) =

Only if you add an OpenCage key under Directories → More options → Looking up addresses. "Find all" under Directories → Need a location then sends each post's name and address to api.opencagedata.com, and "Find a place" on the View areas screen sends the place typed, from your site rather than from anyone's browser. Visitors are never involved. [Terms](https://opencagedata.com/terms), [data protection](https://opencagedata.com/gdpr).

= Fonts: Google Fonts (optional) =

Only if you choose a Google font under Appearance. Visitors' browsers then load it from fonts.googleapis.com and fonts.gstatic.com, which receive their IP address. With "Match my theme" (the default), nothing is loaded. [Terms](https://developers.google.com/fonts/terms), [privacy](https://policies.google.com/privacy).

= Paid listings: Stripe (optional) =

Only if you turn on paid listings with a Stripe Payment Link. Venues who choose to pay are sent to your Payment Link on buy.stripe.com, and pay there. When a payment completes, Stripe calls your site's webhook address with the payment's amount, currency and reference; card details never reach your site. [Terms](https://stripe.com/legal/ssa), [privacy](https://stripe.com/privacy).

With WooCommerce instead, payments go through your own shop's checkout and whichever payment providers you have set up there; Pinscribe contacts no outside service itself.

= Directions and sharing (only when a visitor clicks) =

"Get directions" opens Google Maps in a new tab with the venue's position, so it can plan the route. The share buttons open WhatsApp, Facebook or X with the link being shared (and, for WhatsApp and X, its title). Nothing is sent to any of them unless the visitor clicks. [Google privacy](https://policies.google.com/privacy), [WhatsApp privacy](https://www.whatsapp.com/legal/privacy-policy), [Facebook privacy](https://www.facebook.com/privacy/policy/), [X privacy](https://x.com/en/privacy).

= Google Analytics (optional) =

Pinscribe does not load Google Analytics. If your site already runs it and you tick "Also send these events to Google Analytics" under Settings, map events (such as a venue being opened, with its name) are handed to your existing Google Analytics tag in the browser, under your site's own consent settings. [Privacy](https://policies.google.com/privacy).

= Ad code (optional) =

If you paste ad code from an ad network under Ad banners, that code runs in visitors' browsers and contacts its own network, under that network's terms. Image banners you upload contact nothing.

== Credits ==

Pinscribe includes [Leaflet](https://leafletjs.com/) (BSD 2-Clause), [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster) (MIT), [MapLibre GL JS](https://maplibre.org/) (BSD 3-Clause), [maplibre-contour](https://github.com/onthegomap/maplibre-contour) (BSD 3-Clause), [React](https://react.dev/) (MIT) and icons from [Lucide](https://lucide.dev/) (ISC). All are loaded from the plugin itself, never from an outside server.

== Changelog ==

= 3.2.0 =
* New: one-click updates for copies downloaded from pinscribe.app. WordPress shows "Update available" for Pinscribe like any other plugin (the WordPress.org edition is updated by WordPress.org instead).
* Guides: "Your first map in a minute" (the setup) and "Building with AI" rewritten for the new screens; "Make a page for me" explained.
* Plugin Check: translator notes, input cleaning and escaping tidied in tours, trips, members, owners, reels and the listing sidebar.
* The readme is shorter, with the full feature list under "Features in detail" and older versions in changelog.txt.
* The setup's steps tell screen readers which one you're on.

= 3.1.1 =
* The small credit is on by default for new installs; the setup step and Settings let you turn it off. Sites updating from an earlier version keep their own setting.

= 3.1.0 =
* New: a setup wizard on first run. Six plain questions (what you're making, where, the look, sample places, the free credit and the map page) and the map is live. Run it again any time from Home.
* New: only the kinds of map you picked show in the menu; the others wait on Home under "More you can make" and join the menu when opened.
* New: "Make a page for me" beside every map code: a page with that map on it opens in the editor, ready to publish.
* New: Build with AI. A screen that shows how to let Claude, ChatGPT or another assistant build your maps, with ready-made requests to copy.
* New: AI tools (WordPress Abilities, WordPress 6.9 and newer): map overview, the Pinscribe guide, list places, find a location, add a place (as a draft) and make a map page. Any MCP connector plugin offers them to your assistant.
* The credit now reads "Map by Pinscribe · Descent Digital", links to both, and is on for new installs (the setup lets you turn it off). Existing sites keep their setting.
* Home: a smaller header, a "Start the setup" card on new sites and a Build with AI card.

= 3.0.21 =
* Maps: a map set to an Area with its own zoom (zoom="8") now closes in on the Area by up to half a step, so a tall area such as Wales fills a wide map instead of sitting small in the middle.

= 3.0.20 =
* Maps: smoother zooming. While you pinch or slide the zoom strip, the map scales the picture it already has and draws it afresh once you stop, instead of redrawing and fetching tiles at every in-between level.
* Maps: a trackpad pinch or Ctrl + scroll now zooms the map around the pointer instead of zooming the whole page. A plain scroll still scrolls the page.
* Maps: place names appear at once after a zoom instead of fading in.
* Maps: featured pins now sit above the clusters. A cluster, or another featured pin, that would be hidden under one slides out from beneath it, so nothing is covered.

= 3.0.19 =
* Maps: zoom in quarter steps, so a map area or a set of pins fills the frame instead of opening a whole level too far out on wide maps.
* Tours: the tour map shows only the listings within the tour's radius of a stop, not every listing on the site, and leaves less margin on phones so the route is larger.

= 3.0.18 =
* Tours: a stop can now travel on by bike, with its own icon and line on the tour map.

= 3.0.17 =
* Maps: every route and tour on an overview map now shows its icon at both ends, and either one opens it. A loop that finishes where it starts keeps one.

= 3.0.16 =
* Trips: when the night's stay is a hotel listing with a booking link, its card on the trip shows a Book button beside Directions.

Older versions: see changelog.txt in the plugin folder.

== Upgrade Notice ==

= 2.2.0 =
Adds Routes, Map area and Listing details. Routes and Map area are off until chosen under Settings. Listing posts now end with details cards instead of just a small map; switch back under Settings, At the end of each listing.

= 2.0.2 =
Removes the Search this area button, and the empty ad box when no banner is live.

= 2.0.1 =
Clearer map style settings on the Appearance screen.

= 2.0.0 =
First release.
