Added a try: except: round distance query filter to take account of when the distance may be a string for 'all'