o311_services {r311}R Documentation

Get service list

Description

Get a list of available services. Services are unique to the endpoint / city and thus require an attached jurisdiction using o311_api.

Usage

o311_services(...)

o311_service(service_code, ...)

Arguments

...

Further endpoint-specific parameters as documented in the respective endpoint reference.

service_code

Identifier of a single service definition. Service codes can usually be retrieved from o311_services.

Value

A dataframe or list containing information about each service.

Examples

# set up a jurisdiction
o311_api("san francisco")

if (o311_ok()) {
  # get a list of all services
  services <- o311_services()

  # inspect a service code
  o311_service(services$service_code[1])
}


[Package r311 version 0.3.7 Index]