ex_metra v0.1.1 ExMetra.Trip

Represents a response from the trip API call

Link to this section Summary

Functions

Converts a map that was provided by the Poison library, which represents a JSON object and turns it into a Trip struct

The specific part of the url that will call the trip API

Link to this section Types

Link to this type direction()
direction() :: integer()
Link to this type t()
t() :: %ExMetra.Trip{block_id: String.t(), direction_id: direction(), route_id: String.t(), service_id: String.t(), shape_id: String.t(), trip_headsign: String.t(), trip_id: String.t()}

Link to this section Functions

Link to this function from_json(json)
from_json(map()) :: ExMetra.Trip.t()

Converts a map that was provided by the Poison library, which represents a JSON object and turns it into a Trip struct

The specific part of the url that will call the trip API