Flask route giving 404 with floating point numbers in the URL
Flask route giving 404 with floating point numbers in the URL Question: I have the following route definition in my Flask app’s server.py: @app.route(‘/nearby/<float:lat>/<float:long>’) def nearby(lat, long): for truck in db.trucks.find({‘loc’: {‘$near’: [lat, long]}}).limit(5): if truck.has_key(‘loc’): del truck[‘loc’] return json.dumps(trucks) But when I go to http://localhost:5000/nearby/37.7909470419234/-122.398633589404, I get a 404. The other routes work fine, …