Attention webmasters:
When installing the widget on your site, you can set default values for the origin and destination by including fields in the querystring of the source URL.
Four fields are exposed through the querystring:
originAddress
originBoro
destinationAddress
destinationBoro
Acceptable values for originBoro and destinationBoro are:
MN
BK
BX
QN
SI
Values of originAddress and destinationAddress are any text string. White spaces and other special characters should of course be URL escaped.
Example:
To install the widget on your site with the destination pre-set to "Bronx Zoo" the code would be:
<iframe src="http://tripplanner.mta.info/widget/widget.aspx?destinationBoro=BX&destinationAddress=Bronx%20Zoo" frameborder=0 style="width:280px; height:440px;"></iframe>
When installing the widget on your site, you can set default values for the origin and destination by including fields in the querystring of the source URL.
Four fields are exposed through the querystring:
originAddress
originBoro
destinationAddress
destinationBoro
Acceptable values for originBoro and destinationBoro are:
MN
BK
BX
QN
SI
Values of originAddress and destinationAddress are any text string. White spaces and other special characters should of course be URL escaped.
Example:
To install the widget on your site with the destination pre-set to "Bronx Zoo" the code would be:
- MTA Home
- NYC Transit
- Long Island Rail Road
- Long Island Bus
- Metro-North Railroad
- Bridges & Tunnels
- Capital Construction
- Bus Company
