ex_metra v0.1.0 ExMetra.Stop

Represents a response from the stop 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 Stop struct

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

Link to this section Types

Link to this type t()
t() :: %ExMetra.Stop{stop_desc: String.t(), stop_id: String.t(), stop_lat: number(), stop_lon: number(), stop_name: String.t(), stop_url: String.t(), wheelchair_boarding: boolean(), zone_id: String.t()}

Link to this section Functions

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

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

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