@extends('layouts.app') @section('head') @stop @section('content') @include('includes.revision_history', ['dataset' => 'zones', 'title' => 'Zones']) @include('includes.page_header', [ 'title' => 'Zones', 'purpose' => 'Draw or upload the geographic areas that add a surcharge when a route starts in, ends in, or passes through them, and set how each rule is charged.', ])
@csrf
Zone boundary Draw the polygon on the map below, or upload its boundary as a GeoJSON file (a FeatureCollection whose first feature is a Polygon or MultiPolygon). Need a boundary? Find borders here.
Pricing rules
Charge this zone differently depending on how a route relates to it. Enable at least one rule. If a route both starts and ends in the zone, only the Starts in rule is charged (Ends in is used instead when Starts in is disabled). Passes through only applies when neither end of the route is inside the zone.
Starts in
Route’s collection point is inside this zone.

Ends in
Route’s delivery point is inside this zone.

Passes through
Route crosses the zone but neither end is inside it.

per Km — the price is multiplied by the distance the route travels inside this zone.
Fixed — the price is charged as a flat amount when the rule matches.
Draw here Click to drop each corner; double-click (or click the first point) to finish. Redraw any time — it replaces the current boundary.

Mouse only: click the map to add points, double-click to finish. Prefer keyboard? Upload a GeoJSON boundary in the form above.

# Zone Starts in Ends in Passes through Actions
@include('includes.confirm',['message' => 'Are Your sure?','title' => 'Delete zone','formId' => 'zoneDeleteForm','fieldId' => 'zoneId']) @stop @section('js') @stop