title: ValueError: Must be a coordinate pair or Point
body: <p>i want to pass my latitude and langitude values to my flask route but everytime i am getting this error: <strong>ValueError: Must be a coordinate pair or Point</strong></p>
  
  <p>however i have tried this and its working fine:</p>
  
  <pre><code>from flask import Flask, render_template 
  from geopy.geocoders import Nominatim
  
  
  app = Flask(__name__)
  
  geolocator = Nominatim()
  
  
  
  @app.route('/location')
  def lang_and_lat():
      location = geolocator.reverse("21.0943, 81.0337")
  
      address = location.address
  
      return render_template('ip.html', address=address)
  
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  
  <pre><code>from flask import Flask, render_template 
  from geopy.geocoders import Nominatim
  
  
  app = Flask(__name__)
  
  geolocator = Nominatim()
  
  
  
  @app.route('/location/&lt;lat&gt;/&lt;lang&gt;')
  def lang_and_lat(lat, lang):
      location = geolocator.reverse(lat, lang)
  
      address = location.address
  
      return render_template('ip.html', address=address)
  
  
  if __name__ == '__main__':
      app.run(debug=True)
  
  </code></pre>