An open API service indexing awesome lists of open source software.

https://github.com/ryanfarber/google-maps

google maps api
https://github.com/ryanfarber/google-maps

Last synced: 23 days ago
JSON representation

google maps api

Awesome Lists containing this project

README

          

# google-maps
google maps API wrapper

## quick start
```javascript
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
```javascript
maps.search("query")
maps.getPlaceDetails("placeId")
maps.parseAddressComponents([addressComponents])
```