Nearship documentation

Charge WooCommerce delivery by distance, from your nearest store.

Before you start

  • WordPress 6.5 or newer, WooCommerce 8.0 or newer, PHP 7.4 or newer
  • A WooCommerce shipping zone to add Nearship to, and the address of each shop or warehouse you ship from
  • Nothing else for straight-line distance: OpenStreetMap needs no account or key
  • Optional, for driving distance: your own Google Maps Platform (Geocoding and Routes API), Mapbox or openrouteservice key

Runs on your own WordPress. Addresses are looked up on OpenStreetMap by default; for driving distance you connect your own Google, Mapbox or openrouteservice key and pay them directly. Nothing routes through us.

What it does not do

  • It prices delivery; it does not dispatch drivers, plan routes for a driver or track deliveries. Getting the parcel there is yours.
  • It does not offer delivery dates or time slots. It adds a priced shipping method, and pickup, to the checkout you already have.
  • It does not include a map service of its own. OpenStreetMap is used free and keyless; driving distance needs your own Google, Mapbox or openrouteservice account, billed by them.
  • It does not guess. An address that cannot be found gets no delivery price rather than a wrong one, and addresses beyond your last price band or outside your areas are not offered delivery.

What is in the download

One installable WordPress plugin ZIP (Plugin/nearship.zip) with the Nearship shipping method, the full-page editor per shipping zone, store pickup, shipping-class surcharges and the provider settings, plus HTML documentation and a .pot file for translation. GPL code; the bundled Leaflet map library is BSD-2.

Nothing calls home. The only outside requests are the address and route lookups to OpenStreetMap, or to the provider you choose, and the OpenStreetMap map tiles in the admin editor.

Installing and setting up

Plugins → Add New → Upload Plugin, choose nearship.zip, activate. WooCommerce must already be active.

WooCommerce → Settings → Shipping: open a shipping zone and add “Nearship – Distance-based delivery”, then click “Open the Nearship editor”.

In the editor add your shops, set your price bands, draw delivery areas if you want them, and use Try an address to check the price a customer would get. Save.

Optional: WooCommerce → Settings → Shipping → Nearship to choose Google, Mapbox or openrouteservice for driving distance, and press Test connection.

Distance, lookups and privacy

The customer’s delivery address (street, postcode, city, country) is sent to the geocoding service to find its coordinates, and with driving distance on, the shop and customer coordinates go to the routing service. Results are cached for 30 days.

Without a key Nearship uses OpenStreetMap’s free Nominatim service at one request per second, as its usage policy asks. If a keyed provider fails, Nearship falls back to OpenStreetMap and straight-line distance.

Licence, updates and support

  • One licence covers 1 WordPress site.
  • 1 year of updates, from the date of purchase.
  • 1 year of email support.
  • Instant download + licence key by email
  • 30-day money-back guarantee

Questions this page does not answer go to support@webkoding.com. If you bought from us and cannot find your licence key, look it up here.

Common questions

Do I need a Google API key?

No. Out of the box Nearship finds addresses with OpenStreetMap and measures straight-line distance. Google (the current Routes API), Mapbox and openrouteservice are optional, for driving distance.

Will a map provider cost me money?

It can. Google, Mapbox and openrouteservice bill you directly under their own pricing and free tiers. Nearship caches every address and route for 30 days and only routes to the three closest shops, so lookups do not grow with the number of shops.

What happens if my key stops working?

Addresses fall back to OpenStreetMap and distances to straight line, so customers still get a price. Test connection in the settings tells you whether a key works.

What does a customer outside my area see?

No delivery option, your own message, and pickup at your shops if you turned pickup on.

Does it work with the block checkout and HPOS?

Yes. It works with the WooCommerce Cart and Checkout blocks and with the classic checkout, and the distance and the shipping shop are saved on the order with HPOS order storage.

Can I charge per kilometre or per mile?

Both. Each band is a flat price or a price per km or mile, with a base fee, a minimum and maximum fee, and free delivery above an order value. The unit is switched per zone.