new TripPlanHack(url)
Class to hack calls to MTA TripPlanner
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 requestmodule:nyc/mta/TripPlanHack~TripPlanHack.SaneRequest The trip request
- Source:
Type Definitions
-
Location
-
Object to define TripPlanHack locations
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description namestring coordinateArray.<number> projection
projectionstring <optional>
EPSG:3857 -
SaneRequest
-
Object to pass reasonable parameters to TripPlanHack
Type:
- Object
- Source:
Properties:
Name Type Description originTripPlanHack.Location destinationTripPlanHack.Location accessibleboolean