- Southampton, England
CakePHP 2 Yahoo Placefinder Datasource
tldr: Fork it on GitHub.
Need the coordinates of a location anywhere on Earth? Or how about the place name of any coordinates you provide? The Yahoo PlaceFinder datasource provides a familiar CakePhp interface for interacting with the Yahoo API.
Typical usage looks like this:
<?php
$results = $this->Location->find('all', array(
'conditions' => array(
'location' => $this->request->data['Location']['location'],
'flags' => 'JE',
'gflags' => 'ACR',
)
));
?>
It's worth reading Yahoo's docs for the request parameters.