class

GoogleMapsApi::Client

Inherits Reference / Object

Constants

API_KEY = ENV["GOOGLE_API_KEY"]? ? ENV["GOOGLE_API_KEY"] : ""
BASE_URL = "https://maps.googleapis.com/maps/api/"

Class methods

get(endpoint : String, params : Hash)

Sends query to google api endpoint. Appends the api key if it exists in ENV Handles the response from google.

Source