Class: SearchApi::Resources::GoogleMaps
Instance Method Summary
collapse
#initialize
Instance Method Details
#directions(start:, destination:, **params) ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/searchapi/resources/google_maps.rb', line 14
def directions(start:, destination:, **params)
@client.get("/search", {
engine: "google_maps_directions",
start_addr: start,
end_addr: destination,
**params
})
end
|
#place(data_id:, **params) ⇒ Object
10
11
12
|
# File 'lib/searchapi/resources/google_maps.rb', line 10
def place(data_id:, **params)
get(data_id: data_id, **params)
end
|
#search(query, **params) ⇒ Object
6
7
8
|
# File 'lib/searchapi/resources/google_maps.rb', line 6
def search(query, **params)
get(q: query, **params)
end
|