forked from yql/yql-tables
/
batlas.intersection.xml
27 lines (26 loc) · 1.15 KB
/
batlas.intersection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
<meta>
<author>Daniel Pett</author>
<description>Search Pleiades for items within a set bounding box</description>
<sampleQuery description="Search for places within bounding box">select * from {table} where min_lon = "20" and min_lat = "30" and max_lon = "22" and max_lat = "32" and limit="1"</sampleQuery>
</meta>
<bindings>
<select itemPath="json.items" produces="JSON">
<urls>
<url>http://bacchus.atlantides.org/t/pleiades/intersection?bbox={min_lon},{min_lat},{max_lon},{max_lat}</url>
</urls>
<paging model="offset">
<start id="start" default="0" />
<pagesize id="count" max="20" />
<total default="20"/>
</paging>
<inputs>
<key id="min_lon" type="xs:string" paramType="path" required="true" />
<key id="min_lat" type="xs:string" paramType="path" required="true" />
<key id="max_lon" type="xs:string" paramType="path" required="true" />
<key id="max_lat" type="xs:string" paramType="path" required="true" />
</inputs>
</select>
</bindings>
</table>