GNSS data to OSM format processor and track finder
Namespaces | Functions
refactor_functions.py File Reference

Namespaces

 refactor_functions
 Functions created with the goal to refactor the code, make it more readable and understandable.
 

Functions

def json_file_dumper (variable_name, filepath)
 Function takes the name of a variable that is needed to be saved and saves it to the filepath location. More...
 
def json_file_loader (filepath)
 Function looks for the file located on given filepath and returns the found data. More...
 
def load_input_file (input_file_path)
 Function reads the input_file_path as csv, searching for latitudes and longitudes, zips them together, gets rid of NaNs and returns coordinates. More...
 
def load_dependencies ()
 Purpose of this function is to load basemap dependencies. More...
 
def get_input_crossroad_representation (coords_input, nodes_map_crossroad, basemap_crossroads)
 This functions' purpose is to provide crossroad representation in nodes format as well as OSM format. More...
 
def get_input_fine_representation (basemap_without_points, nodes_input_crossroad, coords_input)
 This functions' purpose is to provide fine representation in nodes format as well as OSM format. More...
 
def track_identification_dependencies (coords_input, nodes_input_fine)
 Here all the data previously acquisited are restructured to provide what will be needed for the track finding algorithms. More...
 
def save_files (files_dict, parent_path)
 Saves all files in the dictionary to a folder given by the input argument parent_path. More...
 
def delete_files (files_dict, parent_path)
 Opposite funtionality when compared to save_files function. More...
 
def get_basemap_track (basemap_input_fine, nodes_track)
 Returns an OSM format file which contains only nodes that are part of nodes_track. More...
 
def get_basemap_tracks (basemap_in, nodes_1, nodes_2)
 Returns get_basemap_track output for 2 input node tracks. More...
 
def verification_nodes (script_output_nodes, nodes_map_crossroad, basemap_crossroads, basemap_without_points)
 Function tests the trackfinding method. More...