Skip to content
WooCommerce plugin

Delivery Calculator

Calculate shipping costs by GPS distance with an interactive map.

Gellum Delivery Calculator for WooCommerce is built for restaurants, local shops, and any merchant who delivers inside a defined geographic area. Customers pinpoint the drop-off on an interactive Google Map — or let the browser attempt GPS detection — instead of guessing from a street address. You set operational reach with a drawn or uploaded GeoJSON boundary (Polygon and MultiPolygon). Rates are offered only inside that area, which is drawn on the map so the customer can see coverage. Distance can be measured as a straight line with the Haversine formula, or as a driving route through the Google Directions API, in kilometres or miles. Reverse geocoding fills Plus Code, city, state or province, postal code, and country, then updates WooCommerce billing fields in real time. Each order stores the selected latitude and longitude; the admin order screen links to Google Maps, and the confirmation email includes a static map of store (A) and delivery (B). Checkout validates the pin server-side so the location is still inside the GeoJSON area. The method is HPOS compatible, works as a standard WooCommerce shipping method, and can be placed with the [gellumdcw_map] shortcode. On Multisite, each subsite keeps its own API key, store coordinates, GeoJSON, and pricing.

Built for

Restaurants, local shops, and WooCommerce merchants who deliver inside a defined geographic area

In the product

Interactive Google Map

Customers select the exact drop-off on a map in cart or checkout. Browser geolocation can seed the pin; dragging it recalculates the rate.

Cart map

Drop-off first, then store.

GPS distance, your way

Choose straight-line Haversine (bird’s-eye, no extra Directions cost) or a driving route via the Google Directions API. The map shows the route or a curved line to match the method. Distance and rates can be in kilometres or miles.

Driving route

2.4 km · $3.80

GeoJSON delivery area

Draw or paste a Polygon or MultiPolygon. The zone is outlined on the map, and rates are only offered when the pin is inside it. Checkout re-checks the location server-side.

Delivery area

Reverse geocoding

When the pin moves, Google Geocoding returns Plus Code, city, state or province, postal code, and country, and fills WooCommerce address fields so checkout typing is shorter and more accurate.

Address fields

Plus Code

6FG8+2X

City

San José

Postal

10101

Country

Costa Rica

Configurable rates

Set a base fee, a maximum distance that fee covers, and an additional rate per kilometre or mile beyond that. Optionally offer free delivery above a subtotal (set the threshold to 0 to disable).

Delivery rate
Base fee$2.00
Covered distance1.0 km
Beyond that$0.75 / km
Distance 2.4 km$3.05

GPS on the order and in email

Latitude and longitude are saved with the order. The admin order screen shows the coordinates and a Google Maps link. Confirmation emails include a static map of store (A) and customer (B).

Order #4821
Store (A)9.9281, −84.0907
Customer (B)9.9354, −84.0781

Shortcode and HPOS

Place the map with [gellumdcw_map]. The shipping method is High-Performance Order Storage compatible and uses WooCommerce’s native checkout updates.

Checkout
[gellumdcw_map]

Shipping method

Local delivery · 2.4 km

HPOS

Compatible

Multisite-ready settings

Each subsite can have its own Google Maps API key, store latitude and longitude, GeoJSON area, and pricing. Sessions, carts, and order GPS stay isolated per site.

Network

Site A

API key

••••••91

Store pin

Isolated

Site B

API key

••••••44

Store pin

Isolated

Ready to run the stack as one system?

Talk through a demo, a custom plan, or how Delivery Calculator, Business Hours, Email, Host, Studio, and Forge should sit in your operation.