File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!--
2
+ title: .'google map api'
3
+ description: 'Serverless example using golang to hit google map api'
4
+ framework: v1
5
+ platform: AWS
6
+ language: Go
7
+ authorLink: 'https://github.com/pramonow'
8
+ authorName: 'Pramono Winata'
9
+ authorAvatar: 'https://avatars0.githubusercontent.com/u/28787057?v=4&s=140'
10
+ -->
11
+
12
+
13
+
14
+ # Serverless-golang google map api
15
+ Serverless example using golang to hit google map api'
16
+
17
+ when changing any main file call make comment in the folder directory then call serverless deploy -v
18
+ change your API KEY in the yml file
19
+
20
+ There are three endpoint provided:
21
+ 1 . GET Geolocation endpoint with address param (geolocation?address=$address)
22
+ 2 . GET Nearby Location with location and radius param, also name which is optional param (nearbylocation?name=$name&radius=$radius)
23
+ 3 . GET GeoDetail with place id (geodetail?placeid=$placeid)
24
+
25
+ getgeodetail:
26
+ handler: bin/getgeodetail
27
+ events:
28
+ - http:
29
+ path: geodetail
30
+ method: get
31
+ request:
32
+ parameters:
33
+ querystrings:
34
+ placeid: true
You can’t perform that action at this time.
0 commit comments