google-maps-api-typings
Advanced tools
TypeScript typings for `@google/maps` Node.JS API project.
Weekly downloads
Readme
This project contains the TypeScript interface declaration of the @google/maps
Node.JS API project.
It also provides inline documentation from the official Google Maps Documentation platform.
Just install both the official Google Maps API package and the Google Maps API Typings using npm:
npm i @google/maps
npm i google-maps-api-typings --save-dev
import 'google-maps-api-typings';
import { createClient } from "@google/maps";
const client = createClient({
key: 'my-google-maps-api-key',
language: 'jp',
Promise: Promise
});
client
.geocode({ address: 'Leaning Tower of Pisa' })
.asPromise()
.then(response => {
response.json.results.forEach(result => {
console.log(
result.geometry.location
);
})
});
This will output: { lat: 43.722952, lng: 10.396597 }
.
Do not confuse the Google Maps Node.JS API with the Google Maps Javascript API.
FAQs
TypeScript typings for `@google/maps` Node.JS API project.
The npm package google-maps-api-typings receives a total of 473 weekly downloads. As such, google-maps-api-typings popularity was classified as not popular.
We found that google-maps-api-typings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.