class GoogleMapsApi::Client
- GoogleMapsApi::Client
- Reference
- Object
Defined in:
google_maps_api/client.crConstant Summary
-
API_KEY =
ENV["GOOGLE_API_KEY"]? ? ENV["GOOGLE_API_KEY"] : ""
-
BASE_URL =
"https://maps.googleapis.com/maps/api/"
Class Method Summary
-
.get(endpoint : String, params : Hash)
Sends query to google api endpoint.
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.