These are the code samples that are found in the blog post introducing the Maps APIs. The Geocoding API is also covered in the second post covering API keys.
App | Description | Category | API(s) | Language |
---|---|---|---|---|
maps/maps_geocode.py |
Geocode address | Places | Geocoding API | Python 2 & 3 |
maps/maps_geocode.js |
Geocode address | Places | Geocoding API | (CommonJS) Node.js |
maps/maps_geocode.mjs |
Geocode address | Places | Geocoding API | (modern JS/ECMAScript module) Node.js |
maps/maps_tzone.py |
Geocode address & get time zone | Places | Geocoding & Time Zone APIs | Python 2 & 3 |
maps/maps_wlkdir.py |
Walking directions | Routes | Directions API | Python 2 & 3 |