module GoogleMapsApi::Place

Defined in:

google_maps_api/place.cr

Class Method Summary

Class Method Detail

def self.details(place_id : String, opts = {} of Symbol => String | Int32) #

Query for the details of a Place by place_id


[View source]
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})

[View source]
def self.nearby(place : GooglePlace, opts = {} of Symbol => String | Int32) #

Query near another place


[View source]