Module: SeeClickFix::Client::ServiceRequestTypes

Included in:
SeeClickFix::Client
Defined in:
lib/seeclickfix/client/service_request_types.rb

Instance Method Summary collapse

Instance Method Details

#service_request_types(lat, lng, options = {}) ⇒ Array<Hashie::Mash>

Use this query to list valid service request types (things like pothole, graffiti, street light out etc.) for a given location.

Examples:

SeeClickFix.service_request_types("32.1610815588945","-110.87677001953125")

Parameters:

  • lat (String)

    Latitude to check for service request types.

  • long (String)

    Longitude to check for service request types.

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

    A customizable set of options.

  • api_key (Hash)

    a customizable set of options

Returns:

  • (Array<Hashie::Mash>)

See Also:



15
16
17
# File 'lib/seeclickfix/client/service_request_types.rb', line 15

def service_request_types(lat,lng,options={})
  get("api/request_types/at.json?lat=#{lat}&lng=#{lng}", options)
end