<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Graticule can failover Comments</title>
  <id>tag:opensoul.org,2008:/2007/9/13/graticule-can-failover/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://opensoul.org/2007/9/13/graticule-can-failover/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
  <updated>2008-10-29T20:00:44Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Eliot</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:3675:9232</id>
    <published>2008-10-29T20:00:44Z</published>
    <updated>2008-10-29T20:00:44Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Comment on 'Graticule can failover' by Eliot</title>
<content type="html">&lt;p&gt;Hi Brandon, just want to say how great acts_as_geocodable and graticule are &#8211; the source has more or less taught me geocoding, which is just fantastic, so sincerely thank you.&lt;/p&gt;


	&lt;p&gt;I understand from the acts_as_geocodable page that contributions are welcome, so I&#8217;m making some minor changes I&#8217;m using on a project.&lt;/p&gt;


	&lt;p&gt;These changes will be on github in case they are of use to anyone else (at time of writing I&#8217;ve not committed these):
http://github.com/eliotsykes/acts_as_geocodable_extra/tree/master&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Brandon</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:3675:5395</id>
    <published>2008-03-04T04:08:12Z</published>
    <updated>2008-03-04T04:08:12Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Comment on 'Graticule can failover' by Brandon</title>
<content type="html">&lt;p&gt;nathan:&lt;/p&gt;


	&lt;p&gt;This is actually a limitation in ActiveRecord with using :select (which graticule uses to perform distance calculations) and :include in a find.  I believe there are some workarounds somewhere, but I haven&#8217;t looked into them.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>nathan</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:3675:5361</id>
    <published>2008-02-26T17:51:43Z</published>
    <updated>2008-02-26T17:51:43Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Comment on 'Graticule can failover' by nathan</title>
<content type="html">&lt;p&gt;Ok so i modified Graticule gem by adding a new geocoder(http://plasmicpeach.com/articles/2007/09/12/uk-geocoding-with-google-and-graticule) so i can use UK google service.  acts_as_geocode works fine with it but i&#8217;m trying to find a way to utilise :include with :origin and :order =&amp;gt; distance.  Duplex on railsforum suggested&lt;/p&gt;


&lt;pre&gt; location = Location.find :all, :origin =&amp;gt; postal_code,
                             :order =&amp;gt; &quot;distance asc&quot;,
                             :include =&amp;gt; :listings, #eager-loading for performance
                             :conditions =&amp;gt; &quot;state = 'published'&quot; 
    list = location.listings &lt;/pre&gt;

	&lt;p&gt;but it cuases &lt;span class=&quot;caps&quot;&gt;SQL&lt;/span&gt; errors about distance.&lt;/p&gt;


	&lt;p&gt;anyone got any ideas?&lt;/p&gt;


	&lt;p&gt;great plugin but unless i can find someway of using it with has_many belongs_to relationships then it&#8217;s not going to be suitable for my project.&lt;/p&gt;


	&lt;p&gt;cheers
Nathan&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Andrew Selder</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:3675:3996</id>
    <published>2007-10-19T19:13:50Z</published>
    <updated>2007-10-19T19:13:50Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Comment on 'Graticule can failover' by Andrew Selder</title>
<content type="html">&lt;p&gt;Very nice.&lt;/p&gt;


	&lt;p&gt;I&#8217;d love to see MapQuest added as a geocoding service&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Matt King</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:3675:3705</id>
    <published>2007-09-15T16:22:25Z</published>
    <updated>2007-09-15T16:22:25Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Comment on 'Graticule can failover' by Matt King</title>
<content type="html">&lt;p&gt;This is awesome! I&#8217;ll be updating the gem and trying it out on my development box. I was going to mention adding in precision checking but I see that&#8217;s already in there. :-)&lt;/p&gt;</content>  </entry>
</feed>
