<?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 Changes</title>
  <id>tag:opensoul.org,2009:/2007/9/13/graticule-can-failover/changes</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://opensoul.org/2007/9/13/graticule-can-failover/changes.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
  <updated>2007-09-13T00:35:44Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:365:2</id>
    <published>2007-09-13T00:57:34Z</published>
    <updated>2007-09-13T00:35:44Z</updated>
    <link href="http://opensoul.org/2007/9/13/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Graticule can failover</title>
<content type="html">&lt;p&gt;&lt;a href=&quot;http://graticule.rubyforge.org/&quot;&gt;Graticule&lt;/a&gt; has a new geocoder that simply calls other geocoders in succession until it gets a result.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;geocoder = Graticule.service(:multi).new(
  Graticule.service(:google).new(&amp;quot;api_key&amp;quot;),
  Graticule.service(:yahoo).new(&amp;quot;api_key&amp;quot;),
)
geocoder.locate '49423' # &amp;lt;= tries geocoders in succession&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;This can also be used in &lt;a href=&quot;http://graticule.rubyforge.org/plugin.html&quot;&gt;acts_as_geocodable&lt;/a&gt; by simply setting &lt;code&gt;Geocode.geocoder&lt;/code&gt; to the new multi-geocoder.  See the &lt;a href=&quot;http://graticule.rubyforge.org/graticule/classes/Graticule/Geocoder/Multi.html&quot;&gt;&lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; docs&lt;/a&gt; for more information.&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href=&quot;http://www.mattking.org/2007-04/graticule-failover-geocoding.html&quot;&gt;Matt King&lt;/a&gt; for some ideas on the implementation and &lt;a href=&quot;http://stream.btucker.org/&quot;&gt;Ben Tucker&lt;/a&gt; for nudging me to implement it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2007-09-13:364:1</id>
    <updated>2007-09-13T00:34:55Z</updated>
    <link href="http://opensoul.org/2009/3/10/graticule-can-failover" rel="alternate" type="text/html"/>
    <title>Graticule can failover</title>
<content type="html">&lt;p&gt;&lt;a href=&quot;http://graticule.rubyforge.org/&quot;&gt;Graticule&lt;/a&gt; has a new geocoder that simply calls other geocoders in succession until it gets a result.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;geocoder = Graticule.service(:multi).new(
  Graticule.service(:google).new(&amp;quot;api_key&amp;quot;),
  Graticule.service(:yahoo).new(&amp;quot;api_key&amp;quot;),
)
geocoder.locate '49423' # &amp;lt;= tries geocoders in succession&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;This can also be used in &lt;a href=&quot;http://graticule.rubyforge.org/plugin.html&quot;&gt;acts_as_geocodable&lt;/a&gt; by simply setting &lt;code&gt;Geocode.geocoder&lt;/code&gt; to the new multi-geocoder.  See the &#8220;API docs&#8221;: http://graticule.rubyforge.org/graticule/classes/Graticule/Geocoder/Multi.html for more information.&lt;/p&gt;


	&lt;p&gt;Thanks to &lt;a href=&quot;http://www.mattking.org/2007-04/graticule-failover-geocoding.html&quot;&gt;Matt King&lt;/a&gt; for some ideas on the implementation and &lt;a href=&quot;http://stream.btucker.org/&quot;&gt;Ben Tucker&lt;/a&gt; for nudging me to implement it.&lt;/p&gt;</content>  </entry>
</feed>
