Live, runnable Polyglot Notebooks
(.dib) — one per Google Maps API surface. Each notebook references the published
GoogleMapsApi NuGet package (#r "nuget: GoogleMapsApi, 2.4.0"),
so they run anywhere without building this repo. Execute the cells top to bottom to call the real API
and see each response rendered inline — a more hands-on alternative to the README's code blocks and the
full project samples.
- Install the Polyglot Notebooks extension in VS Code (it pulls in the .NET Interactive kernel),
or use the
dotnet replCLI. - Set your key once for the session:
export GOOGLE_API_KEY=your-key(the notebooks read it from the environment, matching the other samples). Don't have one? Get it in the Google Cloud Console and enable the relevant API. - Open a
.dibfile and run the cells in order — the package reference, key, and client are set up in the first few cells and reused by the rest.
| Notebook | API surface | What it shows |
|---|---|---|
| Geocoding.dib | Geocoding | Address → coordinates, and reverse geocoding |
| Routes.dib | Routes (modern) | Compute a route with traffic-aware preference and a field mask |
| Directions.dib | Directions (legacy) | Turn-by-turn directions; legacy — prefer Routes |
| DistanceMatrix.dib | Distance Matrix (legacy) | Travel time/distance matrix; legacy — prefer Routes |
| Elevation.dib | Elevation | Elevation for points and along a path |
| TimeZone.dib | Time Zone | Time zone and UTC/DST offsets for a location |
| AddressValidation.dib | Address Validation | Validate a postal address and read the verdict |
| Roads.dib | Roads | Snap to roads, nearest roads, and speed limits |
| StaticMaps.dib | Static Maps | Build a map-image URL and render it inline |
These call paid APIs and incur charges on your Google Cloud project — each opens with a cost warning. Run only if you accept the cost.
| Notebook | API surface | What it shows |
|---|---|---|
| PlacesNew.dib | Places (New) | Text/nearby search, details, autocomplete, and photos |
| Solar.dib | Solar | Building insights, data layers, and a GeoTIFF download |
| AerialView.dib | Aerial View | Render a flyover video and poll until it's ready |