Project

General

Profile

Edit Copy Actions

Feature #5537

closed

Feature #5529: Fieldstaff Daily Job Route Optimization

Google Maps / Mapbox Map Setup in the fieldstaff dashboard

Added by Yalavarthi Thriveni about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
12/03/2025
Due date:
% Done:

100%

Estimated time:
16:00 h
Spent time:

Description

Implement the map container, load base map. when click on route map option in the dashboard of fieldstaff


Add

Subtasks


Add

Related issues

Actions #1

Updated by Yalavarthi Thriveni about 2 months ago

  • Target version changed from Sprint3 to Sprint2
Actions #2

Updated by Pavan Kumar Murala about 2 months ago

  • Estimated time changed from 2:00 h to 16:00 h
Actions #3

Updated by Pavan Kumar Murala about 2 months ago

  • Status changed from New to In Progress
  • Assignee set to Pavan Kumar Murala

Updated by Pavan Kumar Murala about 2 months ago

  • % Done changed from 0 to 10

Today I created a new Map Page where all job locations are displayed on the Google Map. I added a sidebar to show each job’s details such as job title, status, and address. I also set the company’s default location (Cumming, GA – 34.212168, -84.204544) as the fixed starting map position instead of using the user’s GPS location. The map now loads with the company headquarters as the center point and displays all job markers correctly.

Updated by Pavan Kumar Murala about 2 months ago

  • % Done changed from 10 to 70
  • 1. Research: Google Directions API vs Routes API
  • Compared performance, features, costs, and limitations.
  • Confirmed Routes API is best for multi-stop job optimization.
  • 2. Integrated Google Routes API
  • Implemented POST request to directions/v2:computeRoutes.
  • Added routing payload (origin, destination, intermediates, optimizeWaypointOrder, traffic-aware).
  • Added Google headers + field masks.
  • 3. Implemented Polyline Decoding & Map Rendering
  • Decoded polyline using geometry library.
  • Added fallback polyline decoder.
  • Rendered optimized route with directional arrows.
  • 4. Extracted & Validated Job Locations
  • Handled both job and job.jobId structures.
  • Built consistent job-location objects.
  • Added hashing to avoid unnecessary re-renders.
  • 5. Built Full UI for Optimized Route Summary
  • Added summary cards (distance, time, stops).
  • Built job list panel (address, status, schedule, coordinates).
  • Added markers for shop, user's location, and job stops.
  • Added legend + route status UI.
Actions #6

Updated by Pavan Kumar Murala about 2 months ago

  • % Done changed from 70 to 90
Actions #7

Updated by Pavan Kumar Murala about 2 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions #8

Updated by Yalavarthi Thriveni about 1 month ago

  • Status changed from Resolved to Closed
Edit Copy Actions

Also available in: Atom PDF