Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing conflicting geo files

  • Loading branch information...
commit b7f61af9f541ad0d7edd81efe92970cb7a4e817b 1 parent 09506c4
@pjdonnelly pjdonnelly authored
Showing with 0 additions and 194 deletions.
  1. +0 −50 geo/geo.placefinder.xml
  2. +0 −144 geo/geo.placemaker.xml
View
50 geo/geo.placefinder.xml
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author>Yahoo! Inc.</author>
- <description>GeoPlanet PlaceFinder table</description>
-<documentationURL>http://developer.yahoo.com/geo/placefinder/guide</documentationURL>
- <sampleQuery>select * from {table} where text="sfo"</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="ResultSet.Result" produces="XML">
- <urls>
- <url env="all">http://where.yahooapis.com/geocode?locale={lang}_{focus}</url>
- </urls>
- <paging model="offset" matrix="false">
-
- <start id="start" default="0" />
- <pagesize id="count" max="100" />
- <total default="100" />
- </paging>
- <inputs>
- <key id="house" type="xs:string" paramType="query" />
- <key id="street" type="xs:string" paramType="query" />
- <key id="unittype" type="xs:string" paramType="query" />
- <key id="unit" type="xs:string" paramType="query" />
-
- <key id="xstreet" type="xs:string" paramType="query" />
- <key id="postal" type="xs:string" paramType="query" />
- <key id="level4" type="xs:string" paramType="query" />
- <key id="level3" type="xs:string" paramType="query" />
- <key id="level2" type="xs:string" paramType="query" />
- <key id="level1" type="xs:string" paramType="query" />
- <key id="level0" type="xs:string" paramType="query" />
- <key id="neighborhood" type="xs:string" paramType="query" />
- <key id="city" type="xs:string" paramType="query" />
-
- <key id="county" type="xs:string" paramType="query" />
- <key id="state" type="xs:string" paramType="query" />
- <key id="country" type="xs:string" paramType="query" />
- <key id="lang" type="xs:string" paramType="path" default="en" />
- <key id="focus" type="xs:string" paramType="path" default="US" />
- <key id="q" type="xs:string" paramType="query" default="" />
- <key id="offset" type="xs:integer" paramType="query" default="0" />
- <key id="flags" type="xs:string" paramType="query" default="QRGSTX" />
- <key id="gflags" type="xs:string" paramType="query" default="ACR" />
- <key id="appid" type="xs:string" const="true" paramType="query" default="YD-bs4vWJU_JXrmPwSfQ8yStcfWoDA5n51J" />
-
- </inputs>
- </select>
- </bindings>
-</table>
View
144 geo/geo.placemaker.xml
@@ -1,144 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author>Balaji Narayanan</author>
- <author>Tom Hughes-Croucher</author>
- <description>Placemaker</description>
- <sampleQuery>select * from {table} where documentContent = "They followed him to deepest Africa and found him there, in Timbuktu" and documentType="text/plain" anmd appid = ""</sampleQuery>
- <documentationURL>http://developer.yahoo.com/geo/placemaker/</documentationURL>
- </meta>
- <bindings>
-
- <select itemPath="" produces="XML">
- <urls>
- <url>http://wherein.yahooapis.com/v1/document</url>
- </urls>
- <inputs>
- <key id="documentURL" type="xs:string" required="true" paramType="variable"/>
- <key id="documentType" type="xs:string" required="true" paramType="variable"/>
- <key id="appid" type="xs:string" required="true" paramType="variable"/>
- <key id="documentTitle" type="xs:string" paramType="variable"/>
- <key id="inputLanguage" type="xs:string" paramType="variable" />
- <key id="autoDisambiguate" type="xs:string" paramType="variable" />
- <key id="focusWoeId" type="xs:string" paramType="variable" />
- </inputs>
- <execute>
- <![CDATA[
-
- content = "documentURL=" + documentURL + "&documentType=" + documentType + "&appid=" + appid;
- if (documentTitle) { content += "&documentTitle=" + documentTitle; }
- if (inputLanguage) { content += "&inputLanguage=" + inputLanguage; }
- if (autoDisambiguate) { content += "&autoDisambiguate=" + autoDisambiguate; }
- if (focusWoeId) { content += "&focusWoeId=" + focusWoeId; }
-
- postResponse = request.accept("application/xml").contentType("application/x-www-form-urlencoded").post(content).response;
-
- if (postResponse != null) {
-
- default xml namespace = "http://wherein.yahooapis.com/v1/schema";
-
- matches = Array();
-
- for each (var place in postResponse.document.placeDetails.place) {
- if (matches[place.woeId]) {
- matches[place.woeId].place = place;
- } else {
- matches[place.woeId] = Array();
- matches[place.woeId].place = place;
- }
- }
- for each (var reference in postResponse.document.referenceList.reference) {
- if (matches[reference.woeIds]) {
- matches[reference.woeIds].reference = reference;
- } else {
- matches[reference.woeIds] = Array();
- matches[reference.woeIds].reference = reference;
- }
- }
- default xml namespace = "";
-
- var output = <matches></matches>;
-
- for each (var match in matches) {
- var matchXML = <match></match>;
- matchXML.node += match.place;
- matchXML.node += match.reference;
-
- output.node += matchXML;
- }
-
- response.object = output;
-
- }
-
- ]]>
- </execute>
- </select>
- <select itemPath="" produces="XML">
-
- <urls>
- <url>http://wherein.yahooapis.com/v1/document</url>
- </urls>
- <inputs>
- <key id="documentContent" type="xs:string" required="true" paramType="variable"/>
- <key id="documentType" type="xs:string" required="true" paramType="variable"/>
- <key id="appid" type="xs:string" required="true" paramType="variable"/>
- <key id="documentTitle" type="xs:string" paramType="variable"/>
- <key id="inputLanguage" type="xs:string" paramType="variable" />
- <key id="autoDisambiguate" type="xs:string" paramType="variable" />
- <key id="focusWoeId" type="xs:string" paramType="variable" />
- </inputs>
- <execute>
- <![CDATA[
-
- content = "documentContent=" + documentContent + "&documentType=" + documentType + "&appid=" + appid;
- if (documentTitle) { content += "&documentTitle=" + documentTitle; }
- if (inputLanguage) { content += "&inputLanguage=" + inputLanguage; }
- if (autoDisambiguate) { content += "&autoDisambiguate=" + autoDisambiguate; }
- if (focusWoeId) { content += "&focusWoeId=" + focusWoeId; }
-
- postResponse = request.accept("application/xml").contentType("application/x-www-form-urlencoded").post(content).response;
-
- if (postResponse != null) {
-
- default xml namespace = "http://wherein.yahooapis.com/v1/schema";
-
- matches = Array();
-
- for each (var place in postResponse.document.placeDetails.place) {
- if (matches[place.woeId]) {
- matches[place.woeId].place = place;
- } else {
- matches[place.woeId] = Array();
- matches[place.woeId].place = place;
- }
- }
- for each (var reference in postResponse.document.referenceList.reference) {
- if (matches[reference.woeIds]) {
- matches[reference.woeIds].reference = reference;
- } else {
- matches[reference.woeIds] = Array();
- matches[reference.woeIds].reference = reference;
- }
- }
- default xml namespace = "";
-
- var output = <matches></matches>;
-
- for each (var match in matches) {
- var matchXML = <match></match>;
- matchXML.node += match.place;
- matchXML.node += match.reference;
-
- output.node += matchXML;
- }
-
- response.object = output;
-
- }
- ]]>
- </execute>
- </select>
- </bindings>
-
-</table>
Please sign in to comment.
Something went wrong with that request. Please try again.