<?xml version="1.0" encoding="utf-8" ?>
<ignite version="1.0" source="telize.com">
  <func name="geoip" endpoint="http://www.telize.com/geoip/{ip}" method="GET" format="JSON">
    <description>This function returns the geo-location information for a given IP address.</description>
    <example>
      =Ignite("telize.com","geoip","region","8.8.8.8")
    </example>
    <inputs>
      <input name="ip" type ="input1" process="replace"/>
    </inputs>
    <outputs>
      <output name="ip" path="ip"/>
      <output name="longitude" path="longitude"/>
      <output name="latitude" path="latitude"/>
      <output name="asn" path="asn"/>
      <output name="offset" path="offset"/>
      <output name="area_code" path="area_code"/>
      <output name="continent_code" path="continent_code"/>
      <output name="dma_code" path="dma_code"/>
      <output name="city" path="city"/>
      <output name="timezone" path="timezone"/>
      <output name="region" path="region"/>
      <output name="country_code" path="country_code"/>
      <output name="isp" path="isp"/>
      <output name="postal_code" path="postal_code"/>
      <output name="country" path="country"/>
      <output name="country_code3" path="country_code3"/>
      <output name="region_code" path="region_code"/>
    </outputs>
  </func>
  <examples>
    <![CDATA[
<table border='1' class='ExcelTable2007'>
<tr><th class='heading'>&nbsp;</th><th>A</th><th>B (Forumla)</th><th>C (Output) </th></tr>
<tr><td class='heading' >1</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","longitude",A1)</td>
<td>-122.0838</td>
</tr>
<tr><td class='heading' >2</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","latitude",A2)</td>
<td>37.386</td>
</tr>
<tr><td class='heading' >3</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","asn",A3)</td>
<td>AS15169</td>
</tr>
<tr><td class='heading' >4</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","offset",A4)</td>
<td>-7</td>
</tr>
<tr><td class='heading' >5</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","area_code",A5)</td>
<td>0</td>
</tr>
<tr><td class='heading' >6</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","continent_code",A6)</td>
<td>NA</td>
</tr>
<tr><td class='heading' >7</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","dma_code",A7)</td>
<td>0</td>
</tr>
<tr><td class='heading' >8</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","city",A8)</td>
<td>Mountain View</td>
</tr>
<tr><td class='heading' >9</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","timezone",A9)</td>
<td>America/Los_Angeles</td>
</tr>
<tr><td class='heading' >10</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","region",A10)</td>
<td>California</td>
</tr>
<tr><td class='heading' >11</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","country_code",A11)</td>
<td>US</td>
</tr>
<tr><td class='heading' >12</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","isp",A12)</td>
<td>Google Inc.</td>
</tr>
<tr><td class='heading' >13</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","postal_code",A13)</td>
<td>94035</td>
</tr>
<tr><td class='heading' >14</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","country",A14)</td>
<td>United States</td>
</tr>
<tr><td class='heading' >15</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","country_code3",A15)</td>
<td>USA</td>
</tr>
<tr><td class='heading' >16</td>
<td>8.8.8.8</td>
<td>=Ignite("telize.com","geoip","region_code",A16)</td>
<td>CA</td>
</tr>

</table>
      ]]>
  </examples>
</ignite>
