Google Maps to Sovereign Canadian Geo API Migration
A developer cheat sheet for replacing Google Maps Geocoding, Places Autocomplete, Directions, and Distance Matrix APIs with standard open protocols hosted in Beauharnois, Quebec.
API Endpoint Mapping
Every major Google Maps Platform service maps directly to standard open protocols without vendor lock-in:
| Google Maps Service | Mapacan Endpoint | Protocol Standard |
|---|---|---|
| Geocoding API (Forward) | GET /search | Nominatim JSONv2 |
| Reverse Geocoding | GET /reverse | Nominatim JSONv2 |
| Places Autocomplete | GET /api | Photon GeoJSON |
| Distance Matrix API | GET /table/v1/driving/{coords} | OSRM v1 Table |
| Directions API (Turn-by-Turn) | GET /route/v1/driving/{coords} | OSRM v1 Route |
| Route Optimization | GET /trip/v1/driving/{coords} | OSRM v1 Trip (TSP) |
Request Parameter Translation
1. Forward Address Lookup
?address=100+King+St+W,+Toronto,+ON
&components=country:CA
&key=AIzaSy...
?q=100+King+St+W,+Toronto,+ON
&countrycodes=ca
&format=jsonv2
Header: Authorization: Bearer sk_...
2. Address Autocomplete
?input=111+Wellesley
&components=country:ca
&key=AIzaSy...
?q=111+Wellesley
&limit=5
Header: Authorization: Bearer bk_...
Extracting Coordinates & Civic Data
In Google Maps responses, coordinates are nested under results[0].geometry.location.lat/lng. In standard Nominatim JSONv2 output, coordinates are top-level string floats:
// Javascript Migration Helper
function parseGeoResult(googleOrSovereign) {
// If migrating from Google:
if (googleOrSovereign.geometry) {
return {
lat: googleOrSovereign.geometry.location.lat,
lon: googleOrSovereign.geometry.location.lng,
address: googleOrSovereign.formatted_address
};
}
// Standard Nominatim JSONv2 response:
return {
lat: parseFloat(googleOrSovereign.lat),
lon: parseFloat(googleOrSovereign.lon),
address: googleOrSovereign.display_name,
houseNumber: googleOrSovereign.address?.house_number,
postalCode: googleOrSovereign.address?.postcode
};
}
Stop Paying USD Metered Markups and FX Penalties
A Canadian enterprise sending 100,000 geocoding queries, 50,000 autocomplete sessions, and 25,000 distance matrices pays over $1,100+ USD (~$1,550+ CAD) per month on Google Maps Platform, plus foreign exchange fees. With Mapacan, the same traffic is covered by a predictable flat CAD tier with zero request logging on Canadian soil.