Bakers,

I've just added a Geocode plugin to my github repository (based mostly 
on the work by Nate at 
http://bakery.cakephp.org/articles/view/geocoding-in-cakephp and 
lababidi at 
http://bakery.cakephp.org/articles/view/adding-a-google-map-to-your-app):

Check it out at (geocode plugin):

http://github.com/mariano/syrup/tree/master

I haven't added any documentation to it yet, since I'm still working on 
it, but you can start to get an idea from its test cases:

http://tinyurl.com/kn4vqb

As you can see:

    * Default unit is Kilometers, but any distance calculation can be
      done on the given units (kilometers, miles, feet, inches, nautical
      miles)
    * You can attach the Geocodable behavior to any model where you
      store some sort of address information
    * If you use the built in Geocode.Address model, you can take
      advantage of the built in 'near' find type, which allows you to:
          o $this->Address->find('near', array('address' => '1209 La
            Brad Lane, Tampa, FL'));
          o Paginate on the 'near' find type (check test cases)
          o Specify distance and resulting distance on any given unit:
            $this->Address->find('near', array('address' => '1209 La
            Brad Lane, Tampa, FL', 'distance' => 5, 'unit' => 'm'));
    * When you use 'near' (custom find type) or near method you can sort
      by proximity (near, or further away)

Since I have yet to add documentation those of you who like to be up to 
the challenge and start using this stuff please go ahead. Do report any 
issues you may find on github.

-- 

PS: *Help me Get Married*: Chip in my Wedding Fund 
<http://weddingfund.chipin.com> :)

-MI
*Coding Ninja* @ CRICAVA Technologies <http://www.cricava.com>
 
*Blog*:         http://www.marianoiglesias.com.ar
*Twitter*:      http://twitter.com/mgiglesias
*LinkedIn*:     http://www.linkedin.com/pub/2/483/B94
*Facebook*:     http://www.facebook.com/mariano.iglesias


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to