Brett Owers
← All Projects

Google Maps Web Service

Archived

September 1, 2019

A fork of the Google Maps Web Service package — the reason lost to time, but the concept opens the door to a fascinating history of geographic computing, from paper maps to GPS satellites to real-time turn-by-turn navigation in your pocket.

Purpose

Forked the Google Maps Web Service package, likely to explore the Places API, Directions API, or Geocoding API. The specific change is forgotten, but working with Google's geo services is a window into one of the most consequential intersections of computing and geography in human history.

Stack

DartGoogle Maps APIGeocodingDirections APIPlaces APIOpen Source

What I Learned

  • Google Maps Web Service wraps several APIs: Geocoding (address → coordinates and back), Directions (route between points), Places (search for businesses and landmarks), Distance Matrix (travel time between multiple origins and destinations), and Elevation. Each is a REST API that returns JSON — the Dart package wraps the HTTP calls and deserializes the responses into typed objects.
  • Geocoding is deceptively complex. Converting "1600 Pennsylvania Ave" into 38.8977° N, 77.0365° W requires fuzzy string matching against a global address database, handling ambiguity (there are multiple Pennsylvania Avenues), and localizing results by country and language. Reverse geocoding (coordinates → address) is equally hard: a lat/lng might fall on a street, inside a building, or in an unnamed field. Google maintains one of the largest geographic databases on Earth to make this work.
  • The Directions API computes routes using a graph of the global road network. Every intersection is a node, every road segment is a weighted edge (weight = travel time, which changes in real time based on traffic). The API returns polylines (encoded sequences of lat/lng points that draw the route on a map), step-by-step instructions, duration, and distance. Under the hood, it runs optimized variants of A* with real-time traffic data from billions of Android phones reporting their speed and position.
  • The Places API is how apps implement "restaurants near me" — it combines location, category, user ratings, and business data into a single searchable index. The business model: Google gives developers access to this index via the API, and the businesses pay to be featured or verified. Understanding this reveals that Maps is not just a navigation product — it is a local commerce platform.

Key Insights

  • The history of geographic computing is the history of civilization. Paper maps encoded geographic knowledge in a shareable format — the Ptolemy world map (150 AD), the Mercator projection (1569), and the Ordnance Survey (1791) were each revolutions in how humans understood space. The jump to digital began with the US military's TRANSIT satellite system (1960) and culminated in GPS (1978-1995) — 24 satellites broadcasting time signals that let any receiver on Earth calculate its position within meters through trilateration.
  • The transition from GPS to Google Maps was a software revolution, not a hardware one. GPS tells you where you are. Google Maps tells you where everything else is and how to get there. The key innovation was stitching together satellite imagery, street-level photography (Street View), a global road graph, a business directory, and real-time traffic data from mobile phones into a single, queryable, instantly accessible system. No single piece is revolutionary. The composition is.
  • Navigation computing has gone from a military secret to a free utility in 40 years. In 1990, a GPS receiver cost $3,000 and gave you coordinates with no map context. In 2005, a Garmin with preloaded maps cost $500. In 2025, your phone does real-time 3D navigation with live traffic, lane guidance, and speed camera alerts for free. The cost curve of geographic intelligence has collapsed, and the Google Maps API is the programmatic interface to that collapse.
  • For developers, the geo APIs are a superpower: any app can now be location-aware with a few API calls. But the dependency is real — Google controls pricing, rate limits, and terms of service. OpenStreetMap, Mapbox, and HERE are alternatives worth knowing. The Potatuhs ecosystem uses multiple mapping providers depending on the context and cost profile.
#Google-Maps#API#geocoding#navigation#GPS#geolocation#Directions-API#Places-API#history#computing#Dart#open-source

This post was composed through a conversation between Brett Owers and Claude Code (Anthropic). The content reflects Brett's recollection of each project and the lessons drawn from it. Some details may be approximate or omitted — the purpose is to paint an honest picture of a software engineer's development over time, not to serve as a precise historical record.