Yahoo PlaceFinder DataSource for CakePhp 2

December 14th, 2011 § 0 comments

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:

$results = $this->Location->find('all', array(
  'conditions' => array(
    'location' => $this->request->data['Location']['location'],
    'flags' => 'JE',
    'gflags' => 'ACR',
  )
));

It’s worth checking out Yahoo’s docs for the various request parameters.

The first version is over on GitHub! Get it here.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

What's this?

You are currently reading Yahoo PlaceFinder DataSource for CakePhp 2 at Blog of Moz Morris Freelance Web Developer.

meta

Social Widgets powered by AB-WebLog.com.