Setup required.
Open this file in a text editor and paste your Google Maps API key into the
API_KEY variable near the top. You also need these 4 APIs enabled in Google Cloud Console:
- Routes API, for traffic-aware forecasts
- Maps JavaScript API, loads the map
- Places API (the classic one, not "New"), address autocomplete
- Directions API, draws the route on the map