Enter your postcode
Check Your Location
Towns and cities we cover
.gm-cov{display:flex;flex-wrap:wrap;gap:24px;font-family:Inter,system-ui,sans-serif;color:#111}
.gm-cov__panel{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:10px}
.gm-cov__map{flex:2 1 480px;min-width:0;min-height:460px;border-radius:32px;overflow:hidden;background:#F4F4F4;z-index:0}
.gm-cov__label{margin:0;font-size:14px;font-weight:600}
.gm-cov__label--towns{margin-top:18px}
.gm-cov__form{display:flex;flex-wrap:wrap;gap:10px}
.gm-cov__input{flex:1 1 180px;min-width:0;min-height:54px;padding:0 22px;border:1px solid #E4E4E4;background:#F4F4F4;border-radius:999px;font:16px Inter,sans-serif;color:#111;text-transform:uppercase}
.gm-cov__input::placeholder{text-transform:none}
.gm-cov__btn{min-height:54px;padding:0 26px;background:#D40411;color:#fff;border:0;border-radius:999px;font:600 16px Inter,sans-serif;cursor:pointer}
.gm-cov__btn:disabled{opacity:.6;cursor:wait}
.gm-cov__btn:focus-visible,.gm-cov__chip:focus-visible,.gm-cov__input:focus-visible{outline:3px solid #FFCC00;outline-offset:2px}
.gm-cov__result:empty{display:none}
.gm-cov__result{border-radius:20px;padding:16px 20px;font-size:15px;display:flex;flex-direction:column;gap:10px}
.gm-cov__result--ok{background:#E8F5EC;color:#14532D}
.gm-cov__result--no{background:#FFF4CC;color:#111}
.gm-cov__result--err{background:#FDE8E9;color:#8A0A12}
.gm-cov__result strong{font-size:16px}
.gm-cov__result a{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;font-weight:600;text-decoration:none}
.gm-cov__cta--red{background:#D40411;color:#fff!important}
.gm-cov__cta--black{background:#111;color:#fff!important}
.gm-cov__towns{display:flex;flex-wrap:wrap;gap:8px}
.gm-cov__chip{min-height:44px;padding:0 18px;border:1px solid #E4E4E4;background:#fff;border-radius:999px;font:500 14px Inter,sans-serif;color:#111;cursor:pointer}
.gm-cov__chip[aria-pressed="true"]{background:#111;border-color:#111;color:#fff}
(function () {
/* ---------- EDIT HERE ----------
SAMPLE towns only — replace with the client's real list.
lat/lng = centre of the town, miles = coverage radius. */
var TOWNS = [
{ name: 'Leeds', lat: 53.8008, lng: -1.5491, miles: 15 },
{ name: 'Manchester', lat: 53.4808, lng: -2.2426, miles: 15 },
{ name: 'Sheffield', lat: 53.3811, lng: -1.4701, miles: 12 },
{ name: 'Nottingham', lat: 52.9548, lng: -1.1581, miles: 12 },
{ name: 'Birmingham', lat: 52.4862, lng: -1.8904, miles: 15 },
{ name: 'Bristol', lat: 51.4545, lng: -2.5879, miles: 12 }
];
var BOOKING_URL = '/book-assistance/'; // your booking page
var PHONE = '+447000000000'; // international format, no spaces
/* -------------------------------- */
/* Load Leaflet ourselves and wait for it, so the map never starts
before the library is ready (Elementor and caching plugins can
load scripts out of order). */
var LEAFLET_JS = 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.min.js';
function whenLeafletReady(cb) {
if (window.L && window.L.map) { cb(); return; }
var s = document.querySelector('script[data-gm-leaflet]');
if (!s) {
s = document.createElement('script');
s.src = LEAFLET_JS;
s.setAttribute('data-gm-leaflet', '');
document.head.appendChild(s);
}
s.addEventListener('load', cb);
}
function start() {
var mapEl = document.getElementById('gm-map');
if (!mapEl || mapEl.getAttribute('data-gm-ready')) return; // already set up
mapEl.setAttribute('data-gm-ready', '1');
try { init(); } catch (err) { console.error('GetMovin coverage map:', err); }
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function () { whenLeafletReady(start); });
} else {
whenLeafletReady(start);
}
function init() {
var MILE = 1609.34;
var map = L.map('gm-map', { scrollWheelZoom: false }).setView([53.5, -1.8], 6);
/* Map tiles. OpenStreetMap refuses requests that arrive without the
site address (Referer), so we send it explicitly.
If OSM still blocks you, switch to the CARTO option below. */
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
referrerPolicy: 'strict-origin-when-cross-origin',
attribution: '©
OpenStreetMap contributors'
}).addTo(map);
/* CARTO alternative (clean light style). To use it, delete the block above
and remove the comment marks around this one:
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
maxZoom: 19,
subdomains: 'abcd',
attribution: '©
OpenStreetMap contributors ©
CARTO '
}).addTo(map);
*/
var all = L.featureGroup().addTo(map);
var chipsEl = document.getElementById('gm-towns');
var resultEl = document.getElementById('gm-result');
var marker = null;
/* Work out the area each town covers from its centre and radius,
so we never depend on the map having drawn the circles yet. */
var allBounds = null;
TOWNS.forEach(function (t) {
t.bounds = L.latLng(t.lat, t.lng).toBounds(t.miles * MILE * 2);
allBounds = allBounds ? allBounds.extend(t.bounds) : L.latLngBounds(t.bounds.getSouthWest(), t.bounds.getNorthEast());
});
TOWNS.forEach(function (t) {
t.circle = L.circle([t.lat, t.lng], {
radius: t.miles * MILE, color: '#D40411', weight: 2, fillColor: '#FFCC00', fillOpacity: 0.25
}).bindTooltip(t.name + ' — ' + t.miles + ' mile radius').addTo(all);
var chip = document.createElement('button');
chip.type = 'button';
chip.className = 'gm-cov__chip';
chip.textContent = t.name;
chip.setAttribute('aria-pressed', 'false');
chip.addEventListener('click', function () {
setActiveChip(chip);
map.flyToBounds(t.bounds, { padding: [20, 20] });
});
chipsEl.appendChild(chip);
});
var allChip = document.createElement('button');
allChip.type = 'button';
allChip.className = 'gm-cov__chip';
allChip.textContent = 'All areas';
allChip.setAttribute('aria-pressed', 'true');
allChip.addEventListener('click', function () {
setActiveChip(allChip);
map.flyToBounds(allBounds, { padding: [20, 20] });
});
chipsEl.insertBefore(allChip, chipsEl.firstChild);
map.fitBounds(allBounds, { padding: [20, 20] });
function setActiveChip(active) {
chipsEl.querySelectorAll('.gm-cov__chip').forEach(function (c) {
c.setAttribute('aria-pressed', c === active ? 'true' : 'false');
});
}
function show(kind, html) {
resultEl.className = 'gm-cov__result gm-cov__result--' + kind;
resultEl.innerHTML = html;
}
document.getElementById('gm-form').addEventListener('submit', function (e) {
e.preventDefault();
var input = document.getElementById('gm-pc');
var btn = this.querySelector('button');
var pc = input.value.replace(/\s+/g, '').toUpperCase();
if (pc.length < 5) {
show('err', '
Enter a full UK postcode, like LS1 4AP. ');
input.focus();
return;
}
btn.disabled = true;
btn.textContent = 'Checking…';
fetch('https://api.postcodes.io/postcodes/' + encodeURIComponent(pc))
.then(function (r) { return r.json(); })
.then(function (data) {
if (data.status !== 200 || !data.result) {
show('err', '
We couldn’t find that postcode. Check it and try again.');
return;
}
var here = L.latLng(data.result.latitude, data.result.longitude);
var nice = data.result.postcode;
if (marker) map.removeLayer(marker);
marker = L.marker(here).addTo(map).bindPopup(nice).openPopup();
map.flyTo(here, 11);
setActiveChip(null);
var nearest = null, best = Infinity;
TOWNS.forEach(function (t) {
var d = here.distanceTo([t.lat, t.lng]);
if (d < best) { best = d; nearest = t; }
});
var miles = Math.round(best / MILE);
if (best <= nearest.miles * MILE) {
show('ok', '
Good news, we cover ' + nice + '. ' +
'You’re in our ' + nearest.name + ' area.' +
'
Book Assistance ');
} else {
show('no', '
We don’t cover ' + nice + ' yet. ' +
'Our nearest area is ' + nearest.name + ', about ' + miles + ' miles away. Call us and we’ll see what we can do.' +
'
Call Us ');
}
})
.catch(function () {
show('err', '
Something went wrong checking your postcode. Please try again, or call us.');
})
.then(function () {
btn.disabled = false;
btn.textContent = 'Check Your Location';
});
});
} // end init
})();