Skip to content

Commit 22e6139

Browse files
docs: highlight API key in Quick Start example (#1014)
Replaces the invalid API key in the first example with an env-variable, making it clear it has to be provided by the user. fixes #1013 --------- Co-authored-by: Martin Schuhfuss <m.schuhfuss@gmail.com>
1 parent dfca658 commit 22e6139

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This library is designed for server-side Node.js applications. Attempting to use
4141

4242
Below is a simple example calling the elevation method on the client class.
4343

44-
Import the Google Maps Client using Typescript and ES6 module:
44+
Import the Google Maps Client using TypeScript and ES6 module:
4545

4646
```js
4747
import {Client} from "@googlemaps/google-maps-services-js";
@@ -61,7 +61,7 @@ client
6161
.elevation({
6262
params: {
6363
locations: [{ lat: 45, lng: -110 }],
64-
key: "asdf",
64+
key: process.env.GOOGLE_MAPS_API_KEY,
6565
},
6666
timeout: 1000, // milliseconds
6767
})

0 commit comments

Comments
 (0)