def generate_coordinates(data_dict):
    """
    This function preprocess gps data to make it useful for future use.
    :param data_dict: input gps data from dataManager
    :return: coordinates[[lng, lat], [], ...]
    """
    gps_data = data_dict['gps']
    gps_lat = gps_data['lat']
    gps_lng = gps_data['lng']
    coordinates = []
    for i in range(0, len(gps_lat)):
        coordinates.append([gps_lng[i], gps_lat[i]])
    return coordinates
