APG|SGA
infosnowAPI Type 1API Type 2Divers

API Type 1 - [Global Attributes]

These attributes are all optional and may be available for any Element.

Link

<ElementGroup ... >
<Element>


<Link>

<de><![CDATA[ ... german ... ]]></de>
<fr><![CDATA[ ... french ... ]]></fr>
<en><![CDATA[ ... english ... ]]></en>
<it><![CDATA[ ... italian ... ]]></it>
<nl><![CDATA[ ... dutch ... ]]></nl>
<es><![CDATA[ ... spanish ... ]]></es>

</Link>

</Element>
</ElementGroup>

Remarks for Status

<ElementGroup ... >
<Element>


<StatusRemarks>

<de><![CDATA[ ... german ... ]]></de>
<fr><![CDATA[ ... french ... ]]></fr>
<en><![CDATA[ ... english ... ]]></en>
<it><![CDATA[ ... italian ... ]]></it>
<nl><![CDATA[ ... dutch ... ]]></nl>
<es><![CDATA[ ... spanish ... ]]></es>

</StatusRemarks>

</Element>
</ElementGroup>

Object description

<ElementGroup ... >
<Element ... >

<description>

<de><![CDATA[... german ...]]></de>
<fr><![CDATA[... french ...]]></fr>

<en><![CDATA[... english ...]]></en>
<it><![CDATA[... italian ...]]></it>
<sp><![CDATA[... spanish ...]]></sp>
<nl><![CDATA[... dutch ...]]></nl>

</description>

</Element>
</ElementGroup>

Object contact information

<ElementGroup ... >
<Element ... >

<contact>

<address><![CDATA[...
address ...]]></address>
<phone><![CDATA[...
phone ...]]></phone>
<mobile><![CDATA[... mobile ...]]></mobile>
<fax><![CDATA[... fax ...]]></fax>
<email><![CDATA[... email ...]]></email>
<url><![CDATA[... url ...]]></url>

</concact>

</Element>
</ElementGroup>

Object images

<ElementGroup ... >
<Element ... >

<pics baseURL="http://infosnow.ch/pic/"
small="small/"
thumb="thumb/"
org="org/"
>

<pic id="1" />

<pic id="2" />
...

</pics>

</Element>
</ElementGroup>

To access the images:

baseURL + (optional subpath) + pic id

Operation hours (today)

<ElementGroup ... >
   <Element>
      
<operationToday>
<start>HH:MM</start> start of operation <end>HH:MM</end> end of operation <firstUp>HH:MM</firstUp> first uphill transportation if different from start (facilities only) <lastUp>HH:MM</lastUp> last uphill transportation if different from end (facilities only) <firstDown>HH:MM</firstDown> first downhill transportation if different from start (facilities only) <lastDown>HH:MM</lastDown> first downhill transportation if different from end (facilities only) </operationToday>

</Element>
</ElementGroup>

Operation hours (all)

<ElementGroup ... >
   <Element>
      
<oeffnungszeiten>

<zeitraum von="2014-10-31" bis="2015-04-30">
<bezeichnung>Sommerfahrplan</bezeichnung>
<tage>1,2,3,4,5,6,7</tage>
<zeiten>09:00-12:00,14:00-17:00</zeiten>
</zeitraum>

<zeitraum von="2015-05-01" bis="2015-10-31">
...
</zeitraum>

...
</oeffnungszeiten>

</Element>
</ElementGroup>

Comma separated list of days : 1 = Monday ... 7 = Sunday
<tage>1,2,3,4,5,6,7</tage>
Comma separated list of timestrings
<zeiten>09:00-12:00,14:00-17:00</zeiten>
Time format
hh:mm-hh:mm