def getprecision(distance, surface='road'):
    """
    get the precision for rendering, based on distance
    
    precision might be different for time vs. age group adjusted time
    
    :param distance: distance (miles)
    :param surface: 'road', 'track' or 'trail', default 'road'
    :rtype: (timeprecision,agtimeprecision)
    """
    meterspermile = 1609
    if surface == 'track':
        timeprecision = 1
        agtimeprecision = 1
    else:
        timeprecision = 0
        agtimeprecision = 0
    return timeprecision, agtimeprecision
