| 1 | <?php |
||
| 5 | class Geocoder |
||
| 6 | { |
||
| 7 | const API_URL = 'http://maps.google.com/maps/api/geocode'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param $address |
||
| 11 | * @param string $outputFormat |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 6 | public function geocode($address, $outputFormat = 'json') |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param $address |
||
| 24 | * |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | 3 | public function getLatLng($address) |
|
| 46 | } |
||
| 47 |