Class: GoogleMapsAPI
- Inherits:
-
SearchDataAPISearch
- Object
- SearchDataAPISearch
- GoogleMapsAPI
- Defined in:
- lib/searchdata_sdk/google_search.rb
Overview
Google Maps API Result powered by SearchData API Check code samples at examples/google_demo.ro Docs: app.searchdata.io/documentation/google-maps-api
Constant Summary
Constants inherited from SearchDataAPISearch
SearchDataAPISearch::LOCATIONS_API, SearchDataAPISearch::MAIN_API, SearchDataAPISearch::MAIN_API_PATH
Instance Attribute Summary
Attributes inherited from SearchDataAPISearch
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ GoogleMapsAPI
constructor
A new instance of GoogleMapsAPI.
Methods inherited from SearchDataAPISearch
#api_key, api_key=, #check_params, #construct_url, #get_hash, #get_json, #get_location, #get_results, searchdata_api_key=
Constructor Details
#initialize(params = {}) ⇒ GoogleMapsAPI
Returns a new instance of GoogleMapsAPI.
19 20 21 22 |
# File 'lib/searchdata_sdk/google_search.rb', line 19 def initialize(params = {}) super(params, GOOGLE_MAPS_ENGINE) check_params(%i[q engine type]) end |