Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed parameter to lng

  • Loading branch information...
commit c23d6423e97c8aa43d916649672f3e6a0be0f5ff 1 parent 8d9678d
Daniel Pett portableant authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 ukpostcode/ukpostcode.distance.xml
7 ukpostcode/ukpostcode.distance.xml
View
@@ -2,10 +2,9 @@
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
<meta>
<author>Daniel Pett</author>
- <description>Get postcodes at a specified distance from lat/lon or postcode</description>
+ <description>Get postcodes at a specified distance from latlon point or postcode</description>
<documentationURL>http://www.uk-postcodes.com/api.php</documentationURL>
- <sampleQuery description="Search for postcodes 2miles from a point">select * from {table} where lat='51.5181' and lon='-0.127115' and format='xml' and distance='2';</sampleQuery>
- <sampleQuery description="Search for postcodes 2miles from WC1B 3DG">select * from {table} where postcode='WC1B3DG' and format='xml' and distance='2';</sampleQuery>
+ <sampleQuery description="Search for postcodes 2miles from a point">select * from {table} where lat='51.5181' and lng='-0.127115' and format='xml' and distance='2';</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
@@ -14,7 +13,7 @@
</urls>
<inputs>
<key id="lat" type="xs:string" paramType="query" required="false" />
- <key id="lon" type="xs:string" paramType="query" required="false" />
+ <key id="lng" type="xs:string" paramType="query" required="false" />
<key id="format" type="xs:string" paramType="query" required="true" />
<key id="postcode" type="xs:string" paramType="query" required="false" />
<key id="distance" type="xs:string" paramType="query" required="true" />
Please sign in to comment.
Something went wrong with that request. Please try again.