🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 31, 2026

How to Measure Areas and Routes on a Map in Gravity Forms

GravityExtra
How to Measure Areas and Routes on a Map in Gravity Forms

Ask a customer how big their lawn is and you will get a shrug, a guess, or a number that is off by half. Ask how long their fence line is and the answer is worse. Yet lawn care, landscaping, roofing, solar, paving, fencing, cleaning and event companies all price by size. The usual fix is a site visit before a quote, which costs a morning for every lead, including the ones that never buy.

There is a better way to get the size: let the customer show you. Almost everyone can find their own house on a map and trace around a lawn, a roof or a field. If the form can turn that drawing into square metres, acres or feet of fence, you have the number you need to quote on the spot. This guide shows how to do that with Gravity Forms: a map field where visitors draw areas and routes, a calculation that turns the area into a price, and the checks that keep the numbers honest.

It is written for business owners and for the people who build their websites. We will use the Gravity Forms Map Area & Route Drawing add-on, which adds a drawing map to Gravity Forms with no API key, but the ideas apply to any measuring quote form.

Why measure on the form at all?

A quote form that asks for the size in a text box has three problems. First, customers do not know the number. Second, the numbers they do give are in mixed units: some type square feet, some type metres, some type “about a tennis court”. Third, you cannot check them, so your quote is only as good as the guess.

A drawing solves all three. The customer does not need to know the number, only where the area is. The unit is fixed by you. And you can see what they drew, so you can check it against the map before you confirm the job. For many businesses this turns the quote form from a lead form into a real instant quote, and it cuts site visits to the jobs that need one.

What a good map drawing field needs

Before building, it helps to know what makes a drawing field work for real customers rather than only in a demo.

Easy tools

Visitors need three shapes: an area (a polygon with any number of corners, for lawns, roofs and plots), a rectangle (fast for patios, car parks and simple roofs) and a line (for fences, hedges, gutters, pipes and routes). They also need to fix mistakes: move a corner, remove a shape, and undo the last step. Without undo, one wrong tap on a phone means starting again, and many people simply leave.

Correct numbers

The Earth is not flat, and web maps stretch distances as you move away from the equator. A tool that measures pixels on the screen, or treats latitude and longitude as flat coordinates, can be off by a large margin in Scotland, Canada or Scandinavia. A proper tool measures on the Earth’s ellipsoid (WGS84, the same model GPS uses). Then a lawn in London and a lawn in Sydney are measured the same way.

Numbers you can trust on the server

If the price is calculated from a number in the browser, someone can change that number before sending the form. That is rarely a customer trying to cheat, but it does happen, and it also happens by accident with browser extensions and autofill. The safe pattern is simple: the browser sends the shapes, and the server measures them again. If the numbers do not match, the form is refused. The entry keeps only the server’s numbers.

Works on a phone

Most quote requests come from phones. Buttons must be big enough for a thumb, the map must fit the screen without sideways scrolling, and drawing must work by tapping. A map that only works with a mouse loses half your leads.

Accessible

Some visitors use a keyboard or a screen reader. They should be able to reach every button, move and zoom the map with the arrow keys, add corners at a marked centre point, and read the area and length as text.

Setting up a drawing quote form in Gravity Forms

Here is a complete setup for a lawn mowing quote. The same steps work for a roof, a solar array, a driveway or a fence.

1. Install the add-on

Install and activate the Map Area & Route Drawing add-on and enter your license key in Forms → Settings → Map Area & Route. On the same page you can set where new maps open (for example your town), choose a tile server for the map pictures, and decide whether to switch on address search. The defaults work out of the box: OpenStreetMap pictures and no search.

2. Add the map field

Open your quote form and add the Map Area & Route field from Advanced Fields. Label it with what you want drawn, for example “Draw your lawn”, and add a short description: “Tap each corner of the lawn, then tap the first corner again. Add a line for any edging.” Clear instructions make a big difference to the quality of drawings.

3. Choose tools and units

In the field settings, tick the drawing tools you need. For lawns, keep Area, Rectangle and Line. For a fencing company, you might keep only Line. Then pick the units: square metres or square feet for lawns and roofs, hectares or acres for fields and farms, metres, feet, kilometres or miles for lengths. Under Length counts, choose whether the length includes the outline of the areas (handy for edging or gutters) or only the lines (for routes).

4. Set the start position

Enter the latitude, longitude and zoom of your service town, so the map opens where your customers live instead of on the whole world. Zoom 15 shows a neighbourhood; zoom 18 shows single gardens. If you turn on address search, customers can type their address to jump to their home.

5. Add the price calculation

Add a Number field called “Mowing price”, turn on Enable Calculation and insert the Area input from the merge tag list. A formula such as {Draw your lawn:2.1} * 2.5 charges 2.50 per square metre. Add a second Number field for edging with {Draw your lawn:2:length} * 4. The prices update the moment the customer finishes a shape. You can use the same inputs in a product field to take payment, or in a minimum charge formula.

A lawn mowing quote form with a six-corner lawn and an edging line drawn on the map, the total area and length below it, and the mowing and edging prices calculated from them
A lawn and an edging line drawn on the form, with the prices calculated live.

6. Add the rules

Rules protect you from jobs you do not want and from mistakes:

  • Minimum area stops tiny drawings that are almost always a slip of the finger.
  • Maximum area sends very large jobs to a phone call instead of an instant price.
  • Required shape type makes sure a roofer gets an area and a fencer gets a line.
  • Most shapes keeps entries tidy.
  • Service area lets you draw the area you cover in the form editor. Visitors see it as a dashed outline, and drawings outside it are refused with a clear message.

Every rule is shown next to the map while the customer draws, and checked again on the server when the form is sent.

7. Use conditional logic

The Area and Length inputs work in Gravity Forms conditional logic. Show a “Best day for a site visit” field when the area is over 1,000 square metres. Show a note about extra equipment when the fence is longer than 200 metres. Hide the instant price and show “We will call you” for very large jobs. This keeps the form short for most people and asks for more only when it matters.

How accurate is a map drawing?

Two things decide accuracy: the maths and the drawing. The maths is the easy part. The add-on measures areas with an equal-area method on the WGS84 ellipsoid and lengths with geodesic distances. In testing against a reference geodesy library, a 400 square metre lawn, a one-hectare square on the equator, a two square kilometre farm, an irregular roof, a solar field, a fence line, a ten kilometre route and even a one-degree box at 60 degrees north all came out within 0.004 percent.

The drawing is the real limit. On a clear map at a high zoom, a careful customer will usually be within a few percent of a tape measure. Tell visitors to zoom in before they draw, and treat the result as a quote, not a survey. For most size-based pricing, that is far better than a guess, and you can always adjust after a visit for the few jobs that need it.

Keeping the numbers honest

The add-on sends the drawing itself, as GeoJSON, along with the area and length. When the form arrives, your server reads the shapes, checks that they are valid (for example, that an area outline does not cross itself), applies your rules and measures everything again. If the area or length sent by the browser is different from the server’s result, the form is refused with “The measurements do not match the drawing”. Your calculations then use the server’s numbers, so the saved price always matches the saved drawing.

What you get in the entry

Each entry shows the area, the length and how many areas and lines were drawn, plus a read-only map with the shapes and a link to the location on OpenStreetMap. Before you confirm a job, you can look at the drawing on the map and see straight away whether the customer traced the lawn or the whole street.

The entry screen with the area, length and number of shapes, a read-only map of the lawn and edging line, the OpenStreetMap link and the calculated prices
The entry screen: values and a read-only map of the drawing.

Notifications can include the values with merge tags such as {Draw your lawn:2:area} and {Draw your lawn:2:length}, the map link with :link, or the full GeoJSON with :geojson if another system needs the shapes. The CSV export has Area and Length columns with the unit in the header, which makes it easy to total square metres per month or per crew.

Phones, keyboards and screen readers

On a phone, the drawing buttons wrap into two large columns and the map fills the width of the form. Customers tap corners with a finger, and the first tap on the starting corner closes the shape. On a computer without a mouse, every button can be reached with Tab, the arrow keys move the map, and pressing Enter on the map adds a corner under a red centre cross. The status line under the map is read out by screen readers, and the list of shapes gives every area and length as text.

Privacy and outside services

The map pictures come from a tile server: OpenStreetMap by default, or your own. The visitor’s browser loads those pictures, so mention it in your privacy policy. Address search is off by default. When you switch it on, searches go through your own server, at most once per second for the whole site, and answers are kept for a week, so the search service never sees your visitors. Everything else, including all the measuring, happens in the visitor’s browser and on your server.

Ideas for other businesses

  • Roofing and solar: outline each roof face; quote by area, with a minimum charge.
  • Fencing and hedging: draw lines only and price per metre or foot, with gates as a separate choice.
  • Paving and driveways: rectangles for quick drawing, square metres for the price.
  • Agriculture and spraying: hectares or acres, with a service area around your yard.
  • Events and permits: draw the route of a run or parade in kilometres or miles, and require a line.
  • Cleaning and pressure washing: patios and decks by area, with a maximum that switches to a call-back.

A checklist for your drawing quote form

  • Label the field with what to draw and add a one-line how-to.
  • Open the map on your service town at a useful zoom.
  • Keep only the drawing tools your trade needs.
  • Set a minimum and a maximum area, and draw your service area.
  • Price with a calculation on the Area or Length input, and show the price live.
  • Use conditional logic for large or unusual jobs.
  • Check the drawing on the entry map before you confirm the job.

Frequently asked questions

Do I need a map account or an API key?

No. The map library and drawing tools ship inside the add-on, and the default map pictures come from OpenStreetMap, which needs no key. A busy site should use its own or a commercial tile server, which you can enter in the settings.

Can customers draw more than one area?

Yes. Areas are added together and lines are added together, up to the number of shapes you allow.

Can I charge different rates for different shapes?

The field gives you a total area and a total length. A common pattern is areas for one service and lines for another, each with its own rate, as in the lawn and edging example above.

Does it work with payments?

Yes. Use the Area or Length input in a product price calculation, then any Gravity Forms payment add-on takes the payment as usual.

Get started

Size-based pricing does not need a site visit for every lead. Let customers draw the job, measure it properly, check it on the server and quote straight away. Read the setup guide for every option, or see the Gravity Forms Map Area & Route Drawing add-on to add a drawing map to your quote form today.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr