def flip(trip,horizontal=True,vertical=False):
    """
    Flips GPS coordinates of a trip along specified axis
    (horizontal or vertical).
    """
    
    if horizontal:
        trip[:,0]= -trip[:,0]
     
    return trip