Geo Data Source

class GeoDataSource(city_id, data_source_id)

This abstract class is used only for data sources that represent the place of departure and arrival without GPS coordinates. For example, the Minneapolis-related data they contain are stored in reference to the Centerline MPLS system. In order to correctly interpret these data we use this class that normalizes them and stores them in a shapefile

Parameters
  • city_id (str) – City name. The name also serves to determine the timezone to which the city belongs

  • data_source_id (str) – Data source from which the information is taken. This allows us to have multiple data sources associated with the same city (for example from different operators)

load_raw()

Abstract method that opens the file describing the geometry of the city

Returns

nothing

normalise()

Abstract method that normalizes the data and stores the created shapefiles

Returns

nothing

check_create_path(path)