Last active
January 24, 2020 12:03
-
-
Save diegohordi/8abc14d441c0f9ed441e3cfa2bd030c4 to your computer and use it in GitHub Desktop.
Check radius AWS Lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
func HandleRequest(ctx context.Context, coordinates Coordinates) (Result, error) { | |
result := Result{InsideRadius: IsInsideRadius(coordinates.ALatitude, coordinates.ALongitude, coordinates.BLatitude, coordinates.BLongitude, coordinates.Radius)} | |
return result, nil | |
} | |
func main() { | |
lambda.Start(HandleRequest) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment