google-maps-sdk
v1.0.0
Published
Google Maps API provides mapping, location, and navigation services, enabling developers to embed maps, routes, and place data into applications.
Readme
Getting Started with Google Maps Platform – Core APIs
Introduction
This is an API collection of all of the current Google Maps Platform Core APIs. Please visit the Google Maps homepage for more information.
Install the Package
Run the following command from your project directory to install the package from npm:
npm install [email protected]For additional package details, see the Npm page for the [email protected] npm.
Test the SDK
To validate the functionality of this SDK, you can execute all tests located in the test directory. This SDK utilizes Jest as both the testing framework and test runner.
To run the tests, navigate to the root directory of the SDK and execute the following command:
npm run testOr you can also run tests with coverage report:
npm run test:coverageInitialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
| --- | --- | --- |
| environment | Environment | The API environment. Default: Environment.Production |
| timeout | number | Timeout for API calls.Default: 0 |
| httpClientOptions | Partial<HttpClientOptions> | Stable configurable http client options. |
| unstableHttpClientOptions | any | Unstable configurable http client options. |
| customQueryAuthenticationCredentials | CustomQueryAuthenticationCredentials | The credential object for customQueryAuthentication |
The API client can be initialized as follows:
import { Client, Environment } from 'google-maps-sdk';
const client = new Client({
customQueryAuthenticationCredentials: {
'key': 'key'
},
timeout: 0,
environment: Environment.Production,
});Authorization
This API uses the following authentication schemes.
List of APIs
- Address Validation API
- Aerial View API
- Directions API Legacy
- Distance Matrix API Legacy
- Elevation API
- Geocoding API
- Geolocation API
- Places API Legacy
- Places API
- Roads API
- Routes API
- Street View API
- Time Zone API
- Solar API
- Pollen API
- Air Quality API
- Weather API
- Autocomplete
