def divide_coordinates(coordinates):
    """
    Divide coordinates into about 50 pieces for following use.
    :param coordinates: coordinates contains gps data.
    :return: divided coordinates
    """
    interval = len(coordinates) // 50 + 1
    divided_coordinates = []
    for i in range(0, len(coordinates), interval):
        divided_coordinates.append(coordinates[i:i + interval])
    return divided_coordinates
