Class: TripPlanHack

nyc/mta/TripPlanHack~ TripPlanHack


new TripPlanHack(url)

Create an instance of TripPlanHack

Parameters:
Name Type Description
url string

URL to the MTA jump page

Source:

Methods


directions(request)

Intiate jump to MTA TripPlanner

Parameters:
Name Type Description
request module:nyc/mta/TripPlanHack~TripPlanHack.SaneRequest

The trip request

Source:

Type Definitions


Location

Object to define TripPlanHack locations

Type:
  • Object
Properties:
Name Type Argument Default Description
name string
coordinate Array.<number>

projection

projection string <optional>
EPSG:3857
Source:

SaneRequest

Object to pass reasonable parameters to TripPlanHack

Type:
  • Object
Properties:
Name Type Description
origin TripPlanHack.Location
destination TripPlanHack.Location
accessible boolean
Source: