<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Google Geocoding in SSIS</title>
	<atom:link href="http://rickcaminiti.com/misc/google-geocoding-ssis/feed/" rel="self" type="application/rss+xml" />
	<link>http://rickcaminiti.com/misc/google-geocoding-ssis/</link>
	<description>Me, Myself, and IT</description>
	<lastBuildDate>Wed, 12 Oct 2011 18:51:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Mike D</title>
		<link>http://rickcaminiti.com/misc/google-geocoding-ssis/comment-page-1/#comment-308</link>
		<dc:creator>Mike D</dc:creator>
		<pubDate>Wed, 08 Sep 2010 21:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://rickcaminiti.com/?p=337#comment-308</guid>
		<description>Thanks for putting this together. I used this and it worked great. I changed the script so that I am only coding address that return an 8 or higher accuracy code:

Public Shared Function GetCoordinates(ByVal address As String) As Coordinate
            Dim client As WebClient = New WebClient()
            Dim uri As Uri = GetGeoCodeUri(address)
            Dim geoCodeInfo As String()
            Try
                geoCodeInfo = client.DownloadString(uri).Split(&quot;,&quot;)
                If Convert.ToInt16(geoCodeInfo(1)) = 8 Then
                    Return New Coordinate(Convert.ToDouble(geoCodeInfo(2)), Convert.ToDouble(geoCodeInfo(3)))
                Else
                    Return New Coordinate(0.0, 0.0)
                End If
            Catch ex As Exception
                Return New Coordinate(0.0, 0.0)
            End Try
End Function

Also I used an OLEDB Command to update the records instead of the OLEDB Destination because I could only get that to insert.</description>
		<content:encoded><![CDATA[<p>Thanks for putting this together. I used this and it worked great. I changed the script so that I am only coding address that return an 8 or higher accuracy code:</p>
<p>Public Shared Function GetCoordinates(ByVal address As String) As Coordinate<br />
            Dim client As WebClient = New WebClient()<br />
            Dim uri As Uri = GetGeoCodeUri(address)<br />
            Dim geoCodeInfo As String()<br />
            Try<br />
                geoCodeInfo = client.DownloadString(uri).Split(&#8220;,&#8221;)<br />
                If Convert.ToInt16(geoCodeInfo(1)) = 8 Then<br />
                    Return New Coordinate(Convert.ToDouble(geoCodeInfo(2)), Convert.ToDouble(geoCodeInfo(3)))<br />
                Else<br />
                    Return New Coordinate(0.0, 0.0)<br />
                End If<br />
            Catch ex As Exception<br />
                Return New Coordinate(0.0, 0.0)<br />
            End Try<br />
End Function</p>
<p>Also I used an OLEDB Command to update the records instead of the OLEDB Destination because I could only get that to insert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NothingMan</title>
		<link>http://rickcaminiti.com/misc/google-geocoding-ssis/comment-page-1/#comment-293</link>
		<dc:creator>NothingMan</dc:creator>
		<pubDate>Fri, 29 Jan 2010 22:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://rickcaminiti.com/?p=337#comment-293</guid>
		<description>Hmmm, that didn&#039;t happen for me.  Something must be converting it to an integer either in the code or in the database.  It&#039;s almost impossible to debug script code in SSIS, but you can pull that code out and put it in a standalone .Net console app and see if it&#039;s being rounded in the script code, but you should start by checking the datatypes in the table.</description>
		<content:encoded><![CDATA[<p>Hmmm, that didn&#8217;t happen for me.  Something must be converting it to an integer either in the code or in the database.  It&#8217;s almost impossible to debug script code in SSIS, but you can pull that code out and put it in a standalone .Net console app and see if it&#8217;s being rounded in the script code, but you should start by checking the datatypes in the table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CJ</title>
		<link>http://rickcaminiti.com/misc/google-geocoding-ssis/comment-page-1/#comment-289</link>
		<dc:creator>CJ</dc:creator>
		<pubDate>Mon, 23 Nov 2009 01:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://rickcaminiti.com/?p=337#comment-289</guid>
		<description>What did you have to do to ensure the coordinates do not lose precision in the database?  When I run this, it works fine with the exception of truncating anything past the decimal. 

i.e., 39.0000000 instead of 39.123456, etc...

Thanks!</description>
		<content:encoded><![CDATA[<p>What did you have to do to ensure the coordinates do not lose precision in the database?  When I run this, it works fine with the exception of truncating anything past the decimal. </p>
<p>i.e., 39.0000000 instead of 39.123456, etc&#8230;</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

