MagePeople Offer IconGet BlackFriday 25% for Limited Time on Lifetime & 35% for Bundle Deal
Days Hrs Mins Secs
How to add WordPress geofencing to the eCab plugin

Geofencing in the eCab taxi plugin lets you draw a virtual boundary on a map and decide which vehicles serve it, what the ride costs inside it, and how intercity trips are priced. This guide walks you through the whole setup on a live WordPress site: installing the free plugin, activating the Pro modules that unlock geofences, drawing a single operation area, drawing an intercity zone, and attaching each one to the right taxi. Every step below is a screen in the plugin — no custom code is involved.

If you want the bigger picture first — what geofences are, how they price rides and why operators use them — read the explanation sections below before you start clicking. If you already know why you need zones and just want the configuration walkthrough, skip straight to the setup steps.

What Is Geofencing in a Taxi Booking System?

A geofence is a virtual border drawn on a map using GPS coordinates. Instead of tracking a single address, the booking system tracks the area inside that border. When a customer enters a pickup and drop-off that both fall inside a zone, the plugin applies the rules attached to that zone. When one of the points falls outside, the rule does not apply.

In a taxi booking plugin, geofences usually control three things:

  • Service availability — only vehicles assigned to a zone can be booked inside it, so you do not send a city car to an area it does not cover.
  • Pricing — a zone can carry its own fare rules, including surge, fixed or percentage adjustments for trips inside or between areas.
  • Routing logic — intercity zones define which origin–destination pairs are supported, and in which direction.

Mordor Intelligence’s analysis of the active geofencing market makes the operational case plainly: geofences help taxi apps know where vehicles are, shorten pickup times, and trigger location-based offers near airports and other landmarks. That combination of faster dispatch and better-targeted marketing is why zoning has moved from a nice-to-have to a standard item on taxi software checklists.

Why operators use geofenced operation areas

  • Traffic and municipal compliance — keep pickups and drop-offs inside permitted areas rather than across a whole metro region.
  • Demand-based fares — attach surge or a zone multiplier where demand is highest instead of raising prices everywhere.
  • Cleaner fleet allocation — assign each car to the areas it actually serves, which cuts dead mileage.
  • Directional intercity pricing — charge differently for the outbound and return leg of a long-distance route.

How zoning behaves on the front end

From the customer’s side, the experience stays simple. They pick a date, time, pickup and drop-off. The plugin checks those coordinates against your published zones and only returns vehicles whose operation area matches. If your configured car is outside the zone, it simply will not appear in the results — which is the whole point, and the test we run in the walkthrough below.

If you are starting from zero and have not built the booking pages yet, our step-by-step guide to making a taxi booking website in WordPress covers the site structure and vehicle setup that this article assumes.

Before You Start: What You Need

  1. The free eCab plugin. Install Taxi Booking Manager — eCab from the WordPress plugin directory. Geofence screens live in the Pro extension, so the free version alone is not enough.
  2. WooCommerce, installed and active. eCab uses WooCommerce to process bookings and payments.
  3. A Google Maps API key. Without one, your maps will not render or geocode accurately, and zone drawing depends on the map. Enable the Maps JavaScript API and the geocoding/places services your setup needs in the Google Cloud console. Google bills Maps usage on its own pricing, so check current pricing before you go live.
  4. The eCab Pro package. Check current pricing on the plugin page; we do not repeat figures here because licence terms change.
  5. At least one vehicle configured under All Transportation, so you have something to attach a zone to.

A quick planning note: sketch your zones on paper first. Decide whether each one is a single-city area or an intercity corridor pair, and which vehicles belong to each. Once you start joining dots on a satellite map, that plan saves a lot of redrawing.

Step 1: Install the Free eCab Taxi Booking Plugin

Log in to your WordPress dashboard and go to Plugins → Add New Plugin. Search for “Taxi” and the eCab plugin appears at the top of the results.

How to Add WordPress Geofencing to the eCab Plugin 1

Confirm you are installing the official listing before you continue.

How to Add WordPress Geofencing to the eCab Plugin 2

Install and activate it. You can also upload the plugin zip under Plugins → Add New → Upload Plugin if you prefer a manual install.

How to Add WordPress Geofencing to the eCab Plugin 3

Activation starts a setup wizard. Follow it through: it creates the pages and menus the booking flow needs. If WooCommerce is not yet installed, the wizard will prompt you to install and activate it first — do that, then resume the wizard. Click Finish when the last step completes.

How to Add WordPress Geofencing to the eCab Plugin 4

Next, go to Transportation → Global Settings → Google Map API Settings, paste your key and save. Return to this screen and re-check it any time the map stops loading on the front end.

How to Add WordPress Geofencing to the eCab Plugin 5

The free plugin now runs a working taxi site. What it does not yet include is the Operation Areas module, and that is where geofencing lives.

Step 2: Activate eCab Pro and the Geofencing Modules

From your dashboard go to MagePeople → Our Products → WordPress Taxi Cab Booking Plugin and choose the package that matches your fleet size and support needs. Check current pricing on the product page before purchasing.

How to Add WordPress Geofencing to the eCab Plugin 6

Download the Pro zip from your account, then go to Plugins → Add New → Upload Plugin, choose the file and click Upload Plugin.

How to Add WordPress Geofencing to the eCab Plugin 7

Click Install Now, then activate.

How to Add WordPress Geofencing to the eCab Plugin 8

On activation, the plugin asks which optional modules to enable. Turn on the ones you intend to use — including the PDF ticket module, which is the prompt you will see first. Enable only what you need; you can return to this screen and add modules later.

How to Add WordPress Geofencing to the eCab Plugin 9

With the Pro plugin active, a new Operation Areas menu appears in the dashboard. That menu is the geofencing control panel.

Step 3: Draw a Single Operation Area Geofence

A single operation area covers trips where pickup, drop-off, or both sit inside one zone — the typical urban setup. Open Operation Areas and click Add New.

How to Add WordPress Geofencing to the eCab Plugin 10
How to Add WordPress Geofencing to the eCab Plugin 11

The editor offers two operation types: Single Operation and Intercity. You can build as many zones of each type as your business needs. Start with a single operation area.

Give the zone a name your team will recognise (for example the neighbourhood or city district), choose Single Operation Area as the type, and enter the starting location so the map centres on the right place.

How to Add WordPress Geofencing to the eCab Plugin 12

Click the geofence tool to start adding boundary points.

How to Add WordPress Geofencing to the eCab Plugin 13

Now click each corner of the area you want to cover. Work around the perimeter in one direction, closing the shape so the boundary overlaps at the start and end. A precise boundary matters more than a large one — the plugin tests coordinates against this shape.

How to Add WordPress Geofencing to the eCab Plugin 14

When your shape covers the intended area, publish the zone.

How to Add WordPress Geofencing to the eCab Plugin 15

Choosing good zone boundaries

  • Follow real geography. Rivers, ring roads and municipal lines are easier to reason about than arbitrary rectangles.
  • Overlap deliberately at borders. If two zones meet, leave a small overlap so a pickup on the boundary is not rejected by both.
  • Keep zones readable. Very complex shapes with dozens of points are harder to maintain than three or four simpler polygons.
  • Revisit after road changes. New flyovers and one-way systems change what counts as an accessible pickup.

Step 4: Attach the Geofence to a Taxi

Creating a zone does not assign it. Go to All Transportation and open the vehicle you want to serve this area.

How to Add WordPress Geofencing to the eCab Plugin 16

In the vehicle settings, find Operation Area and select the single operation geofence you just published. Save with Update.

How to Add WordPress Geofencing to the eCab Plugin 17
How to Add WordPress Geofencing to the eCab Plugin 18

Repeat for every vehicle that should operate in that zone. A vehicle with no operation area selected is treated as unsupervised — check each listing before you go live.

Test the zone from the customer’s side

Open your booking site, choose a date and time, then enter a pickup and drop-off that both sit inside the zone. Run the search.

How to Add WordPress Geofencing to the eCab Plugin 19

The vehicle you assigned should appear in the results with its fare.

How to Add WordPress Geofencing to the eCab Plugin 20

Now repeat the search using a point outside the boundary.

How to Add WordPress Geofencing to the eCab Plugin 21

The same vehicle should be missing from the results. That disappearance is the confirmation that the fence is working — if the car still shows up, reopen the vehicle and check the Operation Area field saved correctly.

How to Add WordPress Geofencing to the eCab Plugin 22

Step 5: Set Up an Intercity Geofence

Intercity zones handle point-to-point trips between two distinct areas — for example, a city centre and a satellite town. Return to Operation Areas → Add New, name the route, and set the operation type to Intercity Operation Area. Then draw a zone around each end of the journey: an origin area and a destination area.

How to Add WordPress Geofencing to the eCab Plugin 23

After both areas are drawn, configure the fare adjustment for that corridor. The plugin lets you apply the change as a fixed amount or a percentage.

How to Add WordPress Geofencing to the eCab Plugin 24

Next, choose the direction the adjustment applies to: both directions or one direction only. Directional pricing lets you charge a premium on the outward leg and a lower fare on the return, which is common when vehicles would otherwise drive back empty. Which of the two approaches to use depends on your cost structure — a percentage scales with trip length, a fixed amount stays the same on every booking.

Save the zone with Update, then assign it to the relevant vehicles: open a car under All Transportation and select the intercity zone in its Operation Area field.

How to Add WordPress Geofencing to the eCab Plugin 25
How to Add WordPress Geofencing to the eCab Plugin 26

Finally, test it. On the booking site, enter a departure date and time and set pickup and drop-off inside the two mapped areas.

How to Add WordPress Geofencing to the eCab Plugin 27

The configured car should appear with the intercity fare applied. Confirm both directions behave as expected — a one-direction rule that saves wrongly is easy to miss on a single test.

How to Add WordPress Geofencing to the eCab Plugin 28

Single Operation vs Intercity Geofence: Which Do You Need?

Use caseZone typeWhat it controls
City rides, airport runs, hotel transfers within one districtSingle Operation AreaWhich vehicles are bookable inside the boundary
Long-distance trips between two towns or a city and a satellite townIntercity Operation AreaSupported origin–destination pair, fare adjustment, and direction
Coverage that spans several districtsMultiple single operation zonesSeparate boundaries and vehicles per district, managed individually

Most operators need both: a set of single operation zones for everyday urban work, plus one intercity zone per corridor they promote. If you also apply fixed zone pricing at checkout, the two features are complementary rather than competing — our walkthrough on single operation areas and fixed zone pricing in eCab Taxi explains how the pricing side works.

Troubleshooting Geofencing in eCab

The map will not load or saved locations look wrong

Return to Transportation → Global Settings → Google Map API Settings and confirm the API key is present and the required Maps services are enabled with billing switched on in your Google Cloud project.

A car appears outside its zone

Open the vehicle, check that the Operation Area field holds the zone you expect, and re-save. If several zones exist with similar names, the dropdown may be showing the wrong one.

A car does not appear inside its zone

Look at where the pickup pin actually lands. A location on the edge of the polygon, or one geocoded to the wrong side of a river, will fail the test. Widen the boundary slightly at that edge, or verify the address geocodes to the place you mean.

Intercity fares do not change

Check three things in order: the fare adjustment type (fixed or percentage), the direction setting, and whether the picked-up vehicle actually has that intercity zone assigned. A correct zone with an unassigned car produces a normal fare.

Zone changes do not reach the front end

Clear any caching plugin or CDN cache for the booking pages. Map and script assets are commonly cached, and an old boundary can persist in the browser until the cache expires.

Best Practices for Managing Zones at Scale

  • Name zones by geography, not by price. “North District” survives a fare change; “Surge Zone 2” does not.
  • Document assignments. Keep a short internal list of which cars serve which zones, especially if drivers change vehicles.
  • Review after every fare change. Percentage adjustments on intercity zones compound with base fare edits — re-test a sample route each time.
  • Watch demand data. Zones that consistently return no vehicles usually mean the boundary is wrong or no car is assigned, not that demand is low.
  • Keep a staging copy. Redraw and test boundary changes on a duplicate site before pushing them to production.

Zone configuration is only one item on a longer launch list. Our eCab taxi setup checklist walks through the other settings — payments, notifications and vehicle data — that need to be right before customers book.

Conclusion

Adding geofencing to the eCab plugin comes down to five moves: install the free plugin and WooCommerce, activate eCab Pro so the Operation Areas module appears, draw a single operation zone and an intercity zone, assign each zone to the right vehicles, and test both from the customer’s side of the site.

The value shows up quickly once zones are live: cleaner fleet allocation, fares that reflect where demand actually is, and a booking flow that only offers rides you can genuinely fulfil. Start with one well-drawn urban zone and one intercity corridor, verify both, then expand as you learn how customers move through your service area.

Share this post to your social media
Picture of Kazi Asif Riad

Kazi Asif Riad

Hey I am Kazi Asif Riad, a technical WordPress writer. Whose words solve many WordPress users' problems. Using WordPress since 2011, and knows all the ins and outs of WordPress eco systems. I'd love to narrate all the queries for WordPress Booking Plugins and Themes. So let's unveil some mystery of WordPress with my writing.