Skip to main content
The Google Routes Tool allows your agent to utilize the Google Routes API in order to find a route between two or more destinations. You can get a route by walk, transit, car, motorcycle and bicycle.

设置

You will need to get an API key from Google here and enable the Routes API. Then, set your API key as process.env.GOOGLE_ROUTES_API_KEY or pass it in as an apiKey constructor argument.

用法

npm

相关内容