Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed parameter to lng

  • Loading branch information...
commit c23d6423e97c8aa43d916649672f3e6a0be0f5ff 1 parent 8d9678d
Daniel Pett portableant authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 ukpostcode/ukpostcode.distance.xml
7 ukpostcode/ukpostcode.distance.xml
@@ -2,10 +2,9 @@
2 2 <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
3 3 <meta>
4 4 <author>Daniel Pett</author>
5   - <description>Get postcodes at a specified distance from lat/lon or postcode</description>
  5 + <description>Get postcodes at a specified distance from latlon point or postcode</description>
6 6 <documentationURL>http://www.uk-postcodes.com/api.php</documentationURL>
7   - <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>
8   - <sampleQuery description="Search for postcodes 2miles from WC1B 3DG">select * from {table} where postcode='WC1B3DG' and format='xml' and distance='2';</sampleQuery>
  7 + <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>
9 8 </meta>
10 9 <bindings>
11 10 <select itemPath="" produces="XML">
@@ -14,7 +13,7 @@
14 13 </urls>
15 14 <inputs>
16 15 <key id="lat" type="xs:string" paramType="query" required="false" />
17   - <key id="lon" type="xs:string" paramType="query" required="false" />
  16 + <key id="lng" type="xs:string" paramType="query" required="false" />
18 17 <key id="format" type="xs:string" paramType="query" required="true" />
19 18 <key id="postcode" type="xs:string" paramType="query" required="false" />
20 19 <key id="distance" type="xs:string" paramType="query" required="true" />

0 comments on commit c23d642

Please sign in to comment.
Something went wrong with that request. Please try again.