(lat, lon)
Updates your location to the given float inputs
    Note: Requires a passport / Tinder Plus
Updates your location to the given float inputs
    Note: Requires a passport / Tinder Plus
Updates your location to the given float inputs Note : Requires a passport / Tinder Plus
def update_location(lat, lon):
    '''
    Updates your location to the given float inputs
    Note: Requires a passport / Tinder Plus
    '''
    try:
        url = config.host + '/passport/user/travel'
        r = requests.post(url, headers=headers, data=json.dumps({"lat": lat, "lon": lon}))
        return r.json()
    except requests.exceptions.RequestException as e:
        print("Something went wrong. Could not update your location:", e)
def update_location ( lat , lon ) : try : url = config . host + '/passport/user/travel' r = requests . post ( url , headers = headers , data = json . dumps ( { "lat" : lat , "lon" : lon } ) ) return r . json ( ) except requests . exceptions . RequestException as e : print ( "Something went wrong. Could not update your location:" , e )