Go4Food Go4Food Docs v1.0.0
Step 3 · Admin Panel Setup

Zones & Map Settings

Draw the areas you deliver to, choose a default zone for everyone else, and pick Google Maps or OpenStreetMap.

10 min

A zone is an area drawn on the map. Go4Food uses zones to decide whether it serves a customer's address and which drivers may take an order. Drivers choose their zones when they sign up, and an order is only offered to drivers who work in the order's zone.

Zones#

Open Zone ManagementZone.

Zone: all zones with their Status and Default switches
  1. 1Search zones by title or geographical locality.
  2. 2Add Zone button to draw a new polygon delivery geofence on the map.
  3. 3Zone name identifying the territory.
  4. 4Status switch: toggle delivery operations in this area on or off.
  5. 5Default zone toggle: fall back to this zone when no polygon matches.
  6. 6Action buttons to adjust the polygon boundary or remove the zone.

The setup tool adds three example zones: Surat and Rajkot (both off) and World Wide (on, and set as the default). With only World Wide on, every address is served. Replace them with your own areas before launch.

Click + Add Zone#

The zone editor opens with a map and an Instructions box.

Name the zone#

Type the Zone Name in the Default tab (required), and in each language tab if you want it translated.

Draw the area#

Use the shape tool on the map to click points around your delivery area and connect them. You need at least three points. Use the trash tool to remove a shape and start again.

Set Status and save#

Leave Status on so apps can use the zone, then click Save.

How the apps use zones#

Column / switchWhat it does
StatusOnly active zones are used. An inactive zone is ignored by every app.
DefaultThe catch-all zone. When a customer's address is not inside any active zone, the app uses the default zone instead of saying the area is not served. The default zone must be active, cannot be switched off, and cannot be deleted. At least one default zone must stay enabled.

Want to serve only your own areas?

Because the default zone catches every address outside your zones, a World Wide default means you serve everyone. If you only deliver in specific cities, draw your own zones and make one of them the default instead, so addresses far away fall back to a real delivery area rather than the whole world.

  • Customers: the app checks the selected delivery address against your zones. Without a matching or default zone, the customer sees no restaurants.
  • Drivers: choose one or more zones while signing up. A driver only receives offers for orders in those zones.
  • Orders: every order stores the customer's zone, which is used to find drivers.

Map Settings#

Open SettingsMap Settings.

SettingWhat it does
TypeGoogle Map or OSM Map (OpenStreetMap). Decides which map the Customer, Restaurant and Driver apps show for picking addresses and tracking orders.
Google Map KeyYour Google Maps API key. The apps use it for address search and for route distance and directions. Required when Type is Google Map.

Click Save.

One key, several places

The key typed here is read by the apps at runtime. The same key must also be added to each mobile app and to the web projects' index.html so the map itself can load. See Google Maps key. Enable the Maps SDKs, Places API and Routes API for that key in Google Cloud.

Search radius is elsewhere

How far customers can see restaurants is set in Restaurant settings (Restaurant Location Radius). How far the system looks for drivers is set in Driver settings (Driver Radius).