Update a Notion database with mileage between a starting address and location using Google Maps.
Create a Notion database with the following:
- Text column named
Location
which contains a location in form of address or landmark name - Number column named
Mileage
which will be populated by this integration
- Follow the instructions on this page to create a new Notion integration
- Create a Google Maps API key with these instructions
- Ensure the following is included in your
.env
file which should be created in the root of this repo:
NOTION_API_KEY =
NOTION_API_DATABASE =
GOOGLE_MAPS_API_KEY =
STARTING_ADDRESS = ""
Run the integration with the following command and check your Notion database to confirm it's been updated.
npm start