title: "ValueError: Must be a coordinate pair or Point" in python for lat and lon
body: <p>The following code is from the package geopy for python (<a href="https://geopy.readthedocs.org/en/1.10.0/" rel="nofollow noreferrer">https://geopy.readthedocs.org/en/1.10.0/</a>):</p>
  
  <pre><code>from geopy.geocoders import Nominatim
  geolocator = Nominatim()
  location = geolocator.reverse("52.509669, 13.376294")
  print(location.address)
  &gt;&gt;&gt;Potsdamer Platz, Mitte, Berlin, 10117, Deutschland, European Union
  </code></pre>
  
  <p>It takes as input a lat and lon and returns the address. However in my code I have recieved a lat and lon of an image using the flikcr API as follows</p>
  
  <pre><code>photo_list = flickr.photos.search(api_key=api_key, accuracy = 15, has_geo=1, per_page = 100, extras = 'tags, url_s')
  </code></pre>
  
  <p>I then want to do the following:</p>
  
  <pre><code>for photo in photo_list[0]:
      photo_location = flickr.photos_geo_getLocation(photo_id=photo.attrib['id'])
      lat = photo_location[0][0].attrib['latitude']
      lon = photo_location[0][0].attrib['longitude']
  
      geolocator = Nominatim()
      location = geolocator.reverse(lat, lon)
      print(location.address)
      &gt;&gt;&gt;Potsdamer Platz, Mitte, Berlin, 10117, Deutschland, European Union
  </code></pre>
  
  <p>The lat and lon are being obtained fine. If I try to print them each time the print perfectly. Also I have I have imported geopy and everything relevant at the top of my program. However I am getting the error:</p>
  
  <blockquote>
    <p>ValueError: Must be a coordinate pair or Point. </p>
  </blockquote>
  
  <p>I am new to Python so I would really appreciate any help! How would I be able to input the lat and lon successfully each time. </p>