Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb

Overview

Response proto for Search Nearby.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1SearchNearbyResponse

Returns a new instance of GoogleMapsPlacesV1SearchNearbyResponse.



2616
2617
2618
# File 'lib/google/apis/places_v1/classes.rb', line 2616

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#placesArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>

A list of places that meets user's requirements like places types, number of places and specific location restriction. Corresponds to the JSON property places



2606
2607
2608
# File 'lib/google/apis/places_v1/classes.rb', line 2606

def places
  @places
end

#routing_summariesArray<Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary>

A list of routing summaries where each entry associates to the corresponding place in the same index in the places field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested. Corresponds to the JSON property routingSummaries



2614
2615
2616
# File 'lib/google/apis/places_v1/classes.rb', line 2614

def routing_summaries
  @routing_summaries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2621
2622
2623
2624
# File 'lib/google/apis/places_v1/classes.rb', line 2621

def update!(**args)
  @places = args[:places] if args.key?(:places)
  @routing_summaries = args[:routing_summaries] if args.key?(:routing_summaries)
end