title: Get a business' name with Google Maps API
body: <p>Inverse to most location querying efforts, I am actually trying to identify a business' name with Google APIs by either its address or Google <code>placeid</code>. e.g., when I search for  <code>1625 Wilshire Blvd, Los Angeles, CA 90017</code> on googlemaps.com, its results show me that "at this location" is "McDonald's".</p>
  
  <p>However, when making the API call with the following URL, the name comes up as the street address, when what I want is to identify the business' name at that location ("McDonald's"): </p>
  
  <p><code>https://maps.googleapis.com/maps/api/place/textsearch/json?query=1625%20Wilshire%20Blvd,%20Los%20Angeles,%20CA%2090017&amp;sensor=false&amp;key=&lt;api_key&gt;</code></p>
  
  <p><strong>EDIT:</strong> Using the exact call that @xomena recommended, I'm still having the same issue. I've run it both R and Python and the result I’m getting is the street address in place of the name with both ways.</p>
  
  <p><strong>R Code</strong>:</p>
  
  <pre><code>packages &lt;- c("RJSONIO")
  new_packages &lt;- packages[!(packages %in% installed.packages()[,"Package"])]
  if(length(new_packages)) install.packages(new_packages)
  
  library(RJSONIO)
  </code></pre>
  
  <p><code>fromJSON(URLencode(paste("https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=1625%20Wilshire%20Blvd%2C%20Los%20Angeles%2C%20CA%2090017&amp;inputtype=textquery&amp;fields=formatted_address,name,place_id&amp;key=", api_key, sep = "")))</code></p>
  
  <p><strong>R Output</strong>:</p>
  
  <pre><code>$candidates
  $candidates[[1]]
                                 formatted_address 
  "1625 Wilshire Blvd, Los Angeles, CA 90017, USA" 
                                              name 
                              "1625 Wilshire Blvd" 
                                          place_id 
                     "ChIJ18AW_aPHwoARXRm-cgcRcDs" 
  
  
  $debug_log
  $debug_log$line
  list()
  
  
  $status
  [1] "OK"
  </code></pre>
  
  <p><strong>Python Code</strong>:</p>
  
  <pre><code>import requests
  </code></pre>
  
  <p><code>requests.get("https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=1625%20Wilshire%20Blvd%2C%20Los%20Angeles%2C%20CA%2090017&amp;inputtype=textquery&amp;fields=formatted_address,name,place_id&amp;key="+API_KEY).json()</code></p>
  
  <p><strong>Python Output</strong>:</p>
  
  <p><code>{'candidates': [{'formatted_address': '1625 Wilshire Blvd, Los Angeles, CA 90017, USA',
     'name': '1625 Wilshire Blvd',
     'place_id': 'ChIJ18AW_aPHwoARXRm-cgcRcDs'}],
   'debug_log': {'line': []},
   'status': 'OK'}</code></p>