<?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: Geocode only one address in arcpy. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735528#M56963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. Since this is a single address, I would have preferred optimize the execution time of this geocoding operations avoiding file manipulation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 11:58:09 GMT</pubDate>
    <dc:creator>AbdelOuedraogo</dc:creator>
    <dc:date>2013-04-18T11:58:09Z</dc:date>
    <item>
      <title>Geocode only one address in arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735526#M56961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i would know if existing a method in arcpy to geocode just one address. There is the function&amp;nbsp; arcpy.GeocodeAddresses_geocoding but i want something not work with address table and not create a feature class result. A method that you can pass it the locator and the address and it will give you the position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An idea? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 08:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735526#M56961</guid>
      <dc:creator>AbdelOuedraogo</dc:creator>
      <dc:date>2013-04-16T08:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geocode only one address in arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735527#M56962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With a geocoding service it would be possible to send a request to the service using the address and return the result without ever creating a table or feature class. Otherwise I think the simplest thing to do would be to just create and in_memory table and write the address to a field and then write the output to an in_memory feature class. The in_memory input and output would just be temporary in the script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 16:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735527#M56962</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2013-04-16T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geocode only one address in arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735528#M56963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. Since this is a single address, I would have preferred optimize the execution time of this geocoding operations avoiding file manipulation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 11:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735528#M56963</guid>
      <dc:creator>AbdelOuedraogo</dc:creator>
      <dc:date>2013-04-18T11:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Geocode only one address in arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735529#M56964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Send a request to Google's geocoding service and you can get back a single address. There is a limit of 50,000 in a day. Since it has to go off across the internet it may not be faster than using in_memory featureclasses (that is not a real file). Did you miss the clever trick suggested by Chris Fox using &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;in_memory&lt;/STRONG&gt;&lt;SPAN&gt; as a virtual disk drive?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume that if you want a fast response from one address you are trying to geocode a lot of them? If so, take out the loop and geocode them all in one featureclass that will be really fast. You should expect 1 million per hour if done locally on real files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a way to use Google:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# geopy example
# http://code.google.com/p/geopy/wiki/GettingStarted

from geopy import geocoders
apikey = "your_api_key_adfvaklfmuyrdghbndfzcvazdfzcvsfgsfvsfgsdfbvsfgsghsdfgd"

g = geocoders.Google(apikey)&amp;nbsp; 
place, (lat, lng) = g.geocode("380 New York Street,Redlands,California,USA")&amp;nbsp; 
print "%s: %.5f, %.5f" % (place, lat, lng)
 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geocode-only-one-address-in-arcpy/m-p/735529#M56964</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-12T07:21:40Z</dc:date>
    </item>
  </channel>
</rss>

