@ryanforever/google-maps

1.1.5 • Public • Published

google-maps

google maps API wrapper

quick start

const GoogleMaps = require("@ryanforever/google-maps")
const maps = new GoogleMaps({
	key: process.env.GOOGLE_MAPS_API_KEY
})

maps.search("paris, france").then(console.log) // search for a location
maps.getPlaceDetails()

methods

maps.search("query")
maps.getPlaceDetails("placeId")
maps.parseAddressComponents([addressComponents])

Readme

Keywords

Package Sidebar

Install

npm i @ryanforever/google-maps

Weekly Downloads

3

Version

1.1.5

License

ISC

Unpacked Size

31.4 kB

Total Files

12

Last publish

Collaborators

  • ryanforever