Request Data
Required Information | |
---|---|
Name | Description |
action | editposition |
operation | list |
format | xml or csv |
Optional Information | |
target | Name of location to limit query by |
category | Name of location category to limit query by |
Data Returned
Returned information: A list of Locations of Interests1 / GPS Zones.
If format=xml, the output conforms to this DTD
<!ELEMENT loilist (loi*)>
<!ELEMENT loi (id, name, category, geometry)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT category (#PCDATA)>
<!ELEMENT geometry (#PCDATA)>
The geometry is specified in EWKT format. If format=csv, the output follows the same conventions as defined in the Ground Traffic Control zones. See the help topic for importing/exporting.
Example Request:
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=editposition&operation=list&format=xml&
Example Success Reply
<?xml version="1.0"?>
<loilist>
<loi>
<name>Zonar HQ</name>
<category></category>
<geometry>SRID=4326;POLYGON((-122.295226273299 47.4275210117499 0,-122.29284948206 47.4273489675061 0,-122.293546674157 47.4262951841674 0,-122.295479797698 47.426445725944 0,-122.295226273299 47.4274995062503 0,-122.295226273299 47.4275210117499 0))</geometry>
</loi>
<loi>
<name>Wash.</name>
<category></category>
<geometry>SRID=4326;POLYGON((-122.642427937507 47.934613423202 0,-123.355465309236 48.0303570358689 0,-124.496325104004 48.2213084938666 0,-124.353717629658 46.7717345326435 0,-124.353717629658 45.9821380393502 0,-121.644175617085 45.9821380393502 0,-117.223343912361 45.8826302607835 0,-117.223343912361 48.2213084938666 0,-117.508558861053 49.1653705015766 0,-122.785035411853 49.1653705015766 0,-122.499820463161 47.934613423202 0,-122.499820463161 47.934613423202 0,-122.642427937507 47.934613423202 0))</geometry>
</loi>
<loi>
<name>Everett</name>
<category></category>
<geometry>SRID=4326;POLYGON((-122.212704081477 47.9729323063919 0,-122.215556230964 47.937168904813 0,-122.183231870113 47.9282241632672 0,-122.177527571139 47.9716554708452 0,-122.209851931991 47.9722938925887 0,-122.212704081477 47.9729323063919 0))</geometry>
</loi>
<loi>
<name>Dans Parking Spot</name>
<category></category>
<geometry>SRID=4326;POLYGON((-122.294727 47.427467 0,-122.294758 47.427478 0,-122.294733 47.427508 0,-122.2947 47.427498 0,-122.294727 47.427467 0))</geometry>
</loi>
</loilist>
Example Error Reply
<error ver="1.0">
<action>editposition</action>
<code>112</code>
<message>
Invalid format: cst specified for action editposition
</message>
</error>
1 LOI means Location of Interest; called "Zone" in the GPS tools and reports found within the Ground Traffic Control web application.