Drove!

Drove!

We Care for You

Your Safety is our top priority!

Peak Zone Map

Estimated reading: 2 minutes 26 views

1. Peak Zone Map Overview

The Peak Zone Map provides a real-time visual overview of all active peak pricing areas within the Drove admin system. Admins can monitor peak zones, surge pricing behavior, and polygon boundaries directly on an interactive map.


2. Map Interface Features

2.1 Zone Boundaries

  • Displays polygon shapes representing peak zone coverage areas
  • Supports multiple overlapping polygons
  • Uses color coding to differentiate:
    • Regular zones
    • Active peak zones (highlighted in orange)

2.2 Surge Pricing Indicators

  • When a ride begins inside a peak zone, the system highlights:
    • Surge multiplier
    • Peak zone name
    • Applicable charges

2.3 Real-time Updates

  • Peak zone changes appear instantly:
    • Creation
    • Expiration
    • Updates

3. Example – Peak Zone Map Visualization


Map Marker Information

  • Active peak zones highlighted with orange polygons
  • Clicking inside a zone reveals:
    • Surge multiplier
    • Zone details
    • Remaining active duration
  • Ride start points show surge amount if applicable

5. Technical Implementation Details

5.1 Key Components

FilePurpose
PeakZoneTrait.phpContains logic for creation, detection, and validation of peak zones
PeakZone.phpORM model representing a peak zone
RideRepository.phpCalculates surge pricing when a ride starts
Zone.phpBase zone model including peak surge configuration

6. Database Structure

Important Tables & Columns

rides Table

ColumnDescription
peak_zone_idForeign key linking to peak_zones table
peak_zone_chargeSurge amount applied for the specific ride

peak_zones Table

ColumnDescription
nameName of the peak zone
polygon_pointsJSON polygon coordinates defining the zone

zones Table

ColumnDescription
peak_price_increase_percentageSurge multiplier for the zone
Performance Note: Geospatial fields use indexed queries for fast polygon boundary checks.

7. System Monitoring & Maintenance

Monitoring

  • Peak zone creation & deletion logs
  • Surge earnings tracked separately
  • Performance metrics collected continuously

Maintenance

  • Automatic removal of expired peak zones
  • Routine geospatial index optimization
  • Regular validation of configuration values
🔧 Critical Tip: Ensure indexes on geospatial columns remain optimized for best performance.

Leave a Comment

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

Share this Doc

Peak Zone Map

Or copy link

CONTENTS