Esempio n. 1
0
    def get_depots(self) -> dict:
        depots = {}
        for depot in self.data['depots']:
            new_depot = Depot()
            new_depot.point_id = depot.get('point_id')
            new_depot.location_x = depot.get('location_x')
            new_depot.location_y = depot.get('location_y')
            depots[new_depot.point_id] = new_depot

        return depots