feat: Google Maps API — embedded maps, geocoding, route optimization #28

Open
opened 2026-06-23 14:11:40 +00:00 by jmiller · 0 comments
Owner

Summary

Replace hardcoded Google Maps link in tech mobile view with full Maps API integration.

Current State

  • site/tmpl/techmobile/default.php has a basic link: maps.google.com/maps?daddr={lat},{lng}
  • No embedded maps, geocoding, or route optimization

Requirements

  • Embedded map — display work order location on interactive map in tech mobile view
  • Geocoding — validate and geocode customer addresses on work order creation
  • Route optimization — daily route planning for field techs with multiple stops (Directions API)
  • Real-time ETA — estimated arrival time based on current location to next job
  • Configuration — Google Maps API key in component settings

Technical Notes

  • Use Maps JavaScript API for embeds, Geocoding API for address lookup
  • Directions API for route optimization (up to 25 waypoints)
  • Store geocoded lat/lng on work order addresses to avoid repeat API calls
  • API key stored in component config, loaded via $wa->addScript() with key parameter
## Summary Replace hardcoded Google Maps link in tech mobile view with full Maps API integration. ## Current State - `site/tmpl/techmobile/default.php` has a basic link: `maps.google.com/maps?daddr={lat},{lng}` - No embedded maps, geocoding, or route optimization ## Requirements - **Embedded map** — display work order location on interactive map in tech mobile view - **Geocoding** — validate and geocode customer addresses on work order creation - **Route optimization** — daily route planning for field techs with multiple stops (Directions API) - **Real-time ETA** — estimated arrival time based on current location to next job - **Configuration** — Google Maps API key in component settings ## Technical Notes - Use Maps JavaScript API for embeds, Geocoding API for address lookup - Directions API for route optimization (up to 25 waypoints) - Store geocoded lat/lng on work order addresses to avoid repeat API calls - API key stored in component config, loaded via `$wa->addScript()` with key parameter
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteField#28