Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Library to interact with Metropolitan Atlanta Rapid Transit Authority (MARTA) Api

License

Notifications You must be signed in to change notification settings

syncromatics/Syncromatics.Clients.Marta

Repository files navigation

Syncromatics.Clients.Marta

This is a .NET library to interact with the MARTA API for getting transit arrival information in Atlanta.

Quickstart

A .NET library to interact with the MARTA API

Retrieving rail arrivals

MartaApiClient client = new MartaApiClient(new ClientSettings("http://developer.itsmarta.com", "fake-api-key"));
IList<TrainArrival> arrivals = await client.GetRealTimeTrainArrivalsAsync();
string myStation = "SANDY SPRINGS STATION";
var stationArrivals = arrivals.Where(arrival => myStation.Equals(arrival.Station, StringComparison.InvariantCultureIgnoreCase));
string nextArrival = stationArrivals.FirstOrDefault()?.WaitingTime ?? "unknown";
Console.WriteLine($"{myStation} {nextArrival}"); //SANDY SPRINGS STATION 9 min

Building

Travis NuGet NuGet Pre Release

This library is built using .NET Core. To build:

dotnet build

To run the tests:

dotnet test

Code of Conduct

We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.

Contributing

We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.

License and Authors

GMV Syncromatics Engineering logo GMV Syncromatics Engineering

license GitHub contributors

This software is made available by GMV Syncromatics Engineering under the MIT license.

About

Library to interact with Metropolitan Atlanta Rapid Transit Authority (MARTA) Api

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages