Skip to content

mbta/mbta_v3_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBTAV3API

Client library for the MBTA V3 API.

Installation

The package can be installed by adding mbta_v3_api to your list of dependencies in mix.exs:

def deps do
  [
    {:mbta_v3_api, "~> 0.0.1"}
  ]
end

Configuration

In your runtime configuration (config/runtime.exs) provide the API URL, key, and version (all required).

config :v3_api,
  base_url: "API_URL",
  api_key: "API_KEY",
  api_version: "2021-01-09"

You can also set the following optional confuration values.

  • :cache_size - Number of items to retain in the cache (default: 10_000)
  • :populate_caches? - Whether to pre-populate route data in the cache (default: false)

Documentation

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mbta_v3_api.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages