Back to Case Studies
Enterprise Production — GCP Architecture
Google Cloud PlatformFastAPICloud RunFirestoreBigQueryPub/SubReact 18Teltonika FMB920

HoyMismoGPS V2: Enterprise Fleet Management

A complete architectural overhaul — from a Python Asyncio prototype to a full Google Cloud Platform enterprise system capable of monitoring 500+ vehicles with sub-second GPS updates, executive-grade analytics, and 99.9% uptime SLA.

Live demo — real-time tracking, route replay, and executive dashboard

Platform Interface

HoyMismoGPS Executive Dashboard

Executive Dashboard

KPIs, alerts, fleet overview

HoyMismoGPS Real-Time Map

Real-Time Map

Animated vehicle markers

HoyMismoGPS Vehicle List

Fleet Management

Status, driver scores, alerts

500+
Assets Monitored
<1s
GPS Update Latency
99.9%
Uptime SLA
$70-100
Monthly GCP Cost

The Architectural Transformation: V1 → V2

V1 was built as a proof-of-concept: a Python Asyncio TCP server that decoded Teltonika binary packets, pushed coordinates to Redis, and rendered them on a Mapbox GL map. It worked — but it couldn't scale, had no analytics, no alerting pipeline, and required manual server management. V2 is a complete reimagination on Google Cloud Platform.

V1 — Prototype Limitations

  • Python Asyncio + single VPS (no auto-scaling)
  • Redis for pub/sub (self-managed, no SLA)
  • PostgreSQL for history (no BigQuery analytics)
  • Mapbox GL only (no traffic, no Street View)
  • No driver scoring, no automated reports
  • Single-tenant, no white-label support

V2 — Enterprise GCP Architecture

  • Cloud Run (auto-scaling, zero-downtime deploys)
  • Cloud Memorystore (managed Redis with 99.9% SLA)
  • Firestore (real-time) + BigQuery (analytics/history)
  • Google Maps Platform (live traffic, Street View)
  • Driver scoring, smart alerts, automated PDF reports
  • Multi-tenant architecture with role-based access

Data Pipeline: Device to Dashboard

Every GPS ping from a Teltonika FMB920 or FMB140 device travels through a cloud-native event pipeline before appearing on the map in under one second. The architecture uses Pub/Sub as the backbone so that multiple consumers (real-time map, alert engine, analytics writer) can process the same event independently and at scale.

Full Data Flow

Teltonika FMB920/FMB140
   TCP Port 5000 (Codec 8 / Codec 8 Extended)
        |
        v
GPS Server — Cloud Run (auto-scaling)
   Decodes binary packet → validates IMEI → extracts:
   { lat, lng, speed, ignition, odometer, fuel, ... }
        |
        v
   Cloud Pub/Sub — Topic: "gps-events"
        |
        +──────────────────────────────────────────+
        |                     |                    |
        v                     v                    v
Cloud Function:        Cloud Function:       Cloud Function:
save-location          check-alerts          update-stats
   |                        |                    |
   +──> Firestore       +──> FCM Push        +──> BigQuery
   (real-time pos)     (speeding alert)     (daily analytics)
   +──> Memorystore     +──> Firestore       +──> Firestore
   (cache last pos)    (alert record)       (KPI counters)
Cloud Run
GPS Server auto-scales 0→100 instances on traffic spikes
Pub/Sub
Decouples GPS ingestion from alerting, storage, and analytics
BigQuery
SQL analytics on 50M+ GPS points with sub-second queries

Enterprise Platform Features

Real-Time Tracking Map
Google Maps Platform with animated vehicle markers, live traffic overlay, and Street View integration. Vehicles update every 10–30 seconds depending on ignition state.
Executive KPI Dashboard
At-a-glance view of fleet health: active/idle/offline vehicle counts, daily kilometers driven, open alerts, and driver score trends. Powered by Firestore real-time listeners.
Route Replay
Play back any vehicle's journey with animation controls (play, pause, 1×/2×/4× speed). Renders the exact path driven with color-coded speed segments from BigQuery history.
Smart Geofences
Draw polygon, circle, or route-corridor geofences. Entry/exit events trigger immediate FCM push notifications and create Firestore alert records.
Driver Scoring System
Automated scoring based on speeding events, harsh braking (accelerometer data), late-night driving, and geofence compliance. Leaderboard view for fleet managers.
Premium Reports & Automation
Trips, fuel consumption, driver performance in PDF/Excel/CSV. Automated daily, weekly, and monthly reports delivered via email — zero manual work for fleet operators.

Full Technology Stack

Frontend: React 18 + Vite + Shadcn/UI + Tailwind CSS (dark mode default)
Maps: Google Maps Platform — Traffic API, Street View, Directions API
Backend API: FastAPI on Cloud Run (auto-scaling, 0 cold starts)
GPS Server: Cloud Run + TCP Codec — Teltonika FMB920 / FMB140
Messaging: Google Cloud Pub/Sub (GPS event bus)
Real-time DB: Firestore (live positions, alerts, KPIs)
Analytics DB: BigQuery (GPS history, trip reports, SQL analytics)
Cache: Cloud Memorystore — Managed Redis 6.x
Storage: Cloud Storage (PDF reports, CSV exports)
Push Notifications: Firebase Cloud Messaging (FCM)
Serverless: Cloud Functions (alert processing, stats aggregation)
Multi-tenant: Firestore security rules + custom RBAC per organization

Enterprise-Grade at SMB Pricing

One of the key design goals for V2 was cost efficiency without sacrificing reliability. By leveraging serverless Cloud Run (pay-per-request), managed Firestore (pay-per-read/write), and BigQuery's free tier for analytics queries under 1TB/month, the platform achieves enterprise-grade SLA at a fraction of traditional fleet management software costs.

$70-100
GCP cost/month for 20 vehicles
99.9%
Uptime backed by Cloud Run SLA
<1s
GPS event-to-map latency

Comparison: Traditional fleet management platforms (Samsara, Verizon Connect) charge $25–50/vehicle/month. The V2 GCP architecture delivers comparable features at roughly $3.50–5/vehicle/month for a 20-vehicle fleet, with the cost-per-vehicle dropping significantly as the fleet grows.

Need Enterprise GPS Fleet Management?

I can build a similar system for your fleet — from hardware integration (Teltonika, Concox, Queclink) to a fully branded dashboard with your company's branding and custom alert rules.

BETA