globals module¶
- ziptimezone.globals.get_loaded_zip_data()[source]¶
Accesses the globally loaded ZIP code data.
- Returns:
The dictionary containing loaded ZIP code data.
- Return type:
dict
- ziptimezone.globals.load_zip_data(file_path)[source]¶
Loads ZIP code data from a CSV file into a global dictionary if it is not already loaded.
- Parameters:
file_path (str) – The full path to the CSV file containing ZIP code data.
- Returns:
A dictionary where the keys are ZIP codes and the values are dictionaries with latitude and longitude.
- Return type:
dict