Position XML Element

Modified on Mon, 17 Aug 2015 12:36 by henrik — Categorized as: Gateway, Two way SMS, XML API

Describes the position of the sender of an MO.

Elements

ElementReqDescription
LONGITUDEYThe position longitude given as a decimal number. Positive numbers is North, negative is South
LATITUDEYThe position latitude given as a decimal number. Positive numbers is East, negative is West
RADIUSYRadius of accuracy given in meters
COUNCILYThe council (N: kommune) of the position
COUNCILNUMBERYThe council number (N: kommunenummer) of the position
PLACEYA desciption of the position, may differ between mobile network operators
SUBPLACENSome operators provide additional information on the position
ZIPCODENThe zip code of the position
CITYNThe city of the position

XSD

<xs:element name="POSITION">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="STATUS" type="xs:string" />
      <xs:element name="INFO" type="xs:string" minOccurs="0" maxOccurs="1" />
      <xs:element name="POS" minOccurs="0" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LONGITUDE" type="xs:float" />
            <xs:element name="LATITUDE" type="xs:float" />
            <xs:element name="RADIUS" type="xs:int" />
            <xs:element name="COUNCIL" type="xs:string" />
            <xs:element name="COUNCILNUMBER" type="xs:int" />
            <xs:element name="PLACE" type="xs:string" />
            <xs:element name="SUBPLACE" type="xs:string" minOccurs="0" maxOccurs="1" />
            <xs:element name="ZIPCODE" type="xs:string" minOccurs="0" maxOccurs="1" />
            <xs:element name="CITY" type="xs:string" minOccurs="0" maxOccurs="1" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

Sample XML

<POSITION>
  <STATUS>OK</STATUS>
  <INFO>Additional info if applicable</INFO>
  <POS>
    <LONGITUDE>60.37261</LONGITUDE>
    <LATITUDE>5.34129</LATITUDE>
    <RADIUS>10</RADIUS>
    <COUNCIL>Bergen Kommune</COUNCIL>
    <COUNCILNUMBER>1201</COUNCILNUMBER>
    <PLACE>Bergen</PLACE>
    <SUBPLACE>Fjøsangerveien 50<SUBPLACE>
    <ZIPCODE>5059</ZIPCODE>
    <CITY>Bergen</CITY>
  </POS>
</POSITION>