class GoogleMapsApi::Client

Defined in:

google_maps_api/client.cr

Constant Summary

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

Class Method Summary

Class Method Detail

def self.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.


[View source]