<?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 Flagging multiple locations within 100 miles from US Mexico border. in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/247810#M8993</link>
    <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I have a list of locations (both US and Mexico locations) that I would like to create a flag if they are within 100 miles from the US Mexico border.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Question 1: Having the addresses of these locations,&amp;nbsp;is there a way to pull all the latitude longitude from my list of locations from Google Maps into SAS?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Question 2: From here, how would I obtain all the longitude latitude locations for the US Mexico border?&amp;nbsp;Or is there a more&amp;nbsp;efficient way of doing this than&amp;nbsp;grabbing the &lt;SPAN&gt;longitudes latitudes of the border?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I would greatly appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Melanie &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 18:11:01 GMT</pubDate>
    <dc:creator>mcrum1</dc:creator>
    <dc:date>2016-02-03T18:11:01Z</dc:date>
    <item>
      <title>Flagging multiple locations within 100 miles from US Mexico border.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/247810#M8993</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I have a list of locations (both US and Mexico locations) that I would like to create a flag if they are within 100 miles from the US Mexico border.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Question 1: Having the addresses of these locations,&amp;nbsp;is there a way to pull all the latitude longitude from my list of locations from Google Maps into SAS?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15.0pt; margin: 0in 0in .0001pt .5in;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Question 2: From here, how would I obtain all the longitude latitude locations for the US Mexico border?&amp;nbsp;Or is there a more&amp;nbsp;efficient way of doing this than&amp;nbsp;grabbing the &lt;SPAN&gt;longitudes latitudes of the border?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I would greatly appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Melanie &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 18:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/247810#M8993</guid>
      <dc:creator>mcrum1</dc:creator>
      <dc:date>2016-02-03T18:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging multiple locations within 100 miles from US Mexico border.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/248031#M9002</link>
      <description>&lt;P&gt;1. I am pretty sure that Google's terms of use do not allow for this (&lt;A href="https://developers.google.com/maps/terms#section_10_12" target="_blank"&gt;https://developers.google.com/maps/terms#section_10_12&lt;/A&gt;). &amp;nbsp;There are other webservices that you could use instead. &amp;nbsp;If you license SAS/Graph, you can also use PROC GEOCODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. You can use the datasets provided by SAS/Graph for US/Mexico maps. &amp;nbsp;This example here (&lt;A href="http://support.sas.com/kb/44/428.html)" target="_blank"&gt;http://support.sas.com/kb/44/428.html)&lt;/A&gt; will give you a method to have the US/Mexico border (approx.).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/248031#M9002</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2016-02-04T16:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging multiple locations within 100 miles from US Mexico border.</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/249029#M9042</link>
      <description>&lt;P&gt;Assuming that your map has somewhat 'dense' points along the border, you could first identify all the map points along the border (by looking for lat/long points that are in both the US map polygon and the Mexico map polygon ... assuming the map is 'topologically correct'), and then you can create a dataset containing every possible combination of map border lat/long points to every city lat/long point, and then use the geodist() function to calculate the distances between all those pairs ... and then take the smallest distance for each city and assume that's how close that city is to the border (at its closest point), and then check to see if that distance is &amp;lt;= 100 miles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bit involved, therefore I've created a little example to demonstrate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd84/cities_near_border.htm" target="_blank"&gt;http://robslink.com/SAS/democd84/cities_near_border.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd84/cities_near_border_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd84/cities_near_border_info.htm&lt;/A&gt;&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/1814iA868F27DA3A1CD3F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="cities_near_border.png" title="cities_near_border.png" /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12272i22C2CB43A57E5CC4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="cities_near_border.png" title="cities_near_border.png" /&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Flagging-multiple-locations-within-100-miles-from-US-Mexico/m-p/249029#M9042</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2016-02-09T19:07:28Z</dc:date>
    </item>
  </channel>
</rss>

