<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307118#M10783</link>
    <description>&lt;P&gt;Do you need to find the closest street address? ... or would the closest city or zipcode be good enough?&lt;/P&gt;
&lt;P&gt;(if the closest city or zipcode is good enough, then I could write some SAS code to do that)&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 13:19:57 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2016-10-25T13:19:57Z</dc:date>
    <item>
      <title>Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197535#M7366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to take a set of latitude and longitude coordinates and reverse geocode them to get an address?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 18:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197535#M7366</guid>
      <dc:creator>DSouza</dc:creator>
      <dc:date>2015-07-07T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197536#M7367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if SAS can do it, but there are tools online that can do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geocoder.ca/" title="http://geocoder.ca/"&gt;geocoder.ca: geocoding for North America - USA and Canada&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably write an algorithm to pass data to the service via the API - $1 per 400 lookups appears to be the rate. &lt;/P&gt;&lt;P&gt;Probably need to investigate the TOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197536#M7367</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-07T21:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197537#M7368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS cannot do Reverse Geocoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some commercial places but there are a few free ones.&amp;nbsp; I can't say how good they are.&amp;nbsp; You might Google "Reverse Geocoding".&amp;nbsp; A few more that show up are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://geoservices.tamu.edu/Services/ReverseGeocoding/" title="https://geoservices.tamu.edu/Services/ReverseGeocoding/"&gt; Free Online Reverse Geocoding&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geonames.org/maps/us-reverse-geocoder.html" style="font-size: 10pt; line-height: 1.5em;" title="http://www.geonames.org/maps/us-reverse-geocoder.html"&gt;GeoNames reverse address geocoding&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 14:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197537#M7368</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-07-08T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197538#M7369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example using the google geocoding service.&amp;nbsp; It can be adapted for reverse geocoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://gist.github.com/FriedEgg/eed6c08344acc85ee5fc" title="https://gist.github.com/FriedEgg/eed6c08344acc85ee5fc"&gt;An interface for using Google Geocode API with PROC GROOVY in SAS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/FriedEgg/e82bde6e96dba8244b5e" title="https://gist.github.com/FriedEgg/e82bde6e96dba8244b5e"&gt;Another implementation of using Google geocoding API in SAS, this time using PROC FCMP &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 14:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197538#M7369</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-07-08T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197539#M7370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Google prohibits using a service (such as geocoding) without displaying the contents/results on a Google Map.&amp;nbsp; See 10.1.1.h of the Google Maps Terms of Use: &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/maps/terms"&gt;https://developers.google.com/maps/terms&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/maps/terms" title="https://developers.google.com/maps/terms"&gt;https://developers.google.com/maps/terms&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 15:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197539#M7370</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-07-08T15:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197540#M7371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very important note &lt;A __default_attr="297066" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A direct link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.google.com/maps/terms#section_10_12" title="https://developers.google.com/maps/terms#section_10_12"&gt;Google Maps/Google Earth APIs Terms of Service&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 15:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/197540#M7371</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-07-08T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/299394#M10575</link>
      <description>&lt;P&gt;After much research I landed on a service by TA&amp;amp;M University. You can process batches. I assume this is why you are looking for a SAS solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://geoservices.tamu.edu/Services/Geocode/" target="_blank"&gt;http://geoservices.tamu.edu/Services/Geocode/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you found a SAS solution. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 20:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/299394#M10575</guid>
      <dc:creator>bpfields</dc:creator>
      <dc:date>2016-09-19T20:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307118#M10783</link>
      <description>&lt;P&gt;Do you need to find the closest street address? ... or would the closest city or zipcode be good enough?&lt;/P&gt;
&lt;P&gt;(if the closest city or zipcode is good enough, then I could write some SAS code to do that)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307118#M10783</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-10-25T13:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307130#M10784</link>
      <description>Zip Code is fine.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Oct 2016 14:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307130#M10784</guid>
      <dc:creator>bpfields</dc:creator>
      <dc:date>2016-10-25T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to Reverse Geocode? Take Lat/Long and convert to an address?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307142#M10787</link>
      <description>&lt;P&gt;Ok - then here's a way to do that, using brute force (and the sashelp.zipcode dataset).&lt;/P&gt;
&lt;P&gt;You might refine this to make it a little less code, and more efficient - but I like to take things 1 step at a time, to make it simpler to understand. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data foo;&lt;BR /&gt;input customer_number lat long;&lt;BR /&gt;datalines;&lt;BR /&gt;1 35.8227817 -78.755733&lt;BR /&gt;2 38.8976398 -77.036627&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Create all possible pairs of my data, and zipcode lat/longs */&lt;BR /&gt;proc sql;&lt;BR /&gt;create table pairs as&lt;BR /&gt;select unique foo.*, zipcode.zip, zipcode.city, zipcode.x, zipcode.y&lt;BR /&gt;from foo, sashelp.zipcode&lt;BR /&gt;where zipcode.x^=. and zipcode.y^=.;&lt;BR /&gt;quit; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* calculate distance between each customer and each zipcode centroid */&lt;BR /&gt;data pairs; set pairs;&lt;BR /&gt;Distance = geodist(lat, long, y, x, 'DM');&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* find the closest zipcode to each customer */&lt;BR /&gt;proc sort data=pairs out=pairs;&lt;BR /&gt;by customer_number distance;&lt;BR /&gt;run;&lt;BR /&gt;data pairs; set pairs (keep = customer_number lat long zip city);&lt;BR /&gt;by customer_number;&lt;BR /&gt;label zip='Closest Zipcode';&lt;BR /&gt;if first.customer_number then output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5480i9DE0CF8B83FFC26E/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="results.png" title="results.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 14:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-there-a-way-to-Reverse-Geocode-Take-Lat-Long-and-convert-to/m-p/307142#M10787</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-10-25T14:30:42Z</dc:date>
    </item>
  </channel>
</rss>

