Class: OnebusawaySDK::Models::TripsForLocationListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/onebusaway_sdk/models/trips_for_location_list_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(lat: , lat_span: , lon: , lon_span: , include_schedule: nil, include_trip: nil, time: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see OnebusawaySDK::Models::TripsForLocationListParams for more details.

Parameters:

  • lat (Float) (defaults to: )

    The latitude coordinate of the search center

  • lat_span (Float) (defaults to: )

    Latitude span of the search bounding box

  • lon (Float) (defaults to: )

    The longitude coordinate of the search center

  • lon_span (Float) (defaults to: )

    Longitude span of the search bounding box

  • include_schedule (Boolean) (defaults to: nil)

    Whether to include full schedule elements in the tripDetails section. Defaults t

  • include_trip (Boolean) (defaults to: nil)

    Whether to include full trip elements in the references section. Defaults to fal

  • time (Integer) (defaults to: nil)

    Specific time for the query. Defaults to the current time.

  • request_options (OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 54

Instance Attribute Details

#include_scheduleBoolean?

Whether to include full schedule elements in the tripDetails section. Defaults to false.

Returns:

  • (Boolean, nil)


39
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 39

optional :include_schedule, OnebusawaySDK::Internal::Type::Boolean

#include_tripBoolean?

Whether to include full trip elements in the references section. Defaults to false.

Returns:

  • (Boolean, nil)


46
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 46

optional :include_trip, OnebusawaySDK::Internal::Type::Boolean

#latFloat

The latitude coordinate of the search center

Returns:

  • (Float)


14
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 14

required :lat, Float

#lat_spanFloat

Latitude span of the search bounding box

Returns:

  • (Float)


20
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 20

required :lat_span, Float

#lonFloat

The longitude coordinate of the search center

Returns:

  • (Float)


26
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 26

required :lon, Float

#lon_spanFloat

Longitude span of the search bounding box

Returns:

  • (Float)


32
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 32

required :lon_span, Float

#timeInteger?

Specific time for the query. Defaults to the current time.

Returns:

  • (Integer, nil)


52
# File 'lib/onebusaway_sdk/models/trips_for_location_list_params.rb', line 52

optional :time, Integer