postcodeanywhere 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +18 -0
- data/VERSION +1 -1
- data/postcodeanywhere.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Description goes here.
|
|
4
4
|
|
|
5
|
+
This is an interface to postcode lookup service provided by postcodeanywhere.co.uk
|
|
6
|
+
|
|
7
|
+
you can use it as
|
|
8
|
+
|
|
9
|
+
1. gem install postcodeanywhere
|
|
10
|
+
|
|
11
|
+
2. In your environment.rb add the following lines
|
|
12
|
+
|
|
13
|
+
PostcodeAnywhere::Request.account_code = "YOUR_ACCOUNT_CODE"
|
|
14
|
+
PostcodeAnywhere::Request.license_code = "YOUR_LICENSE_CODE"
|
|
15
|
+
|
|
16
|
+
3. Then in your model or controller you can do something like
|
|
17
|
+
a. To get a list of addresses
|
|
18
|
+
PostcodeAnywhere::PostcodeSearch.new(:country_code=> "GB", :postcode => "sw19 1ne").lookup
|
|
19
|
+
|
|
20
|
+
b. Then, to get a particular detailed address (to fill out your address form fields)
|
|
21
|
+
PostcodeAnywhere::PostcodeSearch.new(:country_code=> "GB", :fetch_id => "24077031.00").fetch
|
|
22
|
+
|
|
5
23
|
== Note on Patches/Pull Requests
|
|
6
24
|
|
|
7
25
|
* Fork the project.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.7.0
|
data/postcodeanywhere.gemspec
CHANGED