Advisory Information API

Command: elev

Inputs

Parameter Description
cmd=elev Requests current elevator infromation (Required)
key=<key> API registration key (Required)
json=y Returns API output in JSON format. Default output is XML if parameter not specified. (Optional)

Results

XML Sample

<?xml version="1.0" encoding="utf-8"?>
<root>
  <uri>
    <![CDATA[https://api.bart.gov/api/bsa.aspx?cmd=elev]]>
  </uri>
  <date>11/20/2017</date>
  <time>11:50:20 AM PST</time>
  <bsa id="11201151">
    <station>BART</station>
    <type>ELEVATOR</type>
    <description>
      <![CDATA[There is 1 elevator out of service at this time: DELN: Platform - Richmond]]>
    </description>
    <sms_text>
      <![CDATA[1 elev out of svc: DELN: plat - RICH]]>
    </sms_text>
    <posted></posted>
    <expires></expires>
  </bsa>
  <message></message>
</root>

JSON Sample

{  
   "?xml":{  
      "@version":"1.0",
      "@encoding":"utf-8"
   },
   "root":{  
      "@id":"1",
      "uri":{  
         "#cdata-section":"https://api.bart.gov/api/bsa.aspx?cmd=elev&json=y"
      },
      "date":"11/20/2017",
      "time":"11:51:20 AM PST",
      "bsa":[  
         {  
            "@id":"11201151",
            "station":"BART",
            "type":"ELEVATOR",
            "description":{  
               "#cdata-section":"There is 1 elevator out of service at this time: DELN: Platform - Richmond"
            },
            "sms_text":{  
               "#cdata-section":"1 elev out of svc: DELN: plat - RICH"
            },
            "posted":"",
            "expires":""
         }
      ],
      "message":""
   }
}

Notes

None.

Usage

XML: https://api.bart.gov/api/bsa.aspx?cmd=elev&key=INSERT-KEY
JSON: https://api.bart.gov/api/bsa.aspx?cmd=elev&key=INSERT-KEY&json=y