Skip to content

Easily get traveling distance and duration data between locations with the Google Distance Matrix API

Notifications You must be signed in to change notification settings

askmhs/nodejs-googledistance-example

Repository files navigation

Documentation

https://www.npmjs.com/package/google-distance

API Keys

Using an API key is not required, but recommended since you can track your usage and make sure you don't exceed Google's quota. You can request a key by following these steps.

Specify an API key for use like this:

import distance from 'google-distance';
distance.apiKey = 'API_KEY';

Business users can omit the API key and instead specify their business client and signature keys:

import distance from 'google-distance';
distance.businessClientKey = 'CLIENT_KEY';
distance.businessSignatureKey = 'SIGNATURE_KEY';

Running Application

  1. Install the development dependencies:

    npm install

  2. Run the application:

    npm start

About

Easily get traveling distance and duration data between locations with the Google Distance Matrix API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published