AWS | Googlemap Function Example

Serverless example using golang to hit google map api

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u -n  aws-golang-googlemap

Serverless-golang google map api

Serverless example using golang to hit google map api'

when changing any main file call make comment in the folder directory then call serverless deploy -v change your API KEY in the yml file

There are three endpoint provided: 1. GET Geolocation endpoint with address param (geolocation?address=$address) 2. GET Nearby Location with location and radius param, also name which is optional param (nearbylocation?name=$name&radius=$radius) 3. GET GeoDetail with place id (geodetail?placeid=$placeid)

getgeodetail: handler: bin/getgeodetail events: - http: path: geodetail method: get request: parameters: querystrings: placeid: true

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g