forked from robertlove/CakePHP-Geocoder-Component
/
README
35 lines (23 loc) · 857 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Geocoder Component
A CakePHP component for performing forward or reverse geocoding operations using
The Google Geocoding Web Service
INSTALLATION
------------
Copy geocoder.php to your app/controllers/components directory
CONFIGURATION
---------------
In your controller, add the Geocoder Component to your $components array
public $components = array('Geocoder');
USAGE
---------------
The following example shows how to geocode an address from within a controller
action:
$this->Geocoder->address = '1 Pitt Street Sydney NSW Australia 2000';
$this->Geocoder->geocode();
debug($this->Geocoder);
exit;
LICENSE
-------
The files in this archive are released under the new BSD license. You can find a
copy of this license in LICENSE.
[![endorse](http://api.coderwall.com/mcloide/endorsecount.png)](http://coderwall.com/mcloide)