module GoogleMapsApi::Place
Defined in:
google_maps_api/place.crClass Method Summary
-
.details(place_id : String, opts = {} of Symbol => String | Int32)
Query for the details of a Place by place_id
-
.nearby(lat : String | Float64, lng : String | Float64, opts = {} of Symbol => String | Int32)
Query for Places nearby the passed latitude and longitude.
-
.nearby(place : GooglePlace, opts = {} of Symbol => String | Int32)
Query near another place
Class Method Detail
Query for the details of a Place by place_id
def self.nearby(lat : String | Float64, lng : String | Float64, opts = {} of Symbol => String | Int32)
#
Query for Places nearby the passed latitude and longitude. This endpoint requires either radius or rankby which should be added to the opts
GoogleMapsApi::Place.nearby(40.714224, -73.961452, {radius: 1000})
Query near another place