Module: SFPark::Client::Availability

Included in:
SFPark::Client
Defined in:
lib/sfpark/client/availability.rb

Instance Method Summary collapse

Instance Method Details

#availability(options = {}) ⇒ Array<Hashie::Mash>

Get the availiablity for parking in San Francisco

Examples:

SFPark.availability
SFPark.availability(:lat => 37.792275,:long => -122.397089,:radius => 0.25, :uom => 'mile')

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • requestid (String)

    Request parameter allows correlating a response to a particular request

  • lat (String)

    Latitude in decimal format to be specified along with LONG.

  • long (String)

    Longitude in decimal format to be specified along with LAT.

  • radius (String)

    Search Radius

  • uom (String)

    Unit of Measurement for the search radius mile, km, foot, meter, m, yard

  • type (String)

    Limit data to specified parking type

  • method (String)

    Method to invoke

  • pricing (String)

    Include rate information in response values: no, yes

Returns:

  • (Array<Hashie::Mash>)

See Also:



21
22
23
# File 'lib/sfpark/client/availability.rb', line 21

def availability(options={})
  get("availabilityservice", options)
end