<?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: Census geocoding API in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951383#M371917</link>
    <description>The only response in the log for the PROC HTTP was&lt;BR /&gt;NOTE: 500 Internal Server Error&lt;BR /&gt;&lt;BR /&gt;I continue to experiment with the parameters</description>
    <pubDate>Wed, 20 Nov 2024 18:19:55 GMT</pubDate>
    <dc:creator>Jim_Cooper_hmsa</dc:creator>
    <dc:date>2024-11-20T18:19:55Z</dc:date>
    <item>
      <title>Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951286#M371889</link>
      <description>&lt;P&gt;I am attempting to create a SAS PROC HTTP query of the Census geocoding API for batch geocoding.&amp;nbsp; I have been able to get the test API for a single address, but not the batch file processing example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* Geocode Single Address;&lt;BR /&gt;proc http &lt;BR /&gt;url='&lt;A href="https://geocoding.geo.census.gov/geocoder/geographies/address?street=1600+Pennsylvania+Ave&amp;amp;city=Washington&amp;amp;state=DC&amp;amp;benchmark=Public_AR_Current&amp;amp;vintage=Current_Current&amp;amp;layers=10&amp;amp;format=json" target="_blank"&gt;https://geocoding.geo.census.gov/geocoder/geographies/address?street=1600+Pennsylvania+Ave&amp;amp;city=Washington&amp;amp;state=DC&amp;amp;benchmark=Public_AR_Current&amp;amp;vintage=Current_Current&amp;amp;layers=10&amp;amp;format=json&lt;/A&gt;' &lt;BR /&gt;in=address&lt;BR /&gt;out=geocode;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;filename address '//queens.org/FILESHARES/csfs10/CORE01/Core/Geocode/PatientAddresses.csv';&lt;BR /&gt;filename geocode '//queens.org/FILESHARES/csfs10/CORE01/Core/Geocode/PatientGeocode.json';&lt;/P&gt;
&lt;P&gt;* Batch geocode up to 10,000 addresses in CSV file format;&lt;BR /&gt;proc http &lt;BR /&gt;url='&lt;A href="https://geocoding.geo.census.gov/geocoder/geographies/addressbatch" target="_blank"&gt;https://geocoding.geo.census.gov/geocoder/geographies/addressbatch&lt;/A&gt;'&lt;BR /&gt;in=address&lt;BR /&gt;out=geocode;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 01:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951286#M371889</guid>
      <dc:creator>Jim_Cooper_hmsa</dc:creator>
      <dc:date>2024-11-20T01:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951299#M371894</link>
      <description>&lt;P&gt;What does the LOG show for the batch attempt?&lt;/P&gt;
&lt;P&gt;Did you try a "batch" with just one address before attempting 10,000?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951299#M371894</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-20T08:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951383#M371917</link>
      <description>The only response in the log for the PROC HTTP was&lt;BR /&gt;NOTE: 500 Internal Server Error&lt;BR /&gt;&lt;BR /&gt;I continue to experiment with the parameters</description>
      <pubDate>Wed, 20 Nov 2024 18:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951383#M371917</guid>
      <dc:creator>Jim_Cooper_hmsa</dc:creator>
      <dc:date>2024-11-20T18:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951388#M371919</link>
      <description>The revised log using the DEBUG Level=1 option.  I am using the Census geocode API website to construct the code;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.html" target="_blank"&gt;https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.html&lt;/A&gt;&lt;BR /&gt;73         proc http&lt;BR /&gt;74              url="&lt;A href="https://geocoding.geo.census.gov/geocoder/geographies/addressbatch" target="_blank"&gt;https://geocoding.geo.census.gov/geocoder/geographies/addressbatch&lt;/A&gt;"&lt;BR /&gt;75              in=address&lt;BR /&gt;76              out=geocode;&lt;BR /&gt;77              debug level=1;&lt;BR /&gt;78         run;&lt;BR /&gt; &amp;gt; POST /geocoder/geographies/addressbatch HTTP/1.1&lt;BR /&gt;&amp;gt; User-Agent: SAS/9&lt;BR /&gt;&amp;gt; Host: geocoding.geo.census.gov&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt; Connection: Keep-Alive&lt;BR /&gt;&amp;gt; Content-Length: 4617&lt;BR /&gt;&amp;gt; Content-Type: application/x-www-form-urlencoded&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 500&lt;BR /&gt; &amp;lt; Date: Wed, 20 Nov 2024 20:06:07 GMT&lt;BR /&gt;&amp;lt; Content-Type: text/html;charset=UTF-8&lt;BR /&gt;&amp;lt; Connection: keep-alive&lt;BR /&gt;&amp;lt; Content-Language: en-US&lt;BR /&gt;&amp;lt; Vary: Origin&lt;BR /&gt;&amp;lt; Strict-Transport-Security: max-age=31536000&lt;BR /&gt;&amp;lt; Set-Cookie:&lt;BR /&gt; TS0193e6a1=01283c52a4a4057dae8e2db5c21fd7f5424ca51b75d0807321cf40a8e8c4a6c6ef6d05efdcc30bf3cba57546af422e11772eae5e31; Path=/;&lt;BR /&gt; Domain=.geocoding.geo.census.gov; Secure; HttpOnly;&lt;BR /&gt; &amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt;&lt;BR /&gt; NOTE: 500 Internal Server Error&lt;BR /&gt;NOTE: PROCEDURE HTTP used (Total process time):&lt;BR /&gt;       real time           0.21 seconds&lt;BR /&gt;       cpu time            0.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Nov 2024 20:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/951388#M371919</guid>
      <dc:creator>Jim_Cooper_hmsa</dc:creator>
      <dc:date>2024-11-20T20:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/952107#M372131</link>
      <description>&lt;P&gt;I emailed the Census Geocoding Support Service and received this response:&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Hi Jim,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;The batch request needs to be sent as multipart/form-data. We aren't sure how to do this in SAS, but hopefully there are examples or documentation you can refer to on how to format the request as multipart/form-data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;The example batch file provided on the website is a comma delimited (.csv) file with no header or trailer records.&amp;nbsp; I'm reviewing the multipart/form-data posts as a possible solution.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/952107#M372131</guid>
      <dc:creator>Jim_Cooper_hmsa</dc:creator>
      <dc:date>2024-11-27T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Census geocoding API</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/952145#M372142</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1597"&gt;@Jim_Cooper_hmsa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you end up finding the solution independent of responses to your SAS community topic, I for one would appreciate seeing the solution.&amp;nbsp; No harm in marking one's own response as a solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 23:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Census-geocoding-API/m-p/952145#M372142</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-11-28T23:15:26Z</dc:date>
    </item>
  </channel>
</rss>

