Browse files

defined table to wrap google's geocoding api, which does reverse geoc…

…oding nicely.
  • Loading branch information...
1 parent a9e3fc0 commit a05773ddc5ce5354df1d001b47f58306f35e8e4b erik committed Oct 3, 2009
Showing with 28 additions and 0 deletions.
  1. +28 −0 google/google.geocoding.xml
View
28 google/google.geocoding.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Erik Eldridge</author>
+ <documentationURL>http://code.google.com/apis/maps/documentation/geocoding</documentationURL>
+
+ <!-- nice reverse geocoding -->
+ <sampleQuery>select * from {table} where q="40.714224,-73.961452"</sampleQuery>
+
+ </meta>
+ <bindings>
+ <select itemPath="" produces="JSON">
+ <urls>
+ <url>http://maps.google.com/maps/geo</url>
+ </urls>
+ <inputs>
+ <key id='q' type='xs:string' paramType='query' required="true" />
+ <key id='key' type='xs:string' default="your_key" paramType='variable' />
+ <key id='sensor' type='xs:string' default="false" paramType='variable' />
+ <key id='output' type='xs:string' default="json" paramType='variable' />
+ <key id='oe' type='xs:string' default="utf8" paramType='variable' />
+ <key id='ll' type='xs:string' paramType='variable' />
+ <key id='spn' type='xs:string' paramType='variable' />
+ <key id='gl' type='xs:string' paramType='variable' />
+ </inputs>
+ </select>
+ </bindings>
+</table>

0 comments on commit a05773d

Please sign in to comment.