├── debian ├── compat ├── navitia-kraken.install ├── navitia-cities.install ├── mock-kraken.install ├── navitia-tyr.install ├── navitia-monitor-kraken.install ├── navitia-common.install ├── navitia-ed.install └── python_control.py ├── docker ├── templates │ ├── alembic.ini │ ├── tyr_instance.ini │ └── ed_migration.ini ├── libkeepalive-0.3 │ ├── VERSION │ ├── AUTHORS │ ├── ChangeLog │ ├── FEEDBACK │ ├── test │ │ └── Makefile │ ├── Makefile │ └── src │ │ └── Makefile ├── run_tyr_worker.sh ├── run_kraken.sh ├── run_kraken_deb11.sh ├── jormungandr.wsgi ├── run_tyr_web.sh └── debian11 │ ├── Dockerfile-builder-kraken │ ├── instances-configurator.dockerfile │ └── Dockerfile-mock-kraken ├── .dockerignore ├── fixtures └── ed │ ├── ntfs_dst │ ├── prices.csv │ ├── geometries.txt │ ├── comment_links.txt │ ├── comments.txt │ ├── frequencies.txt │ ├── od_fares.csv │ ├── contributors.txt │ ├── calendar.txt │ ├── grid_periods.txt │ ├── admin_stations.txt │ ├── datasets.txt │ ├── companies.txt │ ├── trip_properties.txt │ ├── routes.txt │ ├── trips.txt │ ├── equipments.txt │ ├── commercial_modes.txt │ ├── grid_calendars.txt │ ├── feed_infos.txt │ ├── physical_modes.txt │ └── lines.txt │ ├── gtfs_sans_stops │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── agency.txt │ ├── calendar.txt │ ├── routes.txt │ └── trips.txt │ ├── gtfs_sans_trips │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── agency.txt │ ├── calendar.txt │ └── routes.txt │ ├── ntfs_v5 │ ├── contributors.txt │ ├── line_group_links.txt │ ├── commercial_modes.txt │ ├── physical_modes.txt │ ├── frequencies.txt │ ├── comments.txt │ ├── transfers.txt │ ├── admin_stations.txt │ ├── calendar.txt │ ├── frames.txt │ ├── companies.txt │ ├── line_groups.txt │ ├── networks.txt │ ├── equipments.txt │ ├── routes.txt │ ├── trip_properties.txt │ ├── pathways.txt │ ├── feed_infos.txt │ ├── addresses.txt │ ├── comment_links.txt │ ├── trips.txt │ └── lines.txt │ ├── poi │ ├── poi │ │ ├── projection.txt │ │ └── poi_properties.txt │ └── gtfs_google_example │ │ ├── calendar_dates.txt │ │ ├── shapes.txt │ │ ├── fare_rules.txt │ │ ├── agency.txt │ │ ├── fare_attributes.txt │ │ ├── calendar.txt │ │ ├── routes.txt │ │ ├── frequencies.txt │ │ ├── trips.txt │ │ └── stops.txt │ ├── gtfs_sans_agency │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── calendar.txt │ ├── routes.txt │ └── trips.txt │ ├── gtfs_sans_calendar │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── agency.txt │ ├── routes.txt │ └── trips.txt │ ├── gtfs_sans_routes │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── agency.txt │ ├── calendar.txt │ └── trips.txt │ ├── gtfs_sans_stop_times │ ├── frequencies.txt │ ├── calendar_dates.txt │ ├── agency.txt │ ├── calendar.txt │ ├── routes.txt │ └── trips.txt │ ├── ntfs_with_zonal_odt │ ├── booking_rule_links.txt │ ├── object_codes.txt │ ├── commercial_modes.txt │ ├── booking_rules.txt │ ├── physical_modes.txt │ ├── contributors.txt │ ├── companies.txt │ ├── calendar.txt │ ├── datasets.txt │ ├── equipments.txt │ ├── trip_properties.txt │ ├── networks.txt │ ├── feed_infos.txt │ ├── transfers.txt │ ├── routes.txt │ └── lines.txt │ ├── ntfs │ ├── line_group_links.txt │ ├── frequencies.txt │ ├── physical_modes.txt │ ├── commercial_modes.txt │ ├── transfers.txt │ ├── comments.txt │ ├── contributors.txt │ ├── calendar.txt │ ├── line_groups.txt │ ├── networks.txt │ ├── stop_properties.txt │ ├── admin_stations.txt │ ├── routes.txt │ ├── trip_properties.txt │ ├── companies.txt │ ├── feed_infos.txt │ ├── comment_links.txt │ ├── datasets.txt │ ├── lines.txt │ └── trips.txt │ ├── ntfs_hlp │ ├── calendar_dates.txt │ ├── commercial_modes.txt │ ├── physical_modes.txt │ ├── contributors.txt │ ├── networks.txt │ ├── trip_properties.txt │ ├── companies.txt │ ├── routes.txt │ ├── feed_infos.txt │ ├── lines.txt │ └── trips.txt │ ├── gtfs_google_example │ ├── calendar_dates.txt │ ├── shapes.txt │ ├── fare_rules.txt │ ├── fare_attributes.txt │ ├── agency.txt │ ├── calendar.txt │ ├── routes.txt │ ├── frequencies.txt │ ├── trips.txt │ └── stops.txt │ ├── gtfs_with_feed_info │ ├── calendar_dates.txt │ ├── shapes.txt │ ├── feed_info.txt │ ├── fare_rules.txt │ ├── fare_attributes.txt │ ├── agency.txt │ ├── calendar.txt │ ├── transfers.txt │ ├── routes.txt │ ├── frequencies.txt │ ├── trips.txt │ └── stops.txt │ ├── osm_and_gtfs │ ├── gtfs │ │ ├── calendar_dates.txt │ │ ├── shapes.txt │ │ ├── fare_rules.txt │ │ ├── agency.txt │ │ ├── fare_attributes.txt │ │ ├── calendar.txt │ │ ├── routes.txt │ │ ├── frequencies.txt │ │ ├── trips.txt │ │ └── stops.txt │ └── osm │ │ └── sao-tome-and-principe-latest.osm.pbf │ ├── gtfs │ ├── calendar_dates.txt │ ├── agency.txt │ ├── calendar.txt │ ├── trips.txt │ ├── routes.txt │ └── transfers.txt │ ├── gtfs_line_without_network │ ├── calendar_dates.txt │ ├── shapes.txt │ ├── fare_rules.txt │ ├── fare_attributes.txt │ ├── agency.txt │ ├── calendar.txt │ ├── routes.txt │ ├── frequencies.txt │ ├── trips.txt │ └── stops.txt │ ├── gtfs_revision_201502 │ ├── calendar_dates.txt │ ├── calendar.txt │ ├── agency.txt │ ├── trips.txt │ ├── routes.txt │ ├── transfers.txt │ └── stop_times.txt │ ├── gtfs_google_example_no_dst │ ├── calendar_dates.txt │ ├── shapes.txt │ ├── fare_rules.txt │ ├── agency.txt │ ├── fare_attributes.txt │ ├── calendar.txt │ ├── routes.txt │ ├── frequencies.txt │ ├── trips.txt │ └── stops.txt │ ├── gtfs_google_example_no_calendar │ ├── shapes.txt │ ├── fare_rules.txt │ ├── fare_attributes.txt │ ├── agency.txt │ ├── routes.txt │ ├── frequencies.txt │ ├── trips.txt │ └── stops.txt │ ├── gtfs_with_feed_start_end_date │ ├── trips.txt │ ├── agency.txt │ ├── calendar.txt │ ├── feed_info.txt │ ├── routes.txt │ ├── stop_times.txt │ └── stops.txt │ └── gtfs_slashs │ └── stops.txt ├── source ├── tyr │ ├── tests │ │ ├── fixtures │ │ │ ├── empty_pbf.osm.pbf │ │ │ ├── empty_pbf.osm(1).pbf │ │ │ ├── empty_file_without_extension │ │ │ ├── fusio.zip │ │ │ └── fr.ini │ │ ├── __init__.py │ │ └── tests_default_settings.py │ ├── migrations │ │ ├── README │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 44dab62dfff7_add_shape_on_user.py │ │ │ ├── 5a941f98789c_add_min_taxi.py │ │ │ ├── c5cd5a41def_update_shape_null_string_to_null_postgres.py │ │ │ ├── 18862ea09b6d_add_bss_provider_activation.py │ │ │ ├── 16d8bca1453b_add_taxi_speed.py │ │ │ ├── cf2becf2dc1_add_priority.py │ │ │ ├── 132cbd5a61a4_add_default_to_import_stops.py │ │ │ ├── 38cf24479595_admins_from_cities_db.py │ │ │ ├── 45d7fa0ad882_add_scenario_on_instance.py │ │ │ ├── 4ec9c897fc03_default_user_coord.py │ │ │ ├── 4e80856d6e89_add_car_parking_provider.py │ │ │ ├── 962cfcce76f_block_until_column_added_for_.py │ │ │ ├── 3f620c440544_autocomplete_poi_types.py │ │ │ ├── 9d7151d79dc3_add_config_min_ridesharing.py │ │ │ ├── 06be8f8c0f18_add_api_backends.py │ │ │ ├── c7010efdcf62_add_poi_access_points.py │ │ │ ├── 105823db902c_add_autocomplete_backend.py │ │ │ ├── 4af6f969bfa8_rename_family_type.py │ │ │ ├── b413ec1e3bbc_add_stop_points_nearby_duration.py │ │ │ ├── 6f2635ce00b4_add_max_taxi_duration_to_pt.py │ │ │ ├── 1173ed75e96c_correct_default_value_max_duration.py │ │ │ ├── 1918ed13e84f_arrival_transfer_penalty.py │ │ │ ├── 4fa7f3f529e_add_max_additional_changes.py │ │ │ ├── c3ba234a3b9c_add_on_street_bike_parking_duration.py │ │ │ ├── 483639f1f00_add_max_nb_crowfly_by_mode.py │ │ │ ├── 242138b08c92_realtime_pool_size.py │ │ │ ├── 5127fcffb248_add_asynchronous_ridesharing_mode.py │ │ │ ├── 3131d5bf5570_add_full_sn_geometries_on_instances.py │ │ │ ├── 4d83f15e09b9_night_bus_filter_max_factor_float.py │ │ │ ├── 75681b9c74aa_add_ghost_words.py │ │ │ ├── 2ec1da1552ec_add_dataset_state.py │ │ │ ├── 64854ef94b3_block_until_column_updated_for_date_.py │ │ │ ├── e94705a6f9a1_add_attribute_mobility_scenarios.py │ │ │ ├── 20d8caa23b26_add_language_in_instance.py │ │ │ ├── ca5a0a70a9ba_add_attribute_disruptions_on_poi.py │ │ │ ├── 465a7431358a_add_import_ntfs_to_mimir.py │ │ │ ├── 5ad2dddab995_poi_types_json.py │ │ │ ├── 5423986c3a51_add_app_name_on_keys.py │ │ │ ├── 361f3993960e_import_stops_in_global_autocomplete_.py │ │ │ ├── 214932354af8_private_poi_dataset.py │ │ │ ├── 45b018b3198b_.py │ │ │ ├── 42185d6d93cb_add_type_on_users.py │ │ │ ├── 520d48947e65_successive_physical_mode_to_limit_id.py │ │ │ ├── bd4a1dd22029_add_access_points.py │ │ │ ├── 57ee5581cc30_add_is_open_data.py │ │ │ ├── ab54d9575a99_add_max_waiting.py │ │ │ ├── 502b7c6fd00b_remove_poi_type_table.py │ │ │ ├── d7ff7aea17d9_delete_attribute_asgard_language.py │ │ │ ├── 7f757939ace8_add_places_proximity_radius.py │ │ │ ├── a053ceeccdd9_add_transfer_path.py │ │ │ ├── 162b4fa5836a_add_autocomplete_param_id_in_job.py │ │ │ ├── 0f57c3342d97_add_attribute_additional_parameters.py │ │ │ ├── 3acdde6329db_settings_for_car_no_park.py │ │ │ └── 3fde52b5e132_add_poi_type.py │ ├── Procfile │ ├── requirements_dev.txt │ └── PaysDeLaLoire.ini ├── cities │ ├── alembic │ │ ├── README │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── c2373c7750f_add_index_to_boundary.py │ │ │ └── 1d99ba678e3f_add_constraints.py │ ├── requirements.txt │ └── CMakeLists.txt ├── jormungandr │ ├── jormungandr │ │ ├── street_network │ │ │ └── parking │ │ │ │ └── __init__.py │ │ ├── pytest.ini │ │ ├── jormungandr.wsgi │ │ ├── modules │ │ │ └── example_routing │ │ │ │ ├── static │ │ │ │ └── index.html │ │ │ │ └── templates │ │ │ │ └── index.html │ │ └── jormungandr_settings.py │ ├── Procfile │ ├── tests │ │ ├── serpy_settings.py │ │ └── pytest.ini │ └── requirements_dev.txt ├── monitor │ ├── Procfile │ ├── monitor_kraken │ │ └── default_settings.py │ └── requirements.txt ├── autocomplete │ ├── readme.txt │ └── CMakeLists.txt ├── log_analyzer │ └── requirements.txt ├── tests │ ├── CMakeLists.txt │ └── chaos │ │ ├── chaos_loading.sql.gz │ │ └── readme.md ├── lz4_filter │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt ├── tools │ └── CMakeLists.txt ├── ed │ ├── fare2ed_main.cpp │ └── connectors │ │ └── CMakeLists.txt ├── scripts │ ├── disruption │ │ └── disruption_response.png │ ├── build_protobuf.sh │ ├── CMakeLists.txt │ ├── jormungandr │ ├── settings.sh │ ├── init_db.sh │ └── createinstance.sh ├── cmake_modules │ ├── UsePqxx.cmake │ ├── LoadConfig.cmake │ ├── FindProtoc.cmake │ ├── TestsEnv.cmake │ └── FindGoogleTcmalloc.cmake ├── benchmark │ ├── benchmark_example.csv │ ├── Pipfile │ └── config.py ├── disruption │ ├── tests │ │ └── CMakeLists.txt │ └── CMakeLists.txt ├── position │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt ├── .clang-format ├── equipment │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt ├── proximity_list │ ├── tests │ │ └── CMakeLists.txt │ └── CMakeLists.txt ├── access_point │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt ├── calendar │ ├── tests │ │ └── CMakeLists.txt │ └── CMakeLists.txt ├── sql │ ├── requirements.txt │ ├── CMakeLists.txt │ ├── alembic │ │ ├── script.py.mako │ │ └── versions │ │ │ ├── 25b7f3ace052_type_comments.py │ │ │ ├── 844a9fa86ad2_add_car_speed_on_edges.py │ │ │ ├── 47b663b9defc_remove_global_timezone.py │ │ │ ├── 2e1a3cb6555b_headsign_in_stop_time.py │ │ │ ├── 1faee1d2551a_add_headsign_in_vehiclejourney.py │ │ │ ├── c3da2283d4a_text_color_line.py │ │ │ ├── 14346346596e_add_direction_type_column_in_route_table.py │ │ │ ├── 2c510fae878d_add_calendar_to_navitia_types.py │ │ │ ├── 12660cd87568_main_destination_for_route.py │ │ │ ├── 2d86200bcb93_co2_emission_column_added.py │ │ │ ├── 82749d34a18_frequency_vj.py │ │ │ ├── 2c69b03d20fc_add_skipped_stop_in_stop_time.py │ │ │ ├── 56c1c7a19078_add_visible_parameter.py │ │ │ ├── 46168c7abc89_change_fare_zone_id_to_string.py │ │ │ ├── 59f4456a029_license_and_website_in_contributor.py │ │ │ ├── 1cec3dee6597_feed_info_table_added.py │ │ │ ├── 23dd34bfaeaf_co2_emision_nullable.py │ │ │ ├── 4429fe91ac94_add_poi_and_streetnetwork_source.py │ │ │ ├── 795308e6d7c_add_parameter_parse_pois_from_osm.py │ │ │ ├── 11b1fb5bd523_add_boarding_and_alighting_time_to_stop_.py │ │ │ └── 5812ecbcd76d_shape_in_journey_pattern_point.py │ └── README ├── fare │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt ├── config.cpp.cmake ├── conf.h.cmake ├── time_tables │ └── CMakeLists.txt ├── type │ ├── readme.txt │ └── data_exceptions.cpp ├── ptreferential │ └── CMakeLists.txt ├── eitri │ └── requirements.txt ├── vptranslator │ └── CMakeLists.txt ├── georef │ ├── CMakeLists.txt │ └── tests │ │ └── CMakeLists.txt └── routing │ └── CMakeLists.txt ├── documentation ├── slate │ └── source │ │ ├── CNAME │ │ ├── robots.txt │ │ ├── favicon.ico │ │ ├── images │ │ ├── delay.png │ │ ├── logo.png │ │ ├── crow_fly.png │ │ ├── journeys.png │ │ ├── navbar.png │ │ ├── stay_in.png │ │ ├── additional.png │ │ ├── departures.png │ │ ├── direction.png │ │ ├── isochrons.png │ │ ├── no_service.png │ │ ├── firefox_token.png │ │ ├── free_radius.png │ │ ├── navitia_basic.png │ │ ├── places_nearby.png │ │ ├── search_places.png │ │ ├── line_schedules.png │ │ ├── reduced_service.png │ │ ├── traffic_reports.png │ │ ├── forbidden_example.png │ │ ├── isochrones_example.png │ │ ├── modified_service.png │ │ ├── navitia_playground.png │ │ ├── playground_journey.png │ │ ├── playground_pt_ref.png │ │ ├── terminus_schedules.png │ │ ├── typical_itinerary.png │ │ ├── playground_places_nearby.png │ │ └── stop_vs_terminus_schedules.png │ │ ├── includes │ │ └── timetables.md │ │ └── index.html.md ├── diagrams │ ├── kraken.jpg │ ├── pt_graph.png │ ├── distributed.png │ ├── simple_archi.png │ ├── simple_archi_data_view.png │ ├── Navitia_full_architecture.png │ ├── Navitia_simple_architecture.png │ ├── logo_navitia_horizontal_fd_gris_250px.png │ └── logo_navitia_horizontal_fd_gris_500px.png ├── rfc │ ├── transit_map.png │ └── time_table_graph.png ├── examples │ └── config │ │ ├── Jormungandr.json │ │ └── kraken.ini ├── ntfs │ └── readme.md └── rst │ └── source │ ├── ptref_grammar │ ├── coord.png │ ├── value.png │ ├── around.png │ ├── bin_op.png │ ├── filter.png │ ├── object.png │ ├── selector.png │ ├── attribute.png │ ├── escaped_value.png │ └── within_args.png │ └── filter.rst ├── requirements_pre-commit.txt ├── pyproject.toml ├── sonar-project.properties ├── .flake8 ├── .github └── ISSUE_TEMPLATE │ └── feature_request.md └── .gitignore /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /docker/templates/alembic.ini: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | ./build* 2 | 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/prices.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/VERSION: -------------------------------------------------------------------------------- 1 | 0.3 2 | -------------------------------------------------------------------------------- /source/tyr/tests/fixtures/empty_pbf.osm.pbf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/tyr/tests/fixtures/empty_pbf.osm(1).pbf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /documentation/slate/source/CNAME: -------------------------------------------------------------------------------- 1 | doc.navitia.io 2 | -------------------------------------------------------------------------------- /debian/navitia-kraken.install: -------------------------------------------------------------------------------- 1 | usr/bin/kraken /usr/bin/ 2 | -------------------------------------------------------------------------------- /source/tyr/tests/fixtures/empty_file_without_extension: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/geometries.txt: -------------------------------------------------------------------------------- 1 | geometry_id,geometry_wkt 2 | -------------------------------------------------------------------------------- /source/cities/alembic/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/street_network/parking/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/tyr/migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /documentation/slate/source/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/comment_links.txt: -------------------------------------------------------------------------------- 1 | object_id,object_type,comment_id -------------------------------------------------------------------------------- /requirements_pre-commit.txt: -------------------------------------------------------------------------------- 1 | pre-commit==2.9.2; python_version > '2.7' 2 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/AUTHORS: -------------------------------------------------------------------------------- 1 | Fabio Busatto 2 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/comments.txt: -------------------------------------------------------------------------------- 1 | comment_id,comment_name,comment_type 2 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs -------------------------------------------------------------------------------- /source/monitor/Procfile: -------------------------------------------------------------------------------- 1 | web: FLASK_APP=monitor_kraken/app.py flask run 2 | -------------------------------------------------------------------------------- /debian/navitia-cities.install: -------------------------------------------------------------------------------- 1 | usr/share/navitia/cities 2 | usr/bin/cities /usr/bin 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_trips/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/contributors.txt: -------------------------------------------------------------------------------- 1 | contributor_id,contributor_name 2 | C1,C1 3 | -------------------------------------------------------------------------------- /fixtures/ed/poi/poi/projection.txt: -------------------------------------------------------------------------------- 1 | name;definition 2 | WGS84 (EPSG: 4326);4326 3 | -------------------------------------------------------------------------------- /source/autocomplete/readme.txt: -------------------------------------------------------------------------------- 1 | /** \page autocomplete First Letter 2 | 3 | 4 | */ 5 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_agency/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_calendar/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_routes/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/booking_rule_links.txt: -------------------------------------------------------------------------------- 1 | object_id,object_type,booking_rule_id -------------------------------------------------------------------------------- /fixtures/ed/ntfs/line_group_links.txt: -------------------------------------------------------------------------------- 1 | line_group_id,line_id 2 | lg1,l2 3 | lg1,l3 4 | lg1,l3 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | 12,20201012,1 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/object_codes.txt: -------------------------------------------------------------------------------- 1 | object_type,object_id,object_system,object_code -------------------------------------------------------------------------------- /source/log_analyzer/requirements.txt: -------------------------------------------------------------------------------- 1 | plotly==4.6.0 2 | numpy==1.22.0 3 | sortedcontainers==2.1.0 -------------------------------------------------------------------------------- /source/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(mock-kraken) 2 | add_subdirectory(chaos) 3 | 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20070604,2 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_agency/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_routes/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_trips/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20070604,2 -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/commercial_modes.txt: -------------------------------------------------------------------------------- 1 | commercial_mode_id,commercial_mode_name 2 | Bus,"Bus" 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/line_group_links.txt: -------------------------------------------------------------------------------- 1 | line_group_id,line_id 2 | lg1,l2 3 | lg1,l3 4 | lg1,l3 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/commercial_modes.txt: -------------------------------------------------------------------------------- 1 | commercial_mode_id,commercial_mode_name 2 | Bus,Bus -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20070604,2 -------------------------------------------------------------------------------- /docker/run_tyr_worker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | celery -A tyr.tasks worker -O fair -c $TYR_WORKER_N_PROC 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | 3 | FULLW,20110101,2 4 | 5 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20070604,2 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_calendar/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20110101,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/commercial_modes.txt: -------------------------------------------------------------------------------- 1 | commercial_mode_id,commercial_mode_name 2 | BUS,BUS 3 | 4 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20070604,2 -------------------------------------------------------------------------------- /source/jormungandr/Procfile: -------------------------------------------------------------------------------- 1 | web: FLASK_DEBUG=1 FLASK_APP=jormungandr:app flask run --without-threads 2 | -------------------------------------------------------------------------------- /debian/mock-kraken.install: -------------------------------------------------------------------------------- 1 | usr/bin/departure_board_test /usr/bin/ 2 | usr/bin/main_routing_test /usr/bin/ 3 | -------------------------------------------------------------------------------- /debian/navitia-tyr.install: -------------------------------------------------------------------------------- 1 | usr/lib/python*/dist-packages/tyr 2 | /usr/share/tyr/* 3 | /usr/bin/manage_tyr.py 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/calendar_dates.txt: -------------------------------------------------------------------------------- 1 | service_id,date,exception_type 2 | FULLW,20100604,2 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | trip_5,05:55:00,27:55:00,3600 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/physical_modes.txt: -------------------------------------------------------------------------------- 1 | physical_mode_id,physical_mode_name,co2_emission 2 | BUS,BUS,132 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/booking_rules.txt: -------------------------------------------------------------------------------- 1 | booking_rule_id,name,info_url,phone_number,message,booking_url -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /debian/navitia-monitor-kraken.install: -------------------------------------------------------------------------------- 1 | usr/lib/python*/dist-packages/monitor_kraken 2 | usr/share/monitor_kraken 3 | -------------------------------------------------------------------------------- /documentation/diagrams/kraken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/kraken.jpg -------------------------------------------------------------------------------- /documentation/rfc/transit_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rfc/transit_map.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /fixtures/ed/ntfs/physical_modes.txt: -------------------------------------------------------------------------------- 1 | physical_mode_id,physical_mode_name,co2_emission 2 | BUS,BUS,132 3 | 4 | 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/physical_modes.txt: -------------------------------------------------------------------------------- 1 | physical_mode_id,physical_mode_name,co2_emission 2 | Bus,"Bus",129.7 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | trip_5,05:55:00,27:55:00,3600 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/physical_modes.txt: -------------------------------------------------------------------------------- 1 | physical_mode_id,physical_mode_name,co2_emission 2 | Bus,Bus,92.0 -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /documentation/diagrams/pt_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/pt_graph.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /fixtures/ed/ntfs/commercial_modes.txt: -------------------------------------------------------------------------------- 1 | commercial_mode_id,commercial_mode_name 2 | 3 | 4 | 5 | BUS,BUS 6 | 7 | -------------------------------------------------------------------------------- /source/tyr/tests/fixtures/fusio.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/source/tyr/tests/fixtures/fusio.zip -------------------------------------------------------------------------------- /docker/run_kraken.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | python /monitor_kraken & LD_PRELOAD=/libkeepalive/libkeepalive.so /usr/bin/kraken 4 | -------------------------------------------------------------------------------- /documentation/diagrams/distributed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/distributed.png -------------------------------------------------------------------------------- /documentation/rfc/time_table_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rfc/time_table_graph.png -------------------------------------------------------------------------------- /documentation/slate/source/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/favicon.ico -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/shapes.txt: -------------------------------------------------------------------------------- 1 | shape_id,shape_pt_lat,shape_pt_lon,shape_pt_sequence,shape_dist_traveled -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/feed_info.txt: -------------------------------------------------------------------------------- 1 | "feed_publisher_name","feed_publisher_url" 2 | "ratp","http://ratp.fr" 3 | 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id,to_stop_id,transfer_type,min_transfer_time,real_min_transfer_time,property_id 2 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/od_fares.csv: -------------------------------------------------------------------------------- 1 | Origin ID;Origin name;Origin mode;Destination ID;Destination name;Destination mode;ticket_id -------------------------------------------------------------------------------- /docker/run_kraken_deb11.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | python3 monitor_kraken & LD_PRELOAD=/libkeepalive/libkeepalive.so /usr/bin/kraken 4 | -------------------------------------------------------------------------------- /documentation/diagrams/simple_archi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/simple_archi.png -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/contributors.txt: -------------------------------------------------------------------------------- 1 | contributor_id,contributor_name,contributor_website,contributor_license 2 | SCF,"SNCF","","" -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/contributors.txt: -------------------------------------------------------------------------------- 1 | contributor_id,contributor_name,contributor_license,contributor_website 2 | C1,C1,, -------------------------------------------------------------------------------- /source/lz4_filter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Add tests 2 | if(NOT SKIP_TESTS) 3 | add_subdirectory(tests) 4 | endif(NOT SKIP_TESTS) 5 | -------------------------------------------------------------------------------- /source/tests/chaos/chaos_loading.sql.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/source/tests/chaos/chaos_loading.sql.gz -------------------------------------------------------------------------------- /debian/navitia-common.install: -------------------------------------------------------------------------------- 1 | usr/lib/python*/dist-packages/navitiacommon 2 | usr/share/navitiacommon/* usr/share/navitiacommon 3 | 4 | -------------------------------------------------------------------------------- /documentation/examples/config/Jormungandr.json: -------------------------------------------------------------------------------- 1 | { 2 | "key": "some_region", 3 | "zmq_socket": "ipc:///tmp/default_kraken" 4 | } 5 | -------------------------------------------------------------------------------- /documentation/slate/source/images/delay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/delay.png -------------------------------------------------------------------------------- /documentation/slate/source/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/logo.png -------------------------------------------------------------------------------- /fixtures/ed/ntfs/comments.txt: -------------------------------------------------------------------------------- 1 | comment_id,comment_name,comment_type 2 | bobette,"test comment",ODT 3 | bob,"bob is in the kitchen", 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/contributors.txt: -------------------------------------------------------------------------------- 1 | contributor_id,contributor_name,contributor_website,contributor_license 2 | SAR,"STAR","","" 3 | -------------------------------------------------------------------------------- /source/tools/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(dumpsn dumpsn.cpp) 2 | target_link_libraries(dumpsn data ${Boost_PROGRAM_OPTIONS_LIBRARY}) 3 | -------------------------------------------------------------------------------- /documentation/ntfs/readme.md: -------------------------------------------------------------------------------- 1 | NTFS specifications have been moved to their own repository: https://github.com/hove-io/ntfs-specification 2 | -------------------------------------------------------------------------------- /documentation/slate/source/images/crow_fly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/crow_fly.png -------------------------------------------------------------------------------- /documentation/slate/source/images/journeys.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/journeys.png -------------------------------------------------------------------------------- /documentation/slate/source/images/navbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/navbar.png -------------------------------------------------------------------------------- /documentation/slate/source/images/stay_in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/stay_in.png -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/comments.txt: -------------------------------------------------------------------------------- 1 | comment_id,comment_name,comment_typ 2 | bobette,"test comment",ODT 3 | bob,"bob is in the kitchen", 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id,to_stop_id,min_transfer_time,real_min_transfer_time,equipment_id 2 | SA:A,SA:B,10,15,EQ1 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/companies.txt: -------------------------------------------------------------------------------- 1 | company_id,company_name,company_address,company_url,company_mail,company_phone 2 | C1,TEST,,,, -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/coord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/coord.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/value.png -------------------------------------------------------------------------------- /documentation/slate/source/images/additional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/additional.png -------------------------------------------------------------------------------- /documentation/slate/source/images/departures.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/departures.png -------------------------------------------------------------------------------- /documentation/slate/source/images/direction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/direction.png -------------------------------------------------------------------------------- /documentation/slate/source/images/isochrons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/isochrons.png -------------------------------------------------------------------------------- /documentation/slate/source/images/no_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/no_service.png -------------------------------------------------------------------------------- /source/jormungandr/tests/serpy_settings.py: -------------------------------------------------------------------------------- 1 | USE_SERPY = True 2 | ZMQ_DEFAULT_SOCKET_TYPE = 'transient' 3 | 4 | JOURNEYS_PREV_NEXT_LINKS_S = 1 5 | -------------------------------------------------------------------------------- /documentation/diagrams/simple_archi_data_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/simple_archi_data_view.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/around.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/around.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/bin_op.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/bin_op.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/filter.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/object.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/object.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/selector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/selector.png -------------------------------------------------------------------------------- /documentation/slate/source/images/firefox_token.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/firefox_token.png -------------------------------------------------------------------------------- /documentation/slate/source/images/free_radius.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/free_radius.png -------------------------------------------------------------------------------- /documentation/slate/source/images/navitia_basic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/navitia_basic.png -------------------------------------------------------------------------------- /documentation/slate/source/images/places_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/places_nearby.png -------------------------------------------------------------------------------- /documentation/slate/source/images/search_places.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/search_places.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_calendar/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_routes/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_trips/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /fixtures/ed/ntfs/contributors.txt: -------------------------------------------------------------------------------- 1 | contributor_id,contributor_name,contributor_website,contributor_license 2 | C1,C1,http://www.hove.com,LICENSE 3 | -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /source/ed/fare2ed_main.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "fare2ed.h" 3 | 4 | int main(int argc, const char* argv[]) { 5 | return ed::fare2ed(argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /source/scripts/disruption/disruption_response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/source/scripts/disruption/disruption_response.png -------------------------------------------------------------------------------- /source/tyr/Procfile: -------------------------------------------------------------------------------- 1 | web: FLASK_APP=tyr:app FLASK_DEBUG=1 flask run 2 | worker: celery worker -A tyr.tasks 3 | scheduler: celery beat -A tyr.tasks 4 | -------------------------------------------------------------------------------- /documentation/diagrams/Navitia_full_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/Navitia_full_architecture.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/attribute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/attribute.png -------------------------------------------------------------------------------- /documentation/slate/source/images/line_schedules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/line_schedules.png -------------------------------------------------------------------------------- /documentation/slate/source/images/reduced_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/reduced_service.png -------------------------------------------------------------------------------- /documentation/slate/source/images/traffic_reports.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/traffic_reports.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /documentation/diagrams/Navitia_simple_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/Navitia_simple_architecture.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/escaped_value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/escaped_value.png -------------------------------------------------------------------------------- /documentation/rst/source/ptref_grammar/within_args.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/rst/source/ptref_grammar/within_args.png -------------------------------------------------------------------------------- /documentation/slate/source/images/forbidden_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/forbidden_example.png -------------------------------------------------------------------------------- /documentation/slate/source/images/isochrones_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/isochrones_example.png -------------------------------------------------------------------------------- /documentation/slate/source/images/modified_service.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/modified_service.png -------------------------------------------------------------------------------- /documentation/slate/source/images/navitia_playground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/navitia_playground.png -------------------------------------------------------------------------------- /documentation/slate/source/images/playground_journey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/playground_journey.png -------------------------------------------------------------------------------- /documentation/slate/source/images/playground_pt_ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/playground_pt_ref.png -------------------------------------------------------------------------------- /documentation/slate/source/images/terminus_schedules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/terminus_schedules.png -------------------------------------------------------------------------------- /documentation/slate/source/images/typical_itinerary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/typical_itinerary.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | 1,1,1,1,1,1,0,0,20150325,20150826 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | 347,0,0,0,0,0,1,1,20180324,20180627 -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /source/monitor/monitor_kraken/default_settings.py: -------------------------------------------------------------------------------- 1 | KRAKEN_DIR = '/srv/kraken/' 2 | DEBUG = True 3 | # timeout for the call to kraken in ms 4 | TIMEOUT = 10000 5 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/fare_rules.txt: -------------------------------------------------------------------------------- 1 | fare_id,route_id,origin_id,destination_id,contains_id 2 | p,AB,,, 3 | p,STBA,,, 4 | p,BFC,,, 5 | a,AAMV,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com, Africa/Abidjan 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/admin_stations.txt: -------------------------------------------------------------------------------- 1 | admin_id,admin_name,station_id,station_name 2 | admin:A,"admin_name_A_that_is_not_read",A,"station_name_A_that_is_not_read" 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | 1,1,1,1,1,1,0,0,20150325,20150826 3 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/fare_attributes.txt: -------------------------------------------------------------------------------- 1 | fare_id,price,currency_type,payment_method,transfers,transfer_duration 2 | p,1.25,USD,0,0, 3 | a,5.25,USD,0,0, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/grid_periods.txt: -------------------------------------------------------------------------------- 1 | grid_calendar_id,start_date,end_date 2 | REG_LaV,20150223,20150531 3 | REG_S,20150223,20150531 4 | REG_DJF,20150223,20150531 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | S1,1,1,1,1,1,0,0,20240916,20240925 -------------------------------------------------------------------------------- /source/cities/requirements.txt: -------------------------------------------------------------------------------- 1 | GeoAlchemy2==0.2.4 2 | Jinja2==2.11.3 3 | Mako==0.9.1 4 | MarkupSafe==0.23 5 | SQLAlchemy==1.3.3 6 | Shapely==1.3.0 7 | alembic==1.0.11 8 | -------------------------------------------------------------------------------- /source/cmake_modules/UsePqxx.cmake: -------------------------------------------------------------------------------- 1 | # Pqxx 2 | find_path(PQXX_INCLUDE_DIR pqxx/pqxx) 3 | find_library(PQXX_LIB pqxx) 4 | 5 | include_directories("${PQXX_INCLUDE_DIR}") 6 | -------------------------------------------------------------------------------- /documentation/slate/source/images/playground_places_nearby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/playground_places_nearby.png -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/agency.txt: -------------------------------------------------------------------------------- 1 | agency_id,agency_name,agency_url,agency_timezone 2 | DTA,Demo Transit Authority,http://google.com,America/Los_Angeles 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/admin_stations.txt: -------------------------------------------------------------------------------- 1 | admin_id,admin_name,stop_id,stop_name 2 | admin:A,"admin_name_A_that_is_not_read",SCF:SA:SAOCE87976902,"stop_name_A_that_is_not_read" 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/frames.txt: -------------------------------------------------------------------------------- 1 | frame_id,contributor_id,frame_start_date,frame_end_date,frame_type,frame_desc,frame_system 2 | d1,C1,20150826,20150926,0,dataset_test,obiti 3 | -------------------------------------------------------------------------------- /documentation/diagrams/logo_navitia_horizontal_fd_gris_250px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/logo_navitia_horizontal_fd_gris_250px.png -------------------------------------------------------------------------------- /documentation/diagrams/logo_navitia_horizontal_fd_gris_500px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/diagrams/logo_navitia_horizontal_fd_gris_500px.png -------------------------------------------------------------------------------- /documentation/slate/source/images/stop_vs_terminus_schedules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/documentation/slate/source/images/stop_vs_terminus_schedules.png -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/osm/sao-tome-and-principe-latest.osm.pbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hove-io/navitia/HEAD/fixtures/ed/osm_and_gtfs/osm/sao-tome-and-principe-latest.osm.pbf -------------------------------------------------------------------------------- /fixtures/ed/gtfs/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | "","ACME","http://acme.io","Europe/Paris" 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20110131 3 | 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20100101,20101226 3 | -------------------------------------------------------------------------------- /source/jormungandr/tests/pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | addopts = --doctest-modules 3 | python_files=*tests*.py 4 | python_classes=Test 5 | python_functions=*test* 6 | junit_family = xunit2 7 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/feed_info.txt: -------------------------------------------------------------------------------- 1 | "feed_publisher_name","feed_publisher_url","feed_start_date","feed_end_date" 2 | "ratp","http://test.fr","20100115","20101226" 3 | 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/companies.txt: -------------------------------------------------------------------------------- 1 | company_id,company_name,company_address_name,company_address_number,company_address_type,company_url,company_mail,company_phone,company_fax,contributor_id 2 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_slashs/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url 2 | 141581,16058601,"Siebengewald, Gochsedijk\Centrum",51.648438,6.108465,0,stoparea:42204,,,, 3 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/agency.txt: -------------------------------------------------------------------------------- 1 | "agency_id","agency_name","agency_url","agency_timezone" 2 | "ratp","RATP","http://ratp.fr","Europe/Paris" 3 | "aaa","ACME","http://acme.io","Europe/Paris" 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,,10,Airport - Bullfrog,,3,,, 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/line_groups.txt: -------------------------------------------------------------------------------- 1 | line_group_id,line_group_name,main_line_id 2 | lg1,"B lines group",l2 3 | lg2,"Bn line only group",l3 4 | lg3,"Unknown group",unknownlineidtotestifitiscorrectlyignored 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/networks.txt: -------------------------------------------------------------------------------- 1 | network_id,network_name,network_url,network_timezone,network_lang,network_phone,network_sort 2 | ligneflexible,"ligne flixible",http://ligneflexible.com,Europe/Paris,fr,, 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/line_groups.txt: -------------------------------------------------------------------------------- 1 | line_group_id,line_group_name,main_line_id 2 | lg1,"B lines group",l2 3 | lg2,"Bn line only group",l3 4 | lg3,"Unknown group",unknownlineidtotestifitiscorrectlyignored 5 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/datasets.txt: -------------------------------------------------------------------------------- 1 | dataset_id,contributor_id,dataset_start_date,dataset_end_date,dataset_type,dataset_extrapolation,dataset_desc,dataset_system 2 | dataset,C1,20240916,20241230,,0,, -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | addopts = --doctest-modules 3 | norecursedirs = .venv migrations 4 | python_functions=*test* 5 | python_files=*test*.py 6 | junit_family = xunit2 7 | -------------------------------------------------------------------------------- /source/tyr/tests/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | if not 'TYR_CONFIG_FILE' in os.environ: 4 | os.environ['TYR_CONFIG_FILE'] = os.path.dirname(os.path.realpath(__file__)) + '/tests_default_settings.py' 5 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | 4 | 5 | WE,0,0,0,0,0,1,1,20110101,20111231 6 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20070101,20101231 3 | WE,0,0,0,0,0,1,1,20070101,20101231 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | WE,0,0,0,0,0,1,1,20110101,20111231 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_trips/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | WE,0,0,0,0,0,1,1,20110101,20111231 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20070101,20101231 3 | WE,0,0,0,0,0,1,1,20070101,20101231 -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/networks.txt: -------------------------------------------------------------------------------- 1 | network_id,network_name,network_url,network_timezone,network_lang,network_phone,network_sort 2 | ligneflexible,"ligne flixible",http://ligneflexible.com,Europe/Paris,fr,, 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/equipments.txt: -------------------------------------------------------------------------------- 1 | equipment_id,wheelchair_boarding,sheltered,elevator,escalator,bike_accepted,bike_depot,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20070101,20101231 3 | WE,0,0,0,0,0,1,1,20070101,20101231 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20070101,20101231 3 | WE,0,0,0,0,0,1,1,20070101,20101231 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_agency/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | WE,0,0,0,0,0,1,1,20110101,20111231 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_routes/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | WE,0,0,0,0,0,1,1,20110101,20111231 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20110101,20111231 3 | WE,0,0,0,0,0,1,1,20110101,20111231 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/networks.txt: -------------------------------------------------------------------------------- 1 | network_id,network_name,network_url,network_timezone,network_lang,network_phone,network_sort_order 2 | STAR,"Star - Rennes",http://rennes2.prod.navitia.com/,Europe/Paris,fr, ,1 3 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20070101,20101231 3 | WE,0,0,0,0,0,1,1,20070101,20101231 -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/datasets.txt: -------------------------------------------------------------------------------- 1 | dataset_id,contributor_id,dataset_start_date,dataset_end_date,dataset_type,dataset_desc,dataset_system,dataset_extrapolation 2 | SCF:23,SCF,20180319,20180617,0,"centre-sncf","ChouetteV2",0 -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/trip_properties.txt: -------------------------------------------------------------------------------- 1 | trip_property_id,wheelchair_accessible,bike_accepted,air_conditioned,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage,school_vehicle_type -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/calendar.txt: -------------------------------------------------------------------------------- 1 | service_id,monday,tuesday,wednesday,thursday,friday,saturday,sunday,start_date,end_date 2 | FULLW,1,1,1,1,1,1,1,20100201,20101231 3 | WE,0,0,0,0,0,1,1,20100201,20101231 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/companies.txt: -------------------------------------------------------------------------------- 1 | company_id,company_name,company_address_name,company_address_number,company_address_type,company_url,company_mail,company_phone,company_fax,contributor_id 2 | SCF:OCESN,"SNCF CRS",,,,,,,,SCF -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/networks.txt: -------------------------------------------------------------------------------- 1 | network_id,network_name,network_url,network_timezone,network_lang,network_phone,network_address,network_fare_url,network_sort_order 2 | IDFM:1076,Cœur d’Essonne 1,,Europe/Paris,,,,, -------------------------------------------------------------------------------- /source/benchmark/benchmark_example.csv: -------------------------------------------------------------------------------- 1 | path,parameters 2 | /status, 3 | /lines, 4 | /lines,count=1 5 | /journeys,from=2.31681%3B48.87126&to=2.37244%3B48.85884& 6 | /journeys,from=2.31887%3B48.83873&to=2.35286%3B48.88300& 7 | -------------------------------------------------------------------------------- /source/disruption/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(disruption_test disruption_test.cpp) 2 | target_link_libraries(disruption_test disruption_api ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) 3 | ADD_BOOST_TEST(disruption_test) 4 | -------------------------------------------------------------------------------- /source/position/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(position_api position_api.cpp) 2 | target_link_libraries(position_api pb_lib) 3 | 4 | # Add tests 5 | if(NOT SKIP_TESTS) 6 | add_subdirectory(tests) 7 | endif(NOT SKIP_TESTS) 8 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id","bikes_allowed","wheelchair_accessible" 2 | 1,"FULLW", "trip1","My one true headsign",0,,,1,1 3 | 4 | -------------------------------------------------------------------------------- /source/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | BasedOnStyle: chromium 3 | IndentWidth: 4 4 | --- 5 | Language: Cpp 6 | ColumnLimit: 120 7 | AccessModifierOffset: -4 8 | BreakBeforeBinaryOperators: NonAssignment 9 | SortIncludes: false 10 | -------------------------------------------------------------------------------- /source/equipment/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(equipment_api equipment_api.cpp) 2 | target_link_libraries(equipment_api pb_lib) 3 | 4 | # Add tests 5 | if(NOT SKIP_TESTS) 6 | add_subdirectory(tests) 7 | endif(NOT SKIP_TESTS) 8 | -------------------------------------------------------------------------------- /source/proximity_list/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable (proximity_list_test test.cpp) 2 | target_link_libraries(proximity_list_test proximitylist ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) 3 | ADD_BOOST_TEST(proximity_list_test) 4 | -------------------------------------------------------------------------------- /source/tyr/requirements_dev.txt: -------------------------------------------------------------------------------- 1 | -r requirements.txt 2 | -r ../../requirements_pre-commit.txt 3 | 4 | docker==3.4.1 5 | pytest==4.6.5 6 | pytest-cov==2.5.1 7 | python-dateutil==2.5.3 8 | mock==1.0.1 9 | jmespath==0.9.3 10 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/stop_properties.txt: -------------------------------------------------------------------------------- 1 | property_id,wheelchair_boarding,sheltered,elevator,escalator,bike_accepted,bike_depot,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage 2 | EQ1,1,0,0,0,1,0,0,0,0,0 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/trip_properties.txt: -------------------------------------------------------------------------------- 1 | trip_property_id,wheelchair_accessible,bike_accepted,air_conditioned,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage,school_vehicle_type 2 | 1,1,0,0,0,0,0,0,0 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/companies.txt: -------------------------------------------------------------------------------- 1 | company_id,company_name,company_address_name,company_address_number,company_address_type,company_url,company_mail,company_phone,company_fax,contributor_id 2 | SAR:1,"STAR",,,,http://www.star.fr,,,,SAR 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/equipments.txt: -------------------------------------------------------------------------------- 1 | equipment_id,wheelchair_boarding,sheltered,elevator,escalator,bike_accepted,bike_depot,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage 2 | EQ1,1,0,0,0,1,0,0,0,0,0 3 | 4 | -------------------------------------------------------------------------------- /source/access_point/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(access_point_api access_point_api.cpp) 2 | target_link_libraries(access_point_api pb_lib) 3 | 4 | # Add tests 5 | if(NOT SKIP_TESTS) 6 | add_subdirectory(tests) 7 | endif(NOT SKIP_TESTS) 8 | -------------------------------------------------------------------------------- /source/calendar/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(calendar_api_test calendar_api_test.cpp) 2 | target_link_libraries(calendar_api_test calendar_api pb_lib ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) 3 | ADD_BOOST_TEST(calendar_api_test) 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/admin_stations.txt: -------------------------------------------------------------------------------- 1 | admin_id,admin_name,station_id,station_name,stop_id,stop_name 2 | admin:A,"admin_name_A_that_is_not_read",station_id_A_that_is_not_read,"station_name_A_that_is_not_read",SA:A,"stop_name_A_that_is_not_read" 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,route_name,direction_type,line_id,contributor_id,geometry_id 2 | route_1,"Route sens aller",forward,l1,, 3 | route_2,"Route sens retour",backward,l1,, 4 | route_3,"Route ",,l1,, 5 | route_4,"TAD route",,l4,, 6 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/trip_properties.txt: -------------------------------------------------------------------------------- 1 | trip_property_id,wheelchair_accessible,bike_accepted,air_conditioned,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage,school_vehicle 2 | 0,0,0,0,0,0,0,0,0 3 | 1,0,1,0,0,0,0,0,0 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,route_name,direction_type,line_id,contributor_id,geometry_id 2 | route_1,"Route sens aller",forward,l1,C1, 3 | route_2,"Route sens retour",backward,l1,, 4 | route_3,"Route ",,l1,, 5 | route_4,"TAD route",,l4,, 6 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/trip_properties.txt: -------------------------------------------------------------------------------- 1 | trip_property_id,wheelchair_accessible,bike_accepted,air_conditioned,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage,school_vehicle 2 | 0,0,0,0,0,0,0,0,0 3 | 1,0,1,0,0,0,0,0,0 4 | -------------------------------------------------------------------------------- /source/scripts/build_protobuf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | pushd source/navitia-proto 3 | protoc --python_out=../navitiacommon/navitiacommon type.proto response.proto request.proto task.proto stat.proto 4 | 2to3 -w ../navitiacommon/navitiacommon/*_pb2.py 5 | popd 6 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/stop_times.txt: -------------------------------------------------------------------------------- 1 | trip_id,arrival_time,departure_time,stop_id,stop_sequence,stop_headsign,pickup_type,drop_off_time,shape_dist_traveled 2 | AB1,8:00:00,8:00:00,BEATTY_AIRPORT,1,,,, 3 | AB1,8:10:00,8:15:00,BULLFROG,2,,,, 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/trip_properties.txt: -------------------------------------------------------------------------------- 1 | trip_property_id,wheelchair_accessible,bike_accepted,air_conditioned,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage,school_vehicle_type 2 | 0,0,0,0,0,0,0,0,0 3 | 1,1,0,0,0,0,0,0,0 4 | -------------------------------------------------------------------------------- /source/calendar/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(CALENDAR_SRC 2 | calendar_api.cpp 3 | calendar.cpp 4 | ) 5 | add_library(calendar_api ${CALENDAR_SRC}) 6 | 7 | # Add tests 8 | if(NOT SKIP_TESTS) 9 | add_subdirectory(tests) 10 | endif(NOT SKIP_TESTS) 11 | -------------------------------------------------------------------------------- /source/disruption/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(disruption_api traffic_reports_api.cpp line_reports_api.cpp) 2 | target_link_libraries(disruption_api pb_lib) 3 | 4 | # Add tests 5 | if(NOT SKIP_TESTS) 6 | add_subdirectory(tests) 7 | endif(NOT SKIP_TESTS) 8 | -------------------------------------------------------------------------------- /source/equipment/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(equipment_test equipment_api_tests.cpp) 2 | target_link_libraries(equipment_test equipment_api ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}) 3 | ADD_BOOST_TEST(equipment_test) 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,route_name,is_forward,line_id,contributor_id,destination_id,geometry_id 2 | SCF:OCESNNoctilien8759118087994152New1,"Gare-de-L'Est-Noctilien vers Aéroport-CDG-T3 (Noctilien)",0,SCF:OCESN8799415287591180,SCF,SCF:SA:SAOCE87994152, -------------------------------------------------------------------------------- /source/position/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(position_test position_api_tests.cpp) 2 | target_link_libraries(position_test position_api rt_handling ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}) 3 | ADD_BOOST_TEST(position_test) 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,block_id,company_id,physical_mode_id,trip_property_id,contributor_id,geometry_id,dataset_id 2 | SCF:OCESNNoctilien8759118087994152New1,347,SCF:OCESN010410R01001-1,"10410",,SCF:OCESN,Bus,,SCF,,SCF:23 3 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/feed_infos.txt: -------------------------------------------------------------------------------- 1 | feed_info_param,feed_info_value 2 | feed_creation_date,20240916 3 | feed_creation_datetime,2024-09-16T11:33:52+00:00 4 | feed_creation_time,11:33:52 5 | feed_end_date,20240925 6 | feed_start_date,20240916 7 | ntfs_version,0.18.0 -------------------------------------------------------------------------------- /source/access_point/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(access_point_test access_point_api_tests.cpp) 2 | target_link_libraries(access_point_test access_point_api ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}) 3 | ADD_BOOST_TEST(access_point_test) 4 | -------------------------------------------------------------------------------- /source/lz4_filter/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable (lz4_tests test.cpp "${CMAKE_SOURCE_DIR}/third_party/lz4/lz4.c") 2 | target_link_libraries(lz4_tests 3 | ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} 4 | ${Boost_IOSTREAMS_LIBRARY} 5 | ) 6 | ADD_BOOST_TEST(lz4_tests) 7 | 8 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/ChangeLog: -------------------------------------------------------------------------------- 1 | libkeepalive-0.3: 2 | - support for IPv6 3 | - code cleanup and fix 4 | - license changed to MIT 5 | libkeepalive-0.2: 6 | - support for runtime tuning using environment variables 7 | libkeepalive-0.1: 8 | - first version of libkeepalive 9 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/equipments.txt: -------------------------------------------------------------------------------- 1 | equipment_id,wheelchair_boarding,sheltered,elevator,escalator,bike_accepted,bike_depot,visual_announcement,audible_announcement,appropriate_escort,appropriate_signage 2 | 0,0,0,0,0,0,0,0,0,0,0 3 | 2,1,0,0,0,0,0,0,0,0,0 4 | 256,0,0,0,0,0,0,0,0,1,0 5 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | "a","WE", "ignore",,,, 3 | 1,"pouet", "ignore",,,, 4 | 1,"WE", "myonetruetrip","My one true headsign",0,0, 5 | ARR|10534,"WE", 80|ARR|HW|6149|122|10534|1002,"pipe",,,, 6 | 7 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/companies.txt: -------------------------------------------------------------------------------- 1 | company_id,company_name,company_address_name,company_address_number,company_address_type,company_url,company_mail,company_phone,company_fax,contributor_id 2 | COMP:A,"company_name_A",,,,,,,,contributor_id_a 3 | COMP:B,"company_name_B",,,,,,,,contributor_id_b 4 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,route_name,direction_type,line_id,contributor_id,destination_id,geometry_id 2 | SAR:0080,Laillé (Gingouillère) <> Bruz (DGA-MI),forward,SAR:0080,SAR,SAR:SA:4708, 3 | SAR:0072,Chartres-de-Bretagne - Pont-Péan - Laillé,forward,SAR:0072,SAR,SAR:SA:3901, 4 | -------------------------------------------------------------------------------- /source/sql/requirements.txt: -------------------------------------------------------------------------------- 1 | GeoAlchemy2==0.2.4 2 | Mako==0.9.1 3 | SQLAlchemy==1.3.3 4 | alembic==1.0.11 5 | psycopg2 ; python_version < "3.9" # keep it free: 2.5.4 is installed on debian 8 images, but doesn't handle PG 13.11 from debian 11 6 | psycopg2-binary==2.9.7 ; python_version >= "3.9" 7 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_agency/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 4,"ratp",4,"Metro 4 – Porte de clignancourt – Porte d'Orléans",,1,,, 3 | 5,"ratp",5,"Metro 5 – Bobigny – Place d'italie",,1,,, 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_calendar/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 4,"ratp",4,"Metro 4 – Porte de clignancourt – Porte d'Orléans",,1,,, 3 | 5,"ratp",5,"Metro 5 – Bobigny – Place d'italie",,1,,, 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 4,"ratp",4,"Metro 4 – Porte de clignancourt – Porte d'Orléans",,1,,, 3 | 5,"ratp",5,"Metro 5 – Bobigny – Place d'italie",,1,,, 4 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_trips/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 4,"ratp",4,"Metro 4 – Porte de clignancourt – Porte d'Orléans",,1,,, 3 | 5,"ratp",5,"Metro 5 – Bobigny – Place d'italie",,1,,, 4 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | line-length = 113 3 | skip-string-normalization = true 4 | include = '\.pyi?$' 5 | exclude = ''' 6 | /( 7 | \.git 8 | | _build 9 | | build 10 | | release 11 | | debug 12 | | debian 13 | | source/third_party 14 | | .*_pb2\.py 15 | ) 16 | ''' 17 | -------------------------------------------------------------------------------- /source/fare/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(FARE_SRC 2 | fare.h 3 | fare.cpp 4 | fare_api.cpp 5 | ) 6 | 7 | add_library(fare ${FARE_SRC}) 8 | target_link_libraries(fare routing pb_lib) 9 | 10 | # Add tests 11 | if(NOT SKIP_TESTS) 12 | add_subdirectory(tests) 13 | endif(NOT SKIP_TESTS) 14 | -------------------------------------------------------------------------------- /debian/navitia-ed.install: -------------------------------------------------------------------------------- 1 | usr/bin/gtfs2ed usr/bin 2 | usr/bin/fusio2ed usr/bin 3 | usr/bin/osm2ed usr/bin 4 | usr/bin/ed2nav usr/bin 5 | usr/bin/fare2ed usr/bin 6 | usr/bin/geopal2ed usr/bin 7 | usr/bin/poi2ed usr/bin 8 | usr/bin/synonym2ed usr/bin 9 | usr/share/navitia/ed/* usr/share/navitia/ed 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 4,"ratp",4,"Metro 4 – Porte de clignancourt – Porte d'Orléans",,1,,, 3 | 5,"ratp",5,"Metro 5 – Bobigny – Place d'italie",,1,,, 4 | -------------------------------------------------------------------------------- /source/config.cpp.cmake: -------------------------------------------------------------------------------- 1 | #include "conf.h" 2 | 3 | namespace navitia { namespace config { 4 | 5 | const char* fixtures_dir = "${FIXTURES_DIR}"; 6 | const char* navitia_build_type = "${CMAKE_BUILD_TYPE}"; 7 | const char* project_version = "${GIT_REVISION}"; 8 | 9 | }}// namespace navitia::config 10 | -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/jormungandr.wsgi: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | 4 | sys.path.append("/srv/jormungandr") 5 | os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp' 6 | os.environ['JORMUNGANDR_CONFIG_FILE'] = '/srv/jormungandr/Jormungandr.ini' 7 | from jormungandr import app as application 8 | -------------------------------------------------------------------------------- /source/sql/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | install(FILES alembic.ini alembic/env.py DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitia/ed/script) 2 | 3 | FILE(GLOB 4 | alembic_ed 5 | alembic/versions/*.py 6 | ) 7 | install(FILES ${alembic_ed} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitia/ed/alembic/versions) 8 | -------------------------------------------------------------------------------- /docker/jormungandr.wsgi: -------------------------------------------------------------------------------- 1 | # 2 | ## File managed by fabric, don't edit directly 3 | # 4 | 5 | # this import might fix a strange thread problem: http://bugs.python.org/issue7980 6 | import _strptime 7 | 8 | import sys 9 | 10 | sys.path.append('/usr/src/app') 11 | 12 | from jormungandr import app as application 13 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 1,"ratp",1,"Ligne 1",,1,,, 3 | 1,"ratp",1,"Ligne 1",,1,,, 4 | 2,"tropfakelenetwork",1,"Ligne 2",,1,,, 5 | ARR|10534,"ratp",534,Middelharnis - Oostplaat,,3,,,, 6 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/pathways.txt: -------------------------------------------------------------------------------- 1 | pathway_id,from_stop_id,to_stop_id,pathway_mode,is_bidirectional,length,traversal_time,stair_count,max_slope,min_width,signposted_as,reversed_signposted_as 2 | SP:A:IO:1,SP:A,IO:1,3,1,68.58,87,,,,, 3 | SP:B:IO:2,SP:B,IO:2,3,0,68.58,87,3,30,2,, 4 | SP:B:IO:1,SP:B,IO:1,3,1,42,60,40,30,2,, 5 | -------------------------------------------------------------------------------- /source/scripts/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | install(FILES update_db.sh DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitia/ed/scripts) 2 | install(FILES init_db.sh DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitiacommon/scripts) 3 | 4 | install(FILES createinstance.sh DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jormungandr/scripts) 5 | 6 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/routes.txt: -------------------------------------------------------------------------------- 1 | "route_id","agency_id","route_short_name","route_long_name","route_desc","route_type","route_url","route_color","route_text_color" 2 | 1,"ratp",1,"Ligne 1",,1,,,FFD700 3 | 1,"ratp",1,"Ligne 1",,1,,, 4 | 2,"ratp",1,"Ligne 2",,1,,, 5 | ARR|10534,"ratp",534,Middelharnis - Oostplaat,,3,,,, 6 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id, to_stop_id, transfer_type, min_transfer_time 2 | "bad", "doublon", 0, 120 3 | "doublon", "bad", 0, 120 4 | "sp_seul", "sa_seul", 0, 140 5 | "sp_seul", "sa_avant:sp1", 0,150 6 | "sa_avant", "sp_seul", 0,160 7 | "sp_seul", "sa_wheelchair", 0,170 8 | "sa_apres", "sa_avant",0,180 9 | 10 | -------------------------------------------------------------------------------- /source/conf.h.cmake: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #cmakedefine HAVE_ICONV_H 1 4 | #cmakedefine HAVE_LOGGINGMACROS_H 1 5 | 6 | namespace navitia { namespace config { 7 | 8 | extern const char* fixtures_dir; 9 | extern const char* navitia_build_type; 10 | extern const char* project_version; 11 | 12 | }}// namespace navitia::config 13 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/feed_infos.txt: -------------------------------------------------------------------------------- 1 | feed_info_param,feed_info_value 2 | ntfs_version,0.7 3 | feed_start_date,20201001 4 | feed_end_date,20201101 5 | feed_creation_date,20201012 6 | feed_creation_time,10:10:21 7 | feed_publisher_name,You are a STAR 8 | fusio_url,http://url.fr 9 | fusio_version,1.10.89.224 10 | feed_license,Privée 11 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/commercial_modes.txt: -------------------------------------------------------------------------------- 1 | commercial_mode_id,commercial_mode_name 2 | boarding_landing,Boarding - Landing 3 | Bus,"Bus" 4 | Coach,"Autocar" 5 | LocalTrain,"TER" 6 | LongDistanceTrain,"TGV" 7 | Metro,"Metro" 8 | RapidTransit,"RER" 9 | Shuttle,"Navette" 10 | Taxi,"Taxi" 11 | Train,"Train" 12 | Tramway,"Tramway" 13 | -------------------------------------------------------------------------------- /source/benchmark/Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | name = "pypi" 3 | url = "https://pypi.org/simple" 4 | verify_ssl = true 5 | 6 | [dev-packages] 7 | 8 | [packages] 9 | pygal = "==2.3.1" 10 | requests = ">=2.0.0" 11 | tqdm = "*" 12 | docopt = "*" 13 | numpy = "*" 14 | sortedcontainers = "==2.1.0" 15 | 16 | [requires] 17 | python_version = "3" 18 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id, to_stop_id, transfer_type, min_transfer_time 2 | "bad", "doublon", 0, 120 3 | "doublon", "bad", 0, 120 4 | "sp_seul", "sa_seul", 0, 140 5 | "sp_seul", "sa_avant:sp1", 0,150 6 | "sa_avant", "sp_seul", 0,160 7 | "sp_seul", "sa_wheelchair", 0,170 8 | "sa_apres", "sa_avant",0,180 9 | 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id, to_stop_id, transfer_type, min_transfer_time 2 | "bad", "doublon", 0, 120 3 | "doublon", "bad", 0, 120 4 | "sp_seul", "sa_seul", 0, 140 5 | "sp_seul", "sa_avant:sp1", 0,150 6 | "sa_avant", "sp_seul", 0,160 7 | "sp_seul", "sa_wheelchair", 0,170 8 | "sa_apres", "sa_avant",0,180 9 | 10 | -------------------------------------------------------------------------------- /docker/run_tyr_web.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # we need to wait for the database to be ready 4 | while ! pg_isready --host=${TYR_DATABASE_HOST}; do 5 | echo "waiting for postgres to be ready" 6 | sleep 1; 7 | done 8 | 9 | python manage_tyr.py db upgrade 10 | echo "MIGRATION IS FINISHED" 11 | 12 | uwsgi --mount /=tyr:app --http 0.0.0.0:80 13 | -------------------------------------------------------------------------------- /source/tyr/tests/fixtures/fr.ini: -------------------------------------------------------------------------------- 1 | [instance] 2 | name = fr 3 | source-directory = /tmp/ 4 | backup-directory = /tmp/ 5 | tmp-file = /tmp/ed/tmpdata.nav.lz4 6 | target-file = /tmp/ed/data.nav.lz4 7 | rt-topics = realtime.at, realtime.ire 8 | 9 | [database] 10 | host = 127.0.0.1 11 | dbname = navitia 12 | username = navitia 13 | password = navitia 14 | -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/modules/example_routing/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Test Static Blueprint 6 | 7 | 8 | If this page get displayed, that's mean that statics blueprints are working ! 9 | 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,DTA,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,DTA,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, 7 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/feed_infos.txt: -------------------------------------------------------------------------------- 1 | feed_info_param,feed_info_value 2 | ntfs_version,0.3 3 | feed_start_date,20150325 4 | feed_end_date,20150826 5 | feed_creation_date,20150415 6 | feed_creation_time,15:32:34 7 | feed_publisher_name,Ile de France open data 8 | feed_publisher_url,http://www.hove.com 9 | feed_license,ODBL 10 | fusio_url, 11 | fusio_version, 12 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/grid_calendars.txt: -------------------------------------------------------------------------------- 1 | grid_calendar_id,name,monday,tuesday,wednesday,thursday,friday,saturday,sunday 2 | REG_LaV,lundi a vendredi,1,1,1,1,1,0,0 3 | REG_S,samedi,0,0,0,0,0,1,0 4 | REG_DJF,dimanche et jour feriés,0,0,0,0,0,0,1 5 | VAC_LaV,lundi a vendredi,1,1,1,1,1,0,0 6 | VAC_S,samedi,0,0,0,0,0,1,0 7 | VAC_DJF,dimanche et jour feriés,0,0,0,0,0,0,1 8 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,DTA,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,DTA,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, 7 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/feed_infos.txt: -------------------------------------------------------------------------------- 1 | feed_info_param,feed_info_value 2 | ntfs_version,0.3 3 | feed_start_date,20150325 4 | feed_end_date,20150826 5 | feed_creation_date,20150415 6 | feed_creation_time,15:32:34 7 | feed_publisher_name,Ile de France open data 8 | feed_publisher_url,http://www.hove.com 9 | feed_license,ODBL 10 | fusio_url, 11 | fusio_version, 12 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,agency_id,route_short_name,route_long_name,route_desc,route_type,route_url,route_color,route_text_color 2 | AB,DTA,10,Airport - Bullfrog,,3,,, 3 | BFC,DTA,20,Bullfrog - Furnace Creek Resort,,3,,, 4 | STBA,DTA,30,Stagecoach - Airport Shuttle,,3,,, 5 | CITY,DTA,40,City,,3,,, 6 | AAMV,DTA,50,Airport - Amargosa Valley,,3,,, -------------------------------------------------------------------------------- /source/cmake_modules/LoadConfig.cmake: -------------------------------------------------------------------------------- 1 | # Usefull to share cmake global var in codes : 2 | # FIXTURES_DIR 3 | # CMAKE_BUILD_TYPE 4 | # GIT_REVISION 5 | 6 | configure_file("${CMAKE_SOURCE_DIR}/conf.h.cmake" "${CMAKE_BINARY_DIR}/conf.h") 7 | configure_file("${CMAKE_SOURCE_DIR}/config.cpp.cmake" "${CMAKE_BINARY_DIR}/config.cpp") 8 | add_library(config "${CMAKE_BINARY_DIR}/config.cpp") 9 | -------------------------------------------------------------------------------- /source/monitor/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.1.1 2 | Jinja2==2.11.3 3 | MarkupSafe==0.23 4 | Werkzeug==0.15.5 5 | argparse==1.2.1 6 | itsdangerous==1.1.0 7 | protobuf==3.15.0 ; python_version < "3.9" 8 | protobuf==3.20.3 ; python_version >= "3.9" 9 | pyzmq==15.4.0 ; python_version < "3.9" 10 | pyzmq==25.0.2 ; python_version >= "3.9" 11 | wsgiref==0.1.2; python_version < '3.2' 12 | -------------------------------------------------------------------------------- /source/scripts/jormungandr: -------------------------------------------------------------------------------- 1 | CONFIG = { 2 | 'working_dir' : '/srv/jormungandr', 3 | 'environment': { 4 | 'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION': 'cpp' 5 | }, 6 | 'args' : ( 7 | '--bind=127.0.0.1:8088', 8 | '--workers=16', 9 | '--timeout=60', 10 | 'navitia:application' 11 | ) 12 | 13 | } 14 | -------------------------------------------------------------------------------- /source/tyr/PaysDeLaLoire.ini: -------------------------------------------------------------------------------- 1 | [instance] 2 | name = PaysDeLaLoire 3 | source-directory = /tmp/ed/ 4 | backup-directory = /tmp/edbackup/ 5 | tmp-file = /tmp/ed/tmpdata.nav.lz4 6 | target-file = /tmp/ed/data.nav.lz4 7 | rt-topics = realtime.at, realtime.ire 8 | 9 | [database] 10 | host = 127.0.0.1 11 | dbname = navitia 12 | username = navitia 13 | password = navitia 14 | 15 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/comment_links.txt: -------------------------------------------------------------------------------- 1 | object_id,object_type,comment_id 2 | StopTime:4,stop_time,bob 3 | StopTime:4,stop_time,bobette 4 | StopTime:7,stop_time,bob 5 | route_1,route,bob 6 | trip_3,trip,bobette 7 | SA:C,stop_area,bob 8 | 24034,stop_point,bobette 9 | 24034,stop_point,wrong_comment_id 10 | wrong_stop_point,stop_point,bobette 11 | trip_3,wrong_type,bobette 12 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/addresses.txt: -------------------------------------------------------------------------------- 1 | address_id,street_name,house_number 2 | SA:A:ADD_ID,SA:A STREET_NAME,9 3 | SA:B:ADD_ID,SA:B STREET_NAME,99999999 4 | SA:C:ADD_ID,, 5 | SA:D:ADD_ID,SA:D STREET_NAME, 6 | SP:A:ADD_ID,, 7 | SP:D:ADD_ID,SP:D STREET_NAME,25 8 | SP:E:ADD_ID,SP:E STREET_NAME,0 9 | SP:F:ADD_ID,SP:F STREET_NAME, 10 | SP:J:ADD_ID,SP:J STREET_NAME,FACE AU 23 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_revision_201502/stop_times.txt: -------------------------------------------------------------------------------- 1 | "trip_id","arrival_time","departure_time","stop_id","stop_sequence","stop_headsign","pickup_type","drop_off_type","shape_dist_traveled" 2 | trip1,"6:00:00","6:00:01","frpno:metro4",1,,,, 3 | trip1,"6:20:00","6:20:01","frpes:metro4",2,,,, 4 | trip1,"6:40:00","6:40:01","chatelet:4",3,,,, 5 | trip1,"7:00:00","7:00:01","montparnasse:4",4,,,, 6 | 7 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/comment_links.txt: -------------------------------------------------------------------------------- 1 | object_id,object_type,comment_id 2 | StopTime:4,stop_time,bob 3 | StopTime:4,stop_time,bobette 4 | StopTime:7,stop_time,bob 5 | route_1,route,bob 6 | trip_3,trip,bobette 7 | SA:C,stop_area,bob 8 | 24034,stop_point,bobette 9 | 24034,stop_point,wrong_comment_id 10 | wrong_stop_point,stop_point,bobette 11 | trip_3,wrong_type,bobette 12 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/transfers.txt: -------------------------------------------------------------------------------- 1 | from_stop_id,to_stop_id,min_transfer_time,real_min_transfer_time,equipment_id 2 | SP:MoulinGalant,SP:ODT:MoulinGalant,120,120 3 | SP:ODT:GareMennecy,SP:GareMennecy,120,120 4 | SP:MoulinGalant,SP:MoulinGalant,0,120 5 | SP:ODT:GareMennecy,SP:ODT:GareMennecy,0,120 6 | SP:GMennecy,SP:GareMennecy,60,120 7 | SP:CorbeilEssonnes,SP:GareCorbeilEssonnes,120,120 -------------------------------------------------------------------------------- /docker/debian11/Dockerfile-builder-kraken: -------------------------------------------------------------------------------- 1 | FROM 162230498103.dkr.ecr.eu-west-1.amazonaws.com/mutable-debian11_dev:latest 2 | 3 | RUN apt update && apt install -y git wget 4 | 5 | RUN git config --global --add safe.directory /navitia/navitia 6 | 7 | COPY docker/build_kraken_deb11.sh /build_navitia.sh 8 | RUN chmod +x /build_navitia.sh 9 | 10 | ENTRYPOINT ["bash", "/build_navitia.sh"] 11 | -------------------------------------------------------------------------------- /source/time_tables/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(thermometer thermometer.cpp) 2 | 3 | SET(TIME_TABLES_SRC passages.cpp route_schedules.cpp departure_boards.cpp request_handle.cpp) 4 | add_library(time_tables ${TIME_TABLES_SRC}) 5 | target_link_libraries(time_tables routing thermometer) 6 | 7 | # Add tests 8 | if(NOT SKIP_TESTS) 9 | add_subdirectory(tests) 10 | endif(NOT SKIP_TESTS) 11 | -------------------------------------------------------------------------------- /source/type/readme.txt: -------------------------------------------------------------------------------- 1 | /** \page type Type 2 | 3 | Structure de données pour représenter le référentiel. 4 | 5 | La structure principale est Data 6 | 7 | Les données sont sérialisées avec boost::serialize et compressées en lz4. 8 | La compression permet des fichiers plus petits avec pratiquement aucune perte de temps à la lecture (voire un gain sur des disques lents). 9 | 10 | */ 11 | -------------------------------------------------------------------------------- /source/ptreferential/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(PTREF_SRC 2 | ptreferential.cpp 3 | ptreferential_utils.cpp 4 | ptreferential_ng.cpp 5 | ptreferential_api.cpp 6 | ptref_graph.cpp) 7 | add_library(ptreferential ${PTREF_SRC}) 8 | target_link_libraries(ptreferential pb_converter data) 9 | 10 | # Add tests 11 | if(NOT SKIP_TESTS) 12 | add_subdirectory(tests) 13 | endif(NOT SKIP_TESTS) 14 | -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/jormungandr_settings.py: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | # emplacement ou charger les fichier de configuration par instances 3 | INSTANCES_DIR = '/etc/jormungandr.d' 4 | 5 | # chaine de connnection à postgresql pour la base jormungandr 6 | SQLALCHEMY_DATABASE_URI = 'postgresql://navitia:navitia@localhost/jormun' 7 | 8 | # désactivation de l'authentification 9 | PUBLIC = True 10 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | # sonar-project.properties 2 | 3 | # Project 4 | sonar.host.url=https://sonarcloud.io 5 | sonar.organization=hove-io 6 | sonar.projectKey=Hove_navitia 7 | sonar.projectName=Navitia 8 | 9 | # Config 10 | sonar.sources=source 11 | sonar.exclusions=source/third_party/** 12 | 13 | # Encoding of the source code. Default is default system encoding 14 | sonar.sourceEncoding=UTF-8 15 | -------------------------------------------------------------------------------- /source/eitri/requirements.txt: -------------------------------------------------------------------------------- 1 | future==0.18.3 2 | docker==3.4.1 3 | retrying==1.3.3 4 | psycopg2 ; python_version < "3.9" # keep it free: 2.5.4 is installed on debian 8 images, but doesn't handle PG 13.11 from debian 11 5 | psycopg2-binary==2.9.7 ; python_version >= "3.9" 6 | GeoAlchemy2==0.2.4 7 | SQLAlchemy==1.3.3 8 | alembic==1.0.11 9 | requests==2.20.0 10 | coloredlogs==10.0 11 | typing==3.7.4 12 | -------------------------------------------------------------------------------- /source/fare/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(fare_test fare_test.cpp) 2 | target_link_libraries(fare_test fare config connectors ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) 3 | ADD_BOOST_TEST(fare_test) 4 | 5 | add_executable(fare_integration_test fare_integration_test.cpp) 6 | target_link_libraries(fare_integration_test pb_converter ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ) 7 | ADD_BOOST_TEST(fare_integration_test) 8 | 9 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,block_id,company_id,odt_condition_id,physical_mode_id,trip_property_id,contributor_id,geometry_id 2 | route_1,1,trip_1,"vehiclejourney1",,,0_test1,BUS,1,C1, 3 | route_2,1,trip_2,"vehiclejourney2",,,0_test1,BUS,0,C1, 4 | route_3,1,trip_3,"vehiclejourney3",,,0_test1,BUS,0,C1, 5 | route_3,1,trip_4,"NULL",,,0_test1,,0,C1, 6 | route_4,1,trip_5,,,,,BUS,,, 7 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/feed_infos.txt: -------------------------------------------------------------------------------- 1 | feed_info_param,feed_info_value 2 | ntfs_version,0.3 3 | feed_start_date,20180324 4 | feed_end_date,20180706 5 | feed_creation_date,20180321 6 | feed_creation_time,09:34:13 7 | feed_publisher_name,"Centre - JVMalin" 8 | fusio_url,http://vip-fusio-ihm.CENTRE.prod.canaltp.fr/ 9 | fusio_version,1.10.89.212 10 | feed_license,Privée 11 | feed_publisher_url,http://www.jvmalin.fr 12 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_agency/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | 4,"FULLW",41,"Porte de Clignancourt",0,, 3 | 4,"FULLW",42,"Porte D'orléans",1,, 4 | 4,"FULLW",43,"Porte de Clignancourt",0,, 5 | 4,"FULLW",44,"Porte D'orléans",1,, 6 | 5,"FULLW",51,"Bobigny",0,, 7 | 5,"FULLW",52,"Place d'italie",1,, 8 | 5,"FULLW",53,"Bobigny",0,, 9 | 5,"FULLW",54,"Place d'italie",1,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_calendar/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | 4,"FULLW",41,"Porte de Clignancourt",0,, 3 | 4,"FULLW",42,"Porte D'orléans",1,, 4 | 4,"FULLW",43,"Porte de Clignancourt",0,, 5 | 4,"FULLW",44,"Porte D'orléans",1,, 6 | 5,"FULLW",51,"Bobigny",0,, 7 | 5,"FULLW",52,"Place d'italie",1,, 8 | 5,"FULLW",53,"Bobigny",0,, 9 | 5,"FULLW",54,"Place d'italie",1,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_routes/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | 4,"FULLW",41,"Porte de Clignancourt",0,, 3 | 4,"FULLW",42,"Porte D'orléans",1,, 4 | 4,"FULLW",43,"Porte de Clignancourt",0,, 5 | 4,"FULLW",44,"Porte D'orléans",1,, 6 | 5,"FULLW",51,"Bobigny",0,, 7 | 5,"FULLW",52,"Place d'italie",1,, 8 | 5,"FULLW",53,"Bobigny",0,, 9 | 5,"FULLW",54,"Place d'italie",1,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stops/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | 4,"FULLW",41,"Porte de Clignancourt",0,, 3 | 4,"FULLW",42,"Porte D'orléans",1,, 4 | 4,"FULLW",43,"Porte de Clignancourt",0,, 5 | 4,"FULLW",44,"Porte D'orléans",1,, 6 | 5,"FULLW",51,"Bobigny",0,, 7 | 5,"FULLW",52,"Place d'italie",1,, 8 | 5,"FULLW",53,"Bobigny",0,, 9 | 5,"FULLW",54,"Place d'italie",1,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /source/tyr/tests/tests_default_settings.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # Path to the directory where the configuration file of each instance of ed are defined 4 | INSTANCES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') 5 | 6 | # Validate the presence of a mx record on the domain 7 | EMAIL_CHECK_MX = False 8 | 9 | # Validate the email by connecting to the smtp server, but doesn't send an email 10 | EMAIL_CHECK_SMTP = False 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_sans_stop_times/trips.txt: -------------------------------------------------------------------------------- 1 | "route_id","service_id","trip_id","trip_headsign","direction_id","block_id","shape_id" 2 | 4,"FULLW",41,"Porte de Clignancourt",0,, 3 | 4,"FULLW",42,"Porte D'orléans",1,, 4 | 4,"FULLW",43,"Porte de Clignancourt",0,, 5 | 4,"FULLW",44,"Porte D'orléans",1,, 6 | 5,"FULLW",51,"Bobigny",0,, 7 | 5,"FULLW",52,"Place d'italie",1,, 8 | 5,"FULLW",53,"Bobigny",0,, 9 | 5,"FULLW",54,"Place d'italie",1,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=113 3 | exclude=.git,__pycache__,source/third_party,debug,release,source/sql/,*_pb2.py,build 4 | select = C,F,B,B950 5 | ignore = F405,F401,F841,F811,F403 6 | #F405: name may be undefined, or defined from star imports: module 7 | #F401: imported but unused 8 | #F841: local variable is assigned to but never used 9 | #F811: redefinition of unused 10 | #F403: import * used; unable to detect undefined names 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/FEEDBACK: -------------------------------------------------------------------------------- 1 | If you downloaded libkeepalive and are interested to tell me something about, 2 | please send me an email at fabio.busatto@gmail.com. 3 | 4 | If you've successfully used libkeepalive on your system, write me what your 5 | os is and what you did to make it work. 6 | 7 | If you are unsure if you've to mail me or not, don't be afraid: mail me. 8 | I'm happy to receive real mails sometimes, that's better than reading spam. 9 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/frequencies.txt: -------------------------------------------------------------------------------- 1 | trip_id,start_time,end_time,headway_secs 2 | STBA,6:00:00,22:00:00,1800 3 | CITY1,6:00:00,7:59:59,1800 4 | CITY2,6:00:00,7:59:59,1800 5 | CITY1,8:00:00,9:59:59,600 6 | CITY2,8:00:00,9:59:59,600 7 | CITY1,10:00:00,15:59:59,1800 8 | CITY2,10:00:00,15:59:59,1800 9 | CITY1,16:00:00,18:59:59,600 10 | CITY2,16:00:00,18:59:59,600 11 | CITY1,19:00:00,22:00:00,1800 12 | CITY2,19:00:00,22:00:00,1800 -------------------------------------------------------------------------------- /source/jormungandr/jormungandr/modules/example_routing/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Test Template Blueprint 6 | 7 | 8 |

If this page get displayed, that's mean that templates blueprints are working !

9 |

Wants json ?

10 | 11 | -------------------------------------------------------------------------------- /source/vptranslator/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(vptranslator_src 2 | vptranslator.h 3 | vptranslator.cpp) 4 | add_library(vptranslator ${vptranslator_src}) 5 | target_link_libraries(vptranslator types) 6 | 7 | # Add tests 8 | if(NOT SKIP_TESTS) 9 | add_executable (vptranslator_test test.cpp) 10 | target_link_libraries(vptranslator_test types ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) 11 | ADD_BOOST_TEST(vptranslator_test) 12 | endif(NOT SKIP_TESTS) 13 | -------------------------------------------------------------------------------- /debian/python_control.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | 4 | f = open(sys.argv[1], 'r') 5 | source = f.readlines() 6 | source[0] = source[0][source[0].index(":") :] 7 | source[0] = "Source" + source[0] 8 | f.close() 9 | f = open(sys.argv[2], 'w') 10 | f.writelines(source) 11 | f.write('\n') 12 | f.close() 13 | f = open(sys.argv[1], 'r') 14 | package = f.readlines() 15 | f.close() 16 | f = open(sys.argv[2], 'a') 17 | f.writelines(package) 18 | f.close() 19 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/test/Makefile: -------------------------------------------------------------------------------- 1 | # _ _ _ _ _ _ 2 | # | (_) |__ | | _____ ___ _ __ __ _| (_)_ _____ 3 | # | | | '_ \| |/ / _ \/ _ \ '_ \ / _` | | \ \ / / _ \ 4 | # | | | |_) | < __/ __/ |_) | (_| | | |\ V / __/ 5 | # |_|_|_.__/|_|\_\___|\___| .__/ \__,_|_|_| \_/ \___| 6 | # |_| 7 | # 8 | # (C) Fabio Busatto 9 | 10 | CC=gcc 11 | 12 | default: test 13 | 14 | clean: 15 | rm -f test 16 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/physical_modes.txt: -------------------------------------------------------------------------------- 1 | physical_mode_id,physical_mode_name,co2_emission 2 | Bus,"Bus",129.7 3 | Coach,"Autocar",171 4 | LocalTrain,"TER",30.7 5 | LongDistanceTrain,"Train grande vitesse",3.4 6 | Metro,"Métro",3 7 | RapidTransit,"Train de banlieue / RER",6.2 8 | Shuttle,"Navette", 9 | Train,"Train",11.9 10 | Tramway,"Tramway",4 11 | CheckIn,Boarding, 12 | CheckOut,Landing, 13 | BikeSharingService,Vélo en libre service,0 14 | Bike,Vélo,0 15 | Car,Voiture,184 16 | -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,direction_id,block_id,shape_id 2 | AB,FULLW,AB1,to Bullfrog,0,1, 3 | AB,FULLW,AB2,to Airport,1,2, 4 | STBA,FULLW,STBA,Shuttle,,, 5 | CITY,FULLW,CITY1,,0,, 6 | CITY,FULLW,CITY2,,1,, 7 | BFC,FULLW,BFC1,to Furnace Creek Resort,0,1, 8 | BFC,FULLW,BFC2,to Bullfrog,1,2, 9 | AAMV,WE,AAMV1,to Amargosa Valley,0,, 10 | AAMV,WE,AAMV2,to Airport,1,, 11 | AAMV,WE,AAMV3,to Amargosa Valley,0,, 12 | AAMV,WE,AAMV4,to Airport,1,, -------------------------------------------------------------------------------- /source/scripts/settings.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # nom du serveur pgsql 4 | server='localhost' 5 | 6 | #nom d'utilisateur pgsql 7 | username='navitia' 8 | 9 | #nom de la base de données 10 | dbname='navitia' 11 | 12 | # http://www.postgresql.org/docs/9.1/static/libpq-envars.html 13 | export PGPASSWORD='navitia' 14 | 15 | #emplacement des fichiers SQL 16 | sql_dir=../sql/ed 17 | 18 | #emplacement où sont installé les fichier SQL pour postgis 19 | postgis_dir='/usr/share/postgresql/9.1/contrib/postgis-2.0' 20 | -------------------------------------------------------------------------------- /source/proximity_list/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # the lz4 is required by Flann, even though we don't use it's own archive method 2 | add_library(proximitylist 3 | proximity_list.cpp 4 | proximitylist_api.cpp 5 | ${CMAKE_SOURCE_DIR}/third_party/lz4/lz4hc.c 6 | ${CMAKE_SOURCE_DIR}/third_party/lz4/lz4.c 7 | ) 8 | add_dependencies(proximitylist protobuf_files) 9 | target_link_libraries(proximitylist types utils) 10 | 11 | # Add tests 12 | if(NOT SKIP_TESTS) 13 | add_subdirectory(tests) 14 | endif(NOT SKIP_TESTS) 15 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/datasets.txt: -------------------------------------------------------------------------------- 1 | dataset_id,contributor_id,dataset_start_date,dataset_end_date,dataset_type,dataset_desc,dataset_system,dataset_extrapolation 2 | dataset_id1,C1,20180312,20180401,0,"dataset_desc1","dataset_system1",0 3 | dataset_id2,C1,20180402,20180422,0,"dataset_desc2","dataset_system2",0 4 | dataset_id3,C1,20180312,20180422,0,"dataset_desc3","dataset_system3",0 5 | dataset_id4,C1,20180402,20180422,0,"dataset_desc4","dataset_system4",0 6 | dataset_id5,C1,20180312,20180422,0,"dataset_desc5","dataset_system5",0 7 | -------------------------------------------------------------------------------- /source/autocomplete/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | add_library(autocomplete autocomplete.cpp autocomplete_api.cpp utils.cpp) 3 | target_link_libraries(autocomplete pb_lib) 4 | add_dependencies(autocomplete protobuf_files) 5 | 6 | # Add tests 7 | if(NOT SKIP_TESTS) 8 | add_executable(autocomplete_test tests/test.cpp tests/test_utils.cpp) 9 | target_link_libraries(autocomplete_test autocomplete ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_REGEX_LIBRARY}) 10 | ADD_BOOST_TEST(autocomplete_test) 11 | endif(NOT SKIP_TESTS) 12 | -------------------------------------------------------------------------------- /source/tests/chaos/readme.md: -------------------------------------------------------------------------------- 1 | # Chaos Tests 2 | 3 | This aims at testing the Navitia's dependency on [Chaos](https://github.com/hove-io/chaos) 4 | 5 | ## How to run 6 | Those tests are part of `docker_test` test suite, hence depend on the same requirements. 7 | If you haven't set any environment just yet, create a new virtual env with : 8 | 9 | ```sh 10 | # using python 3.9 11 | pip install -r ../../tyr/requirements_dev.txt 12 | ``` 13 | 14 | Then invoke from your build directory : 15 | ```sh 16 | make chaos_tests 17 | ``` 18 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/lines.txt: -------------------------------------------------------------------------------- 1 | line_id,line_code,line_name,forward_line_name,forward_direction,backward_line_name,backward_direction,line_color,line_sort,network_id,commercial_mode_id,contributor_id,geometry_id,line_opening_time,line_closing_time 2 | l1,"A","ligne A Flexible",,,,,,,ligneflexible,BUS,,,00:00:00,23:59:00 3 | l2,"B","B line",,,,,,,ligneflexible,BUS,,,00:05:00,21:00:00 4 | l3,"Bn","B line (night bus)",,,,,,,ligneflexible,BUS,,,00:21:00,01:00:00 5 | l4,"F","TAD boarding alighting frequency",,,,,,,ligneflexible,BUS,,,06:00:00,28:00:00 6 | -------------------------------------------------------------------------------- /source/type/data_exceptions.cpp: -------------------------------------------------------------------------------- 1 | #include "data_exceptions.h" 2 | 3 | namespace navitia { 4 | namespace data { 5 | 6 | wrong_version::~wrong_version() noexcept = default; 7 | data_loading_error::~data_loading_error() noexcept = default; 8 | disruptions_broken_connection::~disruptions_broken_connection() noexcept = default; 9 | disruptions_loading_error::~disruptions_loading_error() noexcept = default; 10 | raptor_building_error::~raptor_building_error() noexcept = default; 11 | 12 | } // namespace data 13 | } // namespace navitia 14 | -------------------------------------------------------------------------------- /source/cities/alembic/script.py.mako: -------------------------------------------------------------------------------- 1 | """${message} 2 | 3 | Revision ID: ${up_revision} 4 | Revises: ${down_revision} 5 | Create Date: ${create_date} 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = ${repr(up_revision)} 11 | down_revision = ${repr(down_revision)} 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | ${imports if imports else ""} 16 | 17 | def upgrade(): 18 | ${upgrades if upgrades else "pass"} 19 | 20 | 21 | def downgrade(): 22 | ${downgrades if downgrades else "pass"} 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/script.py.mako: -------------------------------------------------------------------------------- 1 | """${message} 2 | 3 | Revision ID: ${up_revision} 4 | Revises: ${down_revision} 5 | Create Date: ${create_date} 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = ${repr(up_revision)} 11 | down_revision = ${repr(down_revision)} 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | ${imports if imports else ""} 16 | 17 | def upgrade(): 18 | ${upgrades if upgrades else "pass"} 19 | 20 | 21 | def downgrade(): 22 | ${downgrades if downgrades else "pass"} 23 | -------------------------------------------------------------------------------- /source/cmake_modules/FindProtoc.cmake: -------------------------------------------------------------------------------- 1 | if(PROTOC_EXECUTABLE) 2 | # be silent if already found 3 | set(PROTOC_FIND_QUIETLY TRUE) 4 | endif() 5 | 6 | find_program(PROTOC_EXECUTABLE 7 | NAMES protoc 8 | PATHS /usr/bin /usr/local/bin 9 | DOC "protobuf compiler") 10 | 11 | if(PROTOC_EXECUTABLE) 12 | set(PROTOC_FOUND TRUE) 13 | if(NOT PROTOC_FIND_QUIETLY) 14 | message(STATUS "Found protoc: ${PROTOC_EXECUTABLE}") 15 | endif() 16 | else() 17 | message(FATAL_ERROR "Could not find protoc executable") 18 | endif() 19 | -------------------------------------------------------------------------------- /source/georef/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(GEOREF_SRC 2 | georef.h 3 | georef.cpp 4 | street_network.h 5 | street_network.cpp 6 | adminref.h 7 | adminref.cpp 8 | path_finder.h 9 | path_finder.cpp 10 | dijkstra_path_finder.h 11 | dijkstra_path_finder.cpp 12 | astar_path_finder.h 13 | astar_path_finder.cpp 14 | ) 15 | 16 | add_library(georef ${GEOREF_SRC}) 17 | target_link_libraries(georef proximitylist ) 18 | 19 | # Add tests 20 | if(NOT SKIP_TESTS) 21 | add_subdirectory(tests) 22 | endif(NOT SKIP_TESTS) 23 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,block_id,company_id,odt_condition_id,physical_mode_id,trip_property_id,contributor_id,geometry_id,dataset_id,trip_short_name 2 | route_1,1,trip_1,"vehiclejourney1",,,0_test1,BUS,1,C1,,dataset_id1,trip_1_short_name 3 | route_2,1,trip_2,"vehiclejourney2",,,0_test1,BUS,0,C1,,dataset_id2,trip_2_short_name 4 | route_3,1,trip_3,"vehiclejourney3",,,0_test1,BUS,0,C1,,dataset_id3, 5 | route_3,1,trip_4,"NULL",,,0_test1,,0,C1,,dataset_id4, 6 | route_4,1,trip_5,,,,,BUS,,,,dataset_id5,trip_5_short_name 7 | -------------------------------------------------------------------------------- /source/cmake_modules/TestsEnv.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Set up tests env 3 | # 4 | 5 | # add custom target to build docker tests not to have a strong docker dependendy 6 | # obviously to run this target you should have docker installed (and the right to run it) 7 | add_custom_target(docker_test) 8 | 9 | # Fixture directory for unit testing 10 | set(FIXTURES_DIR "${CMAKE_SOURCE_DIR}/../fixtures") 11 | 12 | # Decomment for enabling streetnetwork debuging with quantum 13 | #add_definitions(-D_DEBUG_DIJKSTRA_QUANTUM_) 14 | 15 | # Active CTest 16 | enable_testing() 17 | -------------------------------------------------------------------------------- /docker/templates/tyr_instance.ini: -------------------------------------------------------------------------------- 1 | [instance] 2 | name = $INSTANCE 3 | source-directory = /srv/ed/input/$INSTANCE 4 | backup-directory = /srv/ed/backup/$INSTANCE 5 | aliases = /usr/share/ed/aliases_fr 6 | synonyms = /usr/share/ed/synonyms_fr 7 | target-file = /srv/ed/output/$INSTANCE.nav.lz4 8 | 9 | is-free = true 10 | 11 | rt-topics = , 12 | 13 | exchange-name = $INSTANCE 14 | 15 | [database] 16 | host = database 17 | dbname = $INSTANCE 18 | username = navitia 19 | password = navitia 20 | port = 5432 21 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_v5/lines.txt: -------------------------------------------------------------------------------- 1 | line_id,line_code,line_name,forward_line_name,forward_direction,backward_line_name,backward_direction,line_color,line_sort,network_id,commercial_mode_id,contributor_id,geometry_id,line_opening_time,line_closing_time,line_text_color 2 | l1,"A","ligne A Flexible",,,,,,,ligneflexible,BUS,C1,,00:00:00,23:59:00,FFD700 3 | l2,"B","B line",,,,,,,ligneflexible,BUS,,,00:05:00,21:00:00, 4 | l3,"Bn","B line (night bus)",,,,,,,ligneflexible,BUS,,,00:21:00,01:00:00, 5 | l4,"F","TAD boarding alighting frequency",,,,,,,ligneflexible,BUS,,,06:00:00,28:00:00 6 | -------------------------------------------------------------------------------- /source/sql/alembic/script.py.mako: -------------------------------------------------------------------------------- 1 | """${message} 2 | 3 | Revision ID: ${up_revision} 4 | Revises: ${down_revision} 5 | Create Date: ${create_date} 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = ${repr(up_revision)} 11 | down_revision = ${repr(down_revision)} 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | ${imports if imports else ""} 17 | 18 | def upgrade(): 19 | ${upgrades if upgrades else "pass"} 20 | 21 | 22 | def downgrade(): 23 | ${downgrades if downgrades else "pass"} 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/44dab62dfff7_add_shape_on_user.py: -------------------------------------------------------------------------------- 1 | """add a shape for the user 2 | 3 | Revision ID: 44dab62dfff7 4 | Revises: 162b4fa5836a 5 | Create Date: 2016-09-21 15:30:43.609986 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '44dab62dfff7' 11 | down_revision = '3131d5bf5570' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('user', sa.Column('shape', sa.TEXT(), nullable=True)) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('user', 'shape') 23 | -------------------------------------------------------------------------------- /source/jormungandr/requirements_dev.txt: -------------------------------------------------------------------------------- 1 | -r requirements.txt 2 | -r ../../requirements_pre-commit.txt 3 | 4 | swagger-spec-validator==2.1.0 5 | mock==1.0.1 6 | validators==0.10 7 | 8 | pytest==4.6.5 ; python_version < "3.9" 9 | pytest-mock==1.10.0 ; python_version < "3.9" 10 | pytest-cov==2.5.1; python_version < "3.9" 11 | 12 | pytest==8.3.3 ; python_version >= "3.9" 13 | pytest-mock==3.14.0 ; python_version >= "3.9" 14 | pytest-cov==4.1.0 ; python_version >= "3.9" 15 | 16 | requests-mock==1.12.1 17 | flex==6.10.0 18 | jsonschema==2.6.0 19 | pytest-timeout==1.3.3 20 | 21 | -------------------------------------------------------------------------------- /source/ed/connectors/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_library(PROJ proj REQUIRED) 2 | 3 | SET(SOURCE_LIB 4 | gtfs_parser.cpp 5 | fusio_parser.cpp 6 | osm_tags_reader.cpp 7 | speed_parser.cpp 8 | poi_parser.cpp 9 | fare_parser.cpp 10 | fare_utils.cpp 11 | geopal_parser.cpp 12 | conv_coord.cpp 13 | projection_system_reader.cpp 14 | data_cleaner.cpp 15 | poi_parser.cpp 16 | synonym_parser.cpp 17 | tz_db_wrapper.cpp 18 | ) 19 | 20 | add_library(connectors ${SOURCE_LIB}) 21 | target_link_libraries(connectors fare ed types ${PROJ}) 22 | 23 | -------------------------------------------------------------------------------- /source/sql/README: -------------------------------------------------------------------------------- 1 | Initialization 2 | -------------- 3 | 4 | You need a postgres/postgis database. 5 | You have to change the variable sqlalchemy.url in alembic.ini 6 | If your database is new, you have to run: 7 | PYTHONPATH=. alembic upgrade head 8 | Otherwise, you need to initialize once alembic on your database with: 9 | PYTHONPATH=. alembic stamp head 10 | 11 | Change the model 12 | -------------- 13 | 14 | You have to make a revision with: 15 | PYTHONPATH=. alembic revision -m "My message" 16 | and change the produced file in alembic/versions, and add it to git 17 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_dst/lines.txt: -------------------------------------------------------------------------------- 1 | line_id,line_code,line_name,forward_line_name,forward_direction,backward_line_name,backward_direction,line_color,line_text_color,line_sort,network_id,commercial_mode_id,contributor_id,geometry_id,line_opening_time,line_closing_time 2 | SCF:OCESN8799415287591180,"","Aéroport-CDG-T3 - Gare-de-L'Est-Noctilien","Gare-de-L'Est-Noctilien - Aéroport-CDG-T3",SCF:SA:SAOCE87994152,"Aéroport-CDG-T3 - Gare-de-L'Est-Noctilien",SCF:SA:SAOCE87591180,000000,FFFFFF,1,SNCF,Bus,SCF,,00:02:00,05:08:00 3 | Nav55,"codeNav55","Line 55","",,"",,000000,FFFFFF,1,,Bus,,,06:00:00,23:00:00 4 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/25b7f3ace052_type_comments.py: -------------------------------------------------------------------------------- 1 | """type comments 2 | 3 | Revision ID: 25b7f3ace052 4 | Revises: 56c1c7a19078 5 | Create Date: 2019-08-06 12:01:56.485924 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '25b7f3ace052' 11 | down_revision = '56c1c7a19078' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('comments', sa.Column('type', sa.Text(), nullable=True), schema='navitia') 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('comments', 'type', schema='navitia') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/5a941f98789c_add_min_taxi.py: -------------------------------------------------------------------------------- 1 | """ Adding min_taxi 2 | 3 | Revision ID: 5a941f98789c 4 | Revises: 35d86bbbe642 5 | Create Date: 2019-05-23 14:14:51.103593 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '5a941f98789c' 11 | down_revision = '35d86bbbe642' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('min_taxi', sa.Integer(), nullable=False, server_default='240')) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('instance', 'min_taxi') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/c5cd5a41def_update_shape_null_string_to_null_postgres.py: -------------------------------------------------------------------------------- 1 | """empty message 2 | 3 | Revision ID: c5cd5a41def 4 | Revises: 44dab62dfff7 5 | Create Date: 2016-10-06 14:38:01.870272 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'c5cd5a41def' 11 | down_revision = '44dab62dfff7' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | user = sa.table('user', sa.column('shape')) 19 | op.execute(user.update().values(shape='null').where(user.c.shape == None)) 20 | 21 | 22 | def downgrade(): 23 | pass 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/18862ea09b6d_add_bss_provider_activation.py: -------------------------------------------------------------------------------- 1 | """add_bss_provider_activation 2 | 3 | Revision ID: 18862ea09b6d 4 | Revises: 4d83f15e09b9 5 | Create Date: 2016-04-06 16:36:36.344059 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '18862ea09b6d' 11 | down_revision = '4d83f15e09b9' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('bss_provider', sa.BOOLEAN(), server_default=sa.true())) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('instance', 'bss_provider') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/16d8bca1453b_add_taxi_speed.py: -------------------------------------------------------------------------------- 1 | """Adding argument taxi_speed for journey 2 | 3 | Revision ID: 16d8bca1453b 4 | Revises: 52d628e535db 5 | Create Date: 2019-03-26 17:18:53.868067 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '16d8bca1453b' 11 | down_revision = '52d628e535db' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('taxi_speed', sa.Float(), nullable=False, server_default='11.11')) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('instance', 'taxi_speed') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/cf2becf2dc1_add_priority.py: -------------------------------------------------------------------------------- 1 | """ Add an attribut priority in the table instance 2 | 3 | Revision ID: cf2becf2dc1 4 | Revises: 64854ef94b3 5 | Create Date: 2016-01-28 16:11:33.430012 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'cf2becf2dc1' 11 | down_revision = '64854ef94b3' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('priority', sa.Integer(), server_default='0', nullable=False)) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('instance', 'priority') 23 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/Makefile: -------------------------------------------------------------------------------- 1 | # _ _ _ _ _ _ 2 | # | (_) |__ | | _____ ___ _ __ __ _| (_)_ _____ 3 | # | | | '_ \| |/ / _ \/ _ \ '_ \ / _` | | \ \ / / _ \ 4 | # | | | |_) | < __/ __/ |_) | (_| | | |\ V / __/ 5 | # |_|_|_.__/|_|\_\___|\___| .__/ \__,_|_|_| \_/ \___| 6 | # |_| 7 | # 8 | # (C) Fabio Busatto 9 | 10 | default: 11 | make -C src/ 12 | make -C test/ 13 | cp src/libkeepalive.so libkeepalive.so 14 | strip -s libkeepalive.so 15 | 16 | clean: 17 | make -C src/ clean 18 | make -C test/ clean 19 | rm -f libkeepalive.so 20 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/132cbd5a61a4_add_default_to_import_stops.py: -------------------------------------------------------------------------------- 1 | """add default to import stops 2 | 3 | Revision ID: 132cbd5a61a4 4 | Revises: 361f3993960e 5 | Create Date: 2017-01-05 11:51:08.188833 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '132cbd5a61a4' 11 | down_revision = '361f3993960e' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.alter_column('instance', 'import_stops_in_mimir', server_default='false') 19 | 20 | 21 | def downgrade(): 22 | op.alter_column('instance', 'import_stops_in_mimir', server_default=None) 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/38cf24479595_admins_from_cities_db.py: -------------------------------------------------------------------------------- 1 | """Add a field to use cities in osm2ed 2 | 3 | Revision ID: 38cf24479595 4 | Revises: 5a941f98789c 5 | Create Date: 2019-05-09 17:09:41.400340 6 | 7 | """ 8 | 9 | revision = '38cf24479595' 10 | down_revision = '5a941f98789c' 11 | 12 | from alembic import op 13 | import sqlalchemy as sa 14 | 15 | 16 | def upgrade(): 17 | op.add_column( 18 | 'instance', sa.Column('admins_from_cities_db', sa.Boolean(), nullable=False, server_default='False') 19 | ) 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('instance', 'admins_from_cities_db') 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/45d7fa0ad882_add_scenario_on_instance.py: -------------------------------------------------------------------------------- 1 | """add the scenario column on the instance table 2 | 3 | Revision ID: 45d7fa0ad882 4 | Revises: 12aa2de68f7 5 | Create Date: 2014-10-08 14:34:46.038194 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '45d7fa0ad882' 11 | down_revision = '12aa2de68f7' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('scenario', sa.Text(), nullable=False, server_default='default')) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('instance', 'scenario') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/4ec9c897fc03_default_user_coord.py: -------------------------------------------------------------------------------- 1 | """add a default coord in the user to be used in the bragi autocomplete service 2 | 3 | Revision ID: 4ec9c897fc03 4 | Revises: 4af6f969bfa8 5 | Create Date: 2017-07-07 09:38:59.021358 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4ec9c897fc03' 11 | down_revision = '4af6f969bfa8' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('user', sa.Column('default_coord', sa.Text(), nullable=True)) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('user', 'default_coord') 23 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/844a9fa86ad2_add_car_speed_on_edges.py: -------------------------------------------------------------------------------- 1 | """add car speed on edges 2 | 3 | Revision ID: 844a9fa86ad2 4 | Revises: 25b7f3ace052 5 | Create Date: 2019-12-09 13:52:27.533052 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '844a9fa86ad2' 11 | down_revision = '25b7f3ace052' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column('edge', sa.Column('car_speed', sa.Float(), nullable=True), schema='georef') 20 | 21 | 22 | def downgrade(): 23 | op.add_column('edge', 'car_speed', schema='georef') 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/4e80856d6e89_add_car_parking_provider.py: -------------------------------------------------------------------------------- 1 | """empty message 2 | 3 | Revision ID: 4e80856d6e89 4 | Revises: 4ec9c897fc03 5 | Create Date: 2017-08-11 11:09:46.739733 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4e80856d6e89' 11 | down_revision = '4ec9c897fc03' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('car_park_provider', sa.Boolean(), server_default='true', nullable=False) 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'car_park_provider') 25 | -------------------------------------------------------------------------------- /source/cities/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(BOOST_LIBS ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} 2 | ${Boost_SYSTEM_LIBRARY} ) 3 | 4 | add_executable(cities cities.cpp) 5 | target_link_libraries(cities utils config ${Boost_PROGRAM_OPTIONS_LIBRARY} ${OSMPBF} protobuf z) 6 | install(TARGETS cities DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) 7 | install(FILES alembic.ini alembic/env.py DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitia/cities/alembic) 8 | 9 | FILE(GLOB 10 | alembic_cities 11 | alembic/versions/*.py 12 | ) 13 | install(FILES ${alembic_cities} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/navitia/cities/alembic/versions) 14 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/47b663b9defc_remove_global_timezone.py: -------------------------------------------------------------------------------- 1 | """remove global timezone 2 | 3 | Revision ID: 47b663b9defc 4 | Revises: 224621d9edde 5 | Create Date: 2015-12-23 10:11:35.657364 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '47b663b9defc' 11 | down_revision = '224621d9edde' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.drop_column('parameters', 'timezone', schema='navitia') 20 | 21 | 22 | def downgrade(): 23 | op.add_column('parameters', sa.Column('timezone', sa.TEXT(), nullable=True), schema='navitia') 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/962cfcce76f_block_until_column_added_for_.py: -------------------------------------------------------------------------------- 1 | """'block_until' column added for restriction access before this date. 2 | 3 | Revision ID: 962cfcce76f 4 | Revises: 11eae2b0e6b0 5 | Create Date: 2015-12-16 11:46:05.960382 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '962cfcce76f' 11 | down_revision = '11eae2b0e6b0' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('user', sa.Column('block_until', sa.DateTime(timezone=True), nullable=True)) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('user', 'block_until') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/3f620c440544_autocomplete_poi_types.py: -------------------------------------------------------------------------------- 1 | """add poi_types_json to mimir autocomplete params in tyr 2 | 3 | Revision ID: 3f620c440544 4 | Revises: e632d689de5 5 | Create Date: 2018-11-22 09:35:17.988985 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '3f620c440544' 11 | down_revision = 'e632d689de5' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('autocomplete_parameter', sa.Column('poi_types_json', sa.Text(), nullable=True)) 19 | 20 | 21 | def downgrade(): 22 | op.drop_column('autocomplete_parameter', 'poi_types_json') 23 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/9d7151d79dc3_add_config_min_ridesharing.py: -------------------------------------------------------------------------------- 1 | """ 2 | Add attribute min_ridesharing in instance 3 | 4 | Revision ID: 9d7151d79dc3 5 | Revises: 3cf7f605e9ac 6 | Create Date: 2020-11-04 10:45:18.768646 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = '9d7151d79dc3' 12 | down_revision = '3cf7f605e9ac' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | 17 | 18 | def upgrade(): 19 | op.add_column('instance', sa.Column('min_ridesharing', sa.Integer(), nullable=False, server_default='600')) 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('instance', 'min_ridesharing') 24 | -------------------------------------------------------------------------------- /docker/libkeepalive-0.3/src/Makefile: -------------------------------------------------------------------------------- 1 | # _ _ _ _ _ _ 2 | # | (_) |__ | | _____ ___ _ __ __ _| (_)_ _____ 3 | # | | | '_ \| |/ / _ \/ _ \ '_ \ / _` | | \ \ / / _ \ 4 | # | | | |_) | < __/ __/ |_) | (_| | | |\ V / __/ 5 | # |_|_|_.__/|_|\_\___|\___| .__/ \__,_|_|_| \_/ \___| 6 | # |_| 7 | # 8 | # (C) Fabio Busatto 9 | 10 | CC=gcc 11 | CFLAGS=-fPIC -ansi -pedantic -Wall 12 | LDFLAGS=-shared -Wl,-soname,libkeepalive.so 13 | LDLIBS=-ldl 14 | 15 | default: libkeepalive.so 16 | 17 | %.so: %.o 18 | $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) 19 | 20 | clean: 21 | rm -f *.so *.o 22 | -------------------------------------------------------------------------------- /source/cities/alembic/versions/c2373c7750f_add_index_to_boundary.py: -------------------------------------------------------------------------------- 1 | """Add index to boundary 2 | 3 | Revision ID: c2373c7750f 4 | Revises: 15e13307464d 5 | Create Date: 2014-09-17 10:18:24.739440 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'c2373c7750f' 11 | down_revision = '15e13307464d' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.create_index( 19 | 'administrative_regions_boundary_idx', 'administrative_regions', ['boundary'], postgresql_using='gist' 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_index('administrative_regions_boundary_idx') 25 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/2e1a3cb6555b_headsign_in_stop_time.py: -------------------------------------------------------------------------------- 1 | """headsign in stop_time 2 | 3 | Revision ID: 2e1a3cb6555b 4 | Revises: 1cec3dee6597 5 | Create Date: 2015-07-24 10:27:41.674943 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '2e1a3cb6555b' 11 | down_revision = '1cec3dee6597' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'stop_time', sa.Column('headsign', sa.TEXT(), primary_key=False, nullable=True), schema='navitia' 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('stop_time', 'headsign', schema='navitia') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/06be8f8c0f18_add_api_backends.py: -------------------------------------------------------------------------------- 1 | """Add_api_backends 2 | 3 | Revision ID: 06be8f8c0f18 4 | Revises: 8b3ddc6272b0 5 | Create Date: 2025-09-04 12:18:10.528227 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '06be8f8c0f18' 11 | down_revision = '8b3ddc6272b0' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from sqlalchemy.dialects import postgresql 16 | 17 | 18 | def upgrade(): 19 | op.add_column('instance', sa.Column('api_backends', postgresql.JSONB(astext_type=sa.Text()), nullable=True)) 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('instance', 'api_backends') 24 | -------------------------------------------------------------------------------- /source/cmake_modules/FindGoogleTcmalloc.cmake: -------------------------------------------------------------------------------- 1 | if(GOOGLETCMALLOC_INCLUDE_DIR) 2 | # be silent if already found 3 | set(GOOGLETCMALLOC_FIND_QUIETLY TRUE) 4 | endif() 5 | 6 | find_path(GOOGLETCMALLOC_INCLUDE_DIR gperftools/malloc_extension.h PATH "${LIB_PREFIX}") 7 | 8 | if(GOOGLETCMALLOC_INCLUDE_DIR) 9 | set(GOOGLETCMALLOC_FOUND TRUE) 10 | endif() 11 | 12 | if(GOOGLETCMALLOC_FOUND) 13 | if(NOT GOOGLETCMALLOC_FIND_QUIETLY) 14 | message(STATUS "Found tcmalloc in ${GOOGLETCMALLOC_INCLUDE_DIR}/gperftools/malloc_extension.h") 15 | endif() 16 | else() 17 | message(FATAL_ERROR "Could not find gperftools/malloc_extension.h") 18 | endif() 19 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/c7010efdcf62_add_poi_access_points.py: -------------------------------------------------------------------------------- 1 | """Add new column: poi_access_points 2 | 3 | Revision ID: c7010efdcf62 4 | Revises: 04f9b89e3ef5 5 | Create Date: 2023-04-20 15:47:51.298091 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'c7010efdcf62' 11 | down_revision = '04f9b89e3ef5' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('poi_access_points', sa.Boolean(), server_default='False', nullable=False) 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'poi_access_points') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/105823db902c_add_autocomplete_backend.py: -------------------------------------------------------------------------------- 1 | """Add autocomplete_backend to Instance 2 | 3 | Revision ID: 105823db902c 4 | Revises: 483639f1f00 5 | Create Date: 2018-08-30 07:57:48.630448 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '105823db902c' 11 | down_revision = '483639f1f00' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('autocomplete_backend', sa.Text(), nullable=False, server_default='kraken') 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'autocomplete_backend') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/4af6f969bfa8_rename_family_type.py: -------------------------------------------------------------------------------- 1 | """ rename autocomplete's dataset family_type 2 | 3 | Revision ID: 4af6f969bfa8 4 | Revises: 132cbd5a61a4 5 | Create Date: 2017-01-16 15:11:10.661733 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4af6f969bfa8' 11 | down_revision = '132cbd5a61a4' 12 | 13 | from alembic import op 14 | 15 | 16 | def upgrade(): 17 | op.execute("update data_set set family_type = 'autocomplete_' || type where family_type = 'autocomplete';") 18 | 19 | 20 | def downgrade(): 21 | op.execute("update data_set set family_type = 'autocomplete' where family_type like 'autocomplete_%';") 22 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/b413ec1e3bbc_add_stop_points_nearby_duration.py: -------------------------------------------------------------------------------- 1 | """empty message 2 | 3 | Revision ID: b413ec1e3bbc 4 | Revises: c7e1cd821c6c 5 | Create Date: 2020-07-06 16:52:54.086090 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'b413ec1e3bbc' 11 | down_revision = 'c7e1cd821c6c' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('stop_points_nearby_duration', sa.Integer(), server_default='300', nullable=False) 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'stop_points_nearby_duration') 25 | -------------------------------------------------------------------------------- /source/benchmark/config.py: -------------------------------------------------------------------------------- 1 | import datetime 2 | 3 | NAVITIA_API_URL = 'http://127.0.0.1:5000/v1' 4 | COVERAGE = 'stif' 5 | TOKEN = '' 6 | DISTANT_BENCH_OUTPUT = 'Navitia-Multimodal-Bench-Output' 7 | OUTPUT_DIR = "{}/output/{}/{}".format( 8 | DISTANT_BENCH_OUTPUT, COVERAGE, datetime.datetime.now().strftime("%Y%m%dT%H%M%S") 9 | ) 10 | 11 | # setup logger 12 | import logging 13 | 14 | logger = logging.getLogger('bench.py') 15 | logger.setLevel(logging.DEBUG) 16 | ch = logging.StreamHandler() 17 | ch.setLevel(logging.DEBUG) 18 | formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') 19 | ch.setFormatter(formatter) 20 | logger.addHandler(ch) 21 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/1faee1d2551a_add_headsign_in_vehiclejourney.py: -------------------------------------------------------------------------------- 1 | """Add_headsign_in_vehiclejourney 2 | 3 | Revision ID: 1faee1d2551a 4 | Revises: 844a9fa86ad2 5 | Create Date: 2020-05-12 16:43:03.076464 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '1faee1d2551a' 11 | down_revision = '844a9fa86ad2' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column('vehicle_journey', sa.Column('headsign', sa.TEXT(), nullable=True), schema='navitia') 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('vehicle_journey', 'headsign', schema='navitia') 24 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/c3da2283d4a_text_color_line.py: -------------------------------------------------------------------------------- 1 | """text_color_line 2 | 3 | Revision ID: c3da2283d4a 4 | Revises: 4ccd66ece649 5 | Create Date: 2015-11-19 15:55:03.740677 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'c3da2283d4a' 11 | down_revision = '4ccd66ece649' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | from sqlalchemy.dialects import postgresql 17 | 18 | 19 | def upgrade(): 20 | op.add_column('line', sa.Column('text_color', sa.TEXT(), nullable=True), schema='navitia') 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('line', 'text_color', schema='navitia') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/6f2635ce00b4_add_max_taxi_duration_to_pt.py: -------------------------------------------------------------------------------- 1 | """add max_taxi_duration_to_pt 2 | 3 | Revision ID: 6f2635ce00b4 4 | Revises: 858b24967ff2 5 | Create Date: 2019-12-04 12:12:42.130204 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '6f2635ce00b4' 11 | down_revision = '858b24967ff2' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('max_taxi_duration_to_pt', sa.Integer(), nullable=False, server_default='1800') 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'max_taxi_duration_to_pt') 25 | -------------------------------------------------------------------------------- /source/routing/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | FILE(GLOB ROUTING_SRC "*.cpp") 3 | 4 | add_library(routing ${ROUTING_SRC}) 5 | target_link_libraries(routing georef autocomplete pthread) 6 | 7 | add_executable(benchmark benchmark.cpp) 8 | target_link_libraries(benchmark data boost_program_options) 9 | 10 | add_executable(benchmark_raptor_cache benchmark_raptor_cache.cpp) 11 | target_link_libraries(benchmark_raptor_cache boost_program_options data profiler) 12 | 13 | add_executable(benchmark_full benchmark_full.cpp) 14 | target_link_libraries(benchmark_full boost_program_options data) 15 | 16 | # Add tests 17 | if(NOT SKIP_TESTS) 18 | add_subdirectory(tests) 19 | endif(NOT SKIP_TESTS) 20 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/14346346596e_add_direction_type_column_in_route_table.py: -------------------------------------------------------------------------------- 1 | """add_direction_type_column_in_route_table 2 | 3 | Revision ID: 14346346596e 4 | Revises: 59f4456a029 5 | Create Date: 2015-11-25 15:07:39.179241 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '14346346596e' 11 | down_revision = '59f4456a029' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column('route', sa.Column('direction_type', sa.TEXT(), nullable=True), schema='navitia') 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('route', 'direction_type', schema='navitia') 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/1173ed75e96c_correct_default_value_max_duration.py: -------------------------------------------------------------------------------- 1 | """Fix default value of max_duration 2 | 3 | Revision ID: 1173ed75e96c 4 | Revises: 3011cf480291 5 | Create Date: 2015-12-14 16:58:10.243364 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '1173ed75e96c' 11 | down_revision = '3011cf480291' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.alter_column('instance', 'max_duration', existing_type=sa.INTEGER(), server_default='86400') 19 | 20 | 21 | def downgrade(): 22 | op.alter_column('instance', 'max_duration', existing_type=sa.INTEGER(), server_default='14400') 23 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_info/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/osm_and_gtfs/gtfs/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/poi/gtfs_google_example/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_dst/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_line_without_network/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_with_feed_start_end_date/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/1918ed13e84f_arrival_transfer_penalty.py: -------------------------------------------------------------------------------- 1 | """ 2 | Add column arrival_transfer_penalty in instance 3 | 4 | Revision ID: 1918ed13e84f 5 | Revises: fe508248efbd 6 | Create Date: 2021-05-12 17:51:03.192049 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = '1918ed13e84f' 12 | down_revision = 'fe508248efbd' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', sa.Column('arrival_transfer_penalty', sa.Integer(), server_default='120', nullable=False) 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('instance', 'arrival_transfer_penalty') 26 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/4fa7f3f529e_add_max_additional_changes.py: -------------------------------------------------------------------------------- 1 | """Add max_additional_connections in the table instance 2 | 3 | Revision ID: 4fa7f3f529e 4 | Revises: 2d56e135cd38 5 | Create Date: 2016-05-11 10:48:32.093523 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4fa7f3f529e' 11 | down_revision = '2d56e135cd38' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('max_additional_connections', sa.Integer(), server_default='2', nullable=False) 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'max_additional_connections') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/c3ba234a3b9c_add_on_street_bike_parking_duration.py: -------------------------------------------------------------------------------- 1 | """empty message 2 | 3 | Revision ID: c3ba234a3b9c 4 | Revises: fd13bb348665 5 | Create Date: 2024-11-29 11:45:56.806718 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'c3ba234a3b9c' 11 | down_revision = 'fd13bb348665' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', 20 | sa.Column('on_street_bike_parking_duration', sa.Integer(), nullable=False, server_default='300'), 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('instance', 'on_street_bike_parking_duration') 26 | -------------------------------------------------------------------------------- /fixtures/ed/gtfs_google_example_no_calendar/stops.txt: -------------------------------------------------------------------------------- 1 | stop_id,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,platform_code 2 | FUR_CREEK_RES,Furnace Creek Resort (Demo),,36.425288,-117.133162,,, 3 | BEATTY_AIRPORT,Nye County Airport (Demo),,36.868446,-116.784582,,, 4 | BULLFROG,Bullfrog (Demo),,36.88108,-116.81797,,, 5 | STAGECOACH,Stagecoach Hotel & Casino (Demo),,36.915682,-116.751677,,, 6 | NADAV,North Ave / D Ave N (Demo),,36.914893,-116.76821,,, 7 | NANAA,North Ave / N A Ave (Demo),,36.914944,-116.761472,,, 8 | DADAN,Doing Ave / D Ave N (Demo),,36.909489,-116.768242,,, 9 | EMSI,E Main St / S Irving St (Demo),,36.905697,-116.76218,,, 10 | AMV,Amargosa Valley (Demo),,36.641496,-116.40094,,,A 11 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/483639f1f00_add_max_nb_crowfly_by_mode.py: -------------------------------------------------------------------------------- 1 | """add max_nb_crowfly_by_mode, this parameter is used by distributed scenario 2 | Revision ID: 483639f1f00 3 | Revises: 4cd2ff722a7c 4 | Create Date: 2018-08-21 11:48:08.941764 5 | 6 | """ 7 | 8 | # revision identifiers, used by Alembic. 9 | revision = '483639f1f00' 10 | down_revision = '4cd2ff722a7c' 11 | 12 | from alembic import op 13 | import sqlalchemy as sa 14 | 15 | 16 | def upgrade(): 17 | import json 18 | 19 | op.add_column('instance', sa.Column('max_nb_crowfly_by_mode', sa.PickleType(pickler=json), nullable=True)) 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('instance', 'max_nb_crowfly_by_mode') 24 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/242138b08c92_realtime_pool_size.py: -------------------------------------------------------------------------------- 1 | """ 2 | Settings for parallel calls to real-time proxies : realtime_pool_size 3 | - defines the number of greenlets to use 4 | 5 | Revision ID: 242138b08c92 6 | Revises: 3acdde6329db 7 | Create Date: 2018-02-15 11:42:01.190624 8 | 9 | """ 10 | 11 | # revision identifiers, used by Alembic. 12 | revision = '242138b08c92' 13 | down_revision = '3acdde6329db' 14 | 15 | from alembic import op 16 | import sqlalchemy as sa 17 | 18 | 19 | def upgrade(): 20 | op.add_column('instance', sa.Column('realtime_pool_size', sa.Integer(), nullable=True)) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'realtime_pool_size') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/5127fcffb248_add_asynchronous_ridesharing_mode.py: -------------------------------------------------------------------------------- 1 | """add asynchronous ridesharing option 2 | 3 | Revision ID: 5127fcffb248 4 | Revises: b413ec1e3bbc 5 | Create Date: 2020-09-15 15:16:26.651648 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '5127fcffb248' 11 | down_revision = 'b413ec1e3bbc' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', 20 | sa.Column('asynchronous_ridesharing', sa.Boolean(), nullable=False, server_default=sa.false()), 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('instance', 'asynchronous_ridesharing') 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/3131d5bf5570_add_full_sn_geometries_on_instances.py: -------------------------------------------------------------------------------- 1 | """add full_sn_geometries on instances for managing geometries in ed2nav 2 | 3 | Revision ID: 3131d5bf5570 4 | Revises: 162b4fa5836a 5 | Create Date: 2016-08-22 13:55:00.870197 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '3131d5bf5570' 11 | down_revision = '162b4fa5836a' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', sa.Column('full_sn_geometries', sa.Boolean(), server_default='false', nullable=False) 20 | ) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'full_sn_geometries') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/4d83f15e09b9_night_bus_filter_max_factor_float.py: -------------------------------------------------------------------------------- 1 | """Fix default type of night_bus_filter_max_factor 2 | 3 | Revision ID: 4d83f15e09b9 4 | Revises: cf2becf2dc1 5 | Create Date: 2016-02-23 16:22:59.544317 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4d83f15e09b9' 11 | down_revision = 'cf2becf2dc1' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.alter_column('instance', 'night_bus_filter_max_factor', existing_type=sa.Integer(), type_=sa.Float()) 19 | 20 | 21 | def downgrade(): 22 | op.alter_column('instance', 'night_bus_filter_max_factor', existing_type=sa.Float(), type_=sa.Integer()) 23 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/lines.txt: -------------------------------------------------------------------------------- 1 | line_id,line_code,line_name,forward_line_name,forward_direction,backward_line_name,backward_direction,line_color,line_text_color,line_sort_order,network_id,commercial_mode_id,contributor_id,geometry_id,line_opening_time,line_closing_time 2 | SAR:0080,"80","Rennes (Henri Fréville) <> Laillé (Gingouillère) <> Bruz (DGA-MI)","Laillé (Gingouillère) <> Bruz (DGA-MI)",SAR:SA:4708,"Rennes (Henri Fréville)",SAR:SA:1447,BA65A5,FFFFFF,48,STAR,Bus,SAR,,06:50:00,20:43:00 3 | SAR:0072,"72","Rennes (Henri Fréville) -> Chartres-de-Bretagne -> Pont-Péan (Bois Esnault)","Chartres-de-Bretagne - Pont-Péan - Laillé",SAR:SA:3901,"Rennes (Henri Fréville)",SAR:SA:1447,004F9E,FFFFFF,41,STAR,Bus,SAR,,06:05:00,26:24:00 4 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/2c510fae878d_add_calendar_to_navitia_types.py: -------------------------------------------------------------------------------- 1 | """add calendar to navitia types 2 | 3 | The Calendar type was missing from the navitia.object_type table 4 | 5 | Revision ID: 2c510fae878d 6 | Revises: 14e13cf7a042 7 | Create Date: 2015-05-15 15:08:24.766935 8 | 9 | """ 10 | 11 | # revision identifiers, used by Alembic. 12 | revision = '2c510fae878d' 13 | down_revision = '14e13cf7a042' 14 | 15 | from alembic import op 16 | import sqlalchemy as sa 17 | import geoalchemy2 as ga 18 | 19 | 20 | def upgrade(): 21 | op.execute("insert into navitia.object_type VALUES (24, 'Calendar');") 22 | 23 | 24 | def downgrade(): 25 | op.execute("delete from navitia.object_type where id = 24;") 26 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/75681b9c74aa_add_ghost_words.py: -------------------------------------------------------------------------------- 1 | """Add attribute ghost_words in the table instance 2 | 3 | Revision ID: 75681b9c74aa 4 | Revises: 45b018b3198b 5 | Create Date: 2022-11-15 09:24:40.871668 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '75681b9c74aa' 11 | down_revision = '45b018b3198b' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from sqlalchemy.dialects import postgresql 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', sa.Column('ghost_words', postgresql.ARRAY(sa.Text()), server_default='{}', nullable=True) 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('instance', 'ghost_words') 26 | -------------------------------------------------------------------------------- /source/scripts/init_db.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #You have to be logged as postgres to execute this script 3 | if [ $# -ne 1 ] 4 | then 5 | echo 'fichier de conf requis en paramétre' 6 | exit 1 7 | fi 8 | 9 | if [ ! -r $1 ] 10 | then 11 | echo "$1 n'est pas lisible" 12 | exit 2 13 | fi 14 | 15 | #on s'arrete en cas d'erreur 16 | set -e 17 | source $1 18 | #on rapatrie les variables suivantes: 19 | # - hostname 20 | # - username 21 | # - dbname 22 | # - PGPASSWORD est exporter 23 | 24 | 25 | #installation de postgis sur la base 26 | 27 | psql --set ON_ERROR_STOP=1 --dbname=$dbname -f "$postgis_dir/postgis.sql" 28 | 29 | psql --set ON_ERROR_STOP=1 --dbname=$dbname -f "$postgis_dir/spatial_ref_sys.sql" 30 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/12660cd87568_main_destination_for_route.py: -------------------------------------------------------------------------------- 1 | """main destination for route 2 | 3 | Revision ID: 12660cd87568 4 | Revises: 29fc422c56cb 5 | Create Date: 2015-05-05 13:47:06.507810 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '12660cd87568' 11 | down_revision = '3bea0b3cb116' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'route', 20 | sa.Column('destination_stop_area_id', sa.BIGINT(), primary_key=False, nullable=True), 21 | schema='navitia', 22 | ) 23 | 24 | 25 | def downgrade(): 26 | op.drop_column('route', 'destination_stop_area_id', schema='navitia') 27 | -------------------------------------------------------------------------------- /docker/debian11/instances-configurator.dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:bullseye-slim 2 | 3 | 4 | COPY ./source/sql/alembic /usr/share/navitia/ed/alembic 5 | COPY ./source/sql/requirements.txt /tmp/requirements.txt 6 | COPY ./source/cities /usr/share/navitia/cities 7 | COPY ./docker/templates/* /templates/ 8 | 9 | COPY docker/instances_configuration.sh / 10 | RUN chmod +x /instances_configuration.sh 11 | 12 | RUN apt clean \ 13 | && apt update --fix-missing \ 14 | && apt install -o Acquire::Retries=10 -y libpq5 python3.9-dev python3-pip postgresql-client gettext-base \ 15 | && pip3 install --no-cache-dir -U -r /tmp/requirements.txt \ 16 | && apt autoremove -y 17 | 18 | ENTRYPOINT ["/bin/bash","/instances_configuration.sh"] 19 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/2d86200bcb93_co2_emission_column_added.py: -------------------------------------------------------------------------------- 1 | """co2_emission column added 2 | 3 | Revision ID: 2d86200bcb93 4 | Revises: 82749d34a18 5 | Create Date: 2014-12-30 17:23:39.654559 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '2d86200bcb93' 11 | down_revision = '82749d34a18' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'physical_mode', 21 | sa.Column('co2_emission', sa.FLOAT(), nullable=False, server_default='0'), 22 | schema='navitia', 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('physical_mode', 'co2_emission', schema='navitia') 28 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/82749d34a18_frequency_vj.py: -------------------------------------------------------------------------------- 1 | """add field to know if a vj is a frequency vj 2 | 3 | Revision ID: 82749d34a18 4 | Revises: 43822e80c45a 5 | Create Date: 2014-12-22 14:56:37.358868 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '82749d34a18' 11 | down_revision = '43822e80c45a' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'vehicle_journey', 21 | sa.Column('is_frequency', sa.BOOLEAN(), nullable=True, default=False), 22 | schema='navitia', 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('vehicle_journey', 'is_frequency', schema='navitia') 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /source/tyr/.env 2 | stats 3 | debug 4 | /build 5 | /documentation/slate/build 6 | Doc 7 | qtcreator-build 8 | ui_mainwindow.h 9 | documentation/build 10 | *.swp 11 | source/CMakeLists.txt.user 12 | tags 13 | *.py[co] 14 | *_pb2.py 15 | *_pb2.py.bak 16 | *.idea* 17 | .ycm_extra_conf.py 18 | DEBIAN/ 19 | build_package/ 20 | *.log 21 | *.orig 22 | *~ 23 | source/scripts/settings_jormungandr.sh 24 | dev_settings.sh 25 | dev_settings.py 26 | debian/navitia-ed 27 | debian/navitia-jormungandr 28 | debian/tmp 29 | debian/*.substvars 30 | debian/*.debhelper 31 | source/jormungandr/jormungandr/_version.py 32 | source/compile_commands.json 33 | .cache 34 | *.gcov 35 | .mypy_cache 36 | .pytest_cache 37 | .DS_Store 38 | dev 39 | docker_build 40 | .vscode -------------------------------------------------------------------------------- /source/sql/alembic/versions/2c69b03d20fc_add_skipped_stop_in_stop_time.py: -------------------------------------------------------------------------------- 1 | """add_skipped_stop_in_stop_time 2 | 3 | Revision ID: 2c69b03d20fc 4 | Revises: 2233bc5aef67 5 | Create Date: 2021-10-14 16:48:30.105562 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '2c69b03d20fc' 11 | down_revision = '2233bc5aef67' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'stop_time', 21 | sa.Column('skipped_stop', sa.BOOLEAN(), nullable=False, server_default="false"), 22 | schema='navitia', 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('stop_time', 'skipped_stop', schema='navitia') 28 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/2ec1da1552ec_add_dataset_state.py: -------------------------------------------------------------------------------- 1 | """add data_set.state 2 | 3 | Revision ID: 2ec1da1552ec 4 | Revises: 6f2635ce00b4 5 | Create Date: 2019-12-30 14:51:59.149999 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '2ec1da1552ec' 11 | down_revision = '6f2635ce00b4' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | dataset_state = sa.Enum('pending', 'running', 'done', 'failed', name='dataset_state') 18 | 19 | 20 | def upgrade(): 21 | dataset_state.create(op.get_bind()) 22 | op.add_column('data_set', sa.Column('state', dataset_state, nullable=True)) 23 | 24 | 25 | def downgrade(): 26 | op.drop_column('data_set', 'state') 27 | dataset_state.drop(op.get_bind()) 28 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/64854ef94b3_block_until_column_updated_for_date_.py: -------------------------------------------------------------------------------- 1 | """'block_until' column updated for date format. 2 | 3 | Revision ID: 64854ef94b3 4 | Revises: 2320ba18ce1 5 | Create Date: 2015-12-22 15:15:21.597541 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '64854ef94b3' 11 | down_revision = '2320ba18ce1' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.drop_column('user', 'block_until') 19 | op.add_column('user', sa.Column('block_until', sa.DateTime(), nullable=True)) 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('user', 'block_until') 24 | op.add_column('user', sa.Column('block_until', sa.DateTime(timezone=True), nullable=True)) 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/e94705a6f9a1_add_attribute_mobility_scenarios.py: -------------------------------------------------------------------------------- 1 | """Add attribute mobility_scenarios_enabled in the table instance 2 | 3 | Revision ID: e94705a6f9a1 4 | Revises: 06be8f8c0f18 5 | Create Date: 2025-09-10 11:26:39.892455 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'e94705a6f9a1' 11 | down_revision = '06be8f8c0f18' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from sqlalchemy.dialects import postgresql 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', sa.Column('mobility_scenarios_enabled', sa.Boolean(), server_default='False', nullable=False) 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('instance', 'mobility_scenarios_enabled') 26 | -------------------------------------------------------------------------------- /documentation/slate/source/includes/timetables.md: -------------------------------------------------------------------------------- 1 |

Timetables

2 | 3 | The Timetables features gives you access to line schedules on public transport, 4 | allowing you to find the times public transport is expected at specific stops. 5 | 6 | It returns a variety of differents informations, including: stop points in right order, times, 7 | accessibility informations, vehicle informations, etc. 8 | 9 | In order to display line schedules, you may have to use these APIs (click on them for details): 10 | 11 | - **[Public transportation objects](#pt-ref)**: List of the public transport 12 | objects of a region 13 | - **[Route Schedules](#route-schedules)** and **[Stop Schedules](#stop-schedules)**: 14 | Compute time tables for a given resource 15 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/routes.txt: -------------------------------------------------------------------------------- 1 | route_id,route_name,direction_type,line_id,geometry_id,destination_id 2 | JeanJaures_GareMennecy,JeanJaures GareMennecy,outbound,JeanJaures_GareMennecy,, 3 | GareMennecy_CorbeilEssonnes,Gare Mennecy Corbeil Essonnes,outbound,GareMennecy_CorbeilEssonnes,, 4 | MoulinGalant_MoulinFoulon,Moulin Galant Moulin Foulon,inbound,MoulinGalant_MoulinFoulon,, 5 | bus_aa,Vers gare mennecy,inbound,bus_aa,, 6 | bus_bb,Vers le Bras de Fer,inbound,bus_bb,, 7 | Juvisy:RisOrangis,Vers Ris Orangis,inbound,Juvisy:RisOrangis,, 8 | JeanJaures_GareMennecy_same_departure_arrival_times,TAD Same departure Arrival times,outbound,JeanJaures_GareMennecy_same_departure_arrival_times,, 9 | first_time_fixe,horaire de début est fixe,outbound,first_time_fixe,, 10 | 11 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/20d8caa23b26_add_language_in_instance.py: -------------------------------------------------------------------------------- 1 | """ 2 | Add attribute language in the table instance 3 | 4 | Revision ID: 20d8caa23b26 5 | Revises: 0f57c3342d97 6 | Create Date: 2023-08-08 11:32:32.294073 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = '20d8caa23b26' 12 | down_revision = '0f57c3342d97' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | from sqlalchemy.dialects import postgresql 17 | from navitiacommon import default_values 18 | 19 | 20 | def upgrade(): 21 | op.add_column( 22 | 'instance', sa.Column('language', sa.Text(), server_default=default_values.language, nullable=False) 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('instance', 'language') 28 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/ca5a0a70a9ba_add_attribute_disruptions_on_poi.py: -------------------------------------------------------------------------------- 1 | """ 2 | Add attribute disruptions_on_poi in the table instance with default value False 3 | 4 | Revision ID: ca5a0a70a9ba 5 | Revises: c3ba234a3b9c 6 | Create Date: 2024-12-04 11:47:52.807680 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = 'ca5a0a70a9ba' 12 | down_revision = 'c3ba234a3b9c' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | from sqlalchemy.dialects import postgresql 17 | 18 | 19 | def upgrade(): 20 | op.add_column( 21 | 'instance', sa.Column('disruptions_on_poi', sa.Boolean(), server_default='false', nullable=False) 22 | ) 23 | 24 | 25 | def downgrade(): 26 | op.drop_column('instance', 'disruptions_on_poi') 27 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/465a7431358a_add_import_ntfs_to_mimir.py: -------------------------------------------------------------------------------- 1 | """Add import_ntfs_to_mimir field in instance 2 | 3 | Adding new bool flag to activate the data loading 4 | into mimir, when files are ntfs. 5 | 6 | Revision ID: 465a7431358a 7 | Revises: 242138b08c92 8 | Create Date: 2018-02-23 14:50:23.086805 9 | 10 | """ 11 | 12 | # revision identifiers, used by Alembic. 13 | revision = '465a7431358a' 14 | down_revision = '242138b08c92' 15 | 16 | from alembic import op 17 | import sqlalchemy as sa 18 | 19 | 20 | def upgrade(): 21 | op.add_column( 22 | 'instance', sa.Column('import_ntfs_in_mimir', sa.Boolean(), nullable=False, server_default='False') 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('instance', 'import_ntfs_in_mimir') 28 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/5ad2dddab995_poi_types_json.py: -------------------------------------------------------------------------------- 1 | """Add poi_type_json table 2 | 3 | Revision ID: 5ad2dddab995 4 | Revises: c5cd5a41def 5 | Create Date: 2016-11-04 17:07:25.934771 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '5ad2dddab995' 11 | down_revision = 'c5cd5a41def' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.create_table( 19 | 'poi_type_json', 20 | sa.Column('poi_types_json', sa.Text(), nullable=False), 21 | sa.Column('instance_id', sa.Integer(), primary_key=True, nullable=False), 22 | sa.ForeignKeyConstraint(['instance_id'], ['instance.id']), 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_table('poi_type_json') 28 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/56c1c7a19078_add_visible_parameter.py: -------------------------------------------------------------------------------- 1 | """add visible parameter 2 | 3 | Revision ID: 56c1c7a19078 4 | Revises: 46168c7abc89 5 | Create Date: 2018-11-13 15:33:38.146755 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '56c1c7a19078' 11 | down_revision = '46168c7abc89' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | from sqlalchemy.dialects import postgresql 17 | 18 | 19 | def upgrade(): 20 | ### Add new flag for input/ouput visibility 21 | op.add_column( 22 | 'way', sa.Column('visible', sa.BOOLEAN(), nullable=False, server_default='true'), schema='georef' 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('way', 'visible', schema='georef') 28 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/46168c7abc89_change_fare_zone_id_to_string.py: -------------------------------------------------------------------------------- 1 | """change fare_zone to string in the table stop_point 2 | 3 | Revision ID: 46168c7abc89 4 | Revises: 11b1fb5bd523 5 | Create Date: 2017-08-30 17:03:17.764614 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '46168c7abc89' 11 | down_revision = '11b1fb5bd523' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | from sqlalchemy.dialects import postgresql 17 | 18 | 19 | def upgrade(): 20 | op.execute("ALTER TABLE navitia.stop_point ALTER COLUMN fare_zone TYPE text using fare_zone::text;") 21 | 22 | 23 | def downgrade(): 24 | op.execute("ALTER TABLE navitia.stop_point ALTER COLUMN fare_zone TYPE integer using fare_zone::integer;") 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/5423986c3a51_add_app_name_on_keys.py: -------------------------------------------------------------------------------- 1 | """add an app_name for the keys 2 | 3 | Revision ID: 5423986c3a51 4 | Revises: 1b1bc5bf715a 5 | Create Date: 2014-12-05 15:54:02.680699 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '5423986c3a51' 11 | down_revision = '1b1bc5bf715a' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | ### commands auto generated by Alembic - please adjust! ### 19 | op.add_column('key', sa.Column('app_name', sa.Text(), nullable=True)) 20 | ### end Alembic commands ### 21 | 22 | 23 | def downgrade(): 24 | ### commands auto generated by Alembic - please adjust! ### 25 | op.drop_column('key', 'app_name') 26 | ### end Alembic commands ### 27 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/361f3993960e_import_stops_in_global_autocomplete_.py: -------------------------------------------------------------------------------- 1 | """import stops in global autocomplete (mimir) 2 | 3 | Revision ID: 361f3993960e 4 | Revises: 57ee5581cc30 5 | Create Date: 2016-12-23 11:48:47.003811 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '361f3993960e' 11 | down_revision = '502b7c6fd00b' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('import_stops_in_mimir', sa.Boolean(), nullable=True)) 19 | op.execute('update instance set import_stops_in_mimir=false') 20 | op.alter_column('instance', 'import_stops_in_mimir', nullable=False) 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('instance', 'import_stops_in_mimir') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/214932354af8_private_poi_dataset.py: -------------------------------------------------------------------------------- 1 | """ Add column poi_dataset 2 | 3 | Revision ID: 214932354af8 4 | Revises: 57f52a929056 5 | Create Date: 2019-07-23 13:49:25.003582 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '214932354af8' 11 | down_revision = '57f52a929056' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | ### commands auto generated by Alembic - please adjust! ### 19 | op.add_column('instance', sa.Column('poi_dataset', sa.Text(), nullable=True)) 20 | ### end Alembic commands ### 21 | 22 | 23 | def downgrade(): 24 | ### commands auto generated by Alembic - please adjust! ### 25 | op.drop_column('instance', 'poi_dataset') 26 | ### end Alembic commands ### 27 | -------------------------------------------------------------------------------- /source/georef/tests/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | SET(GEOREF_SRC_TEST 2 | builder.h 3 | builder.cpp 4 | ) 5 | 6 | add_library(georef_test_utils ${GEOREF_SRC_TEST}) 7 | target_link_libraries(georef_test_utils georef) 8 | 9 | add_executable(georef_test georef_test.cpp) 10 | target_link_libraries(georef_test georef_test_utils ed ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ) 11 | ADD_BOOST_TEST(georef_test) 12 | 13 | add_executable(street_network_test street_network_test.cpp) 14 | target_link_libraries(street_network_test georef_test_utils ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ) 15 | ADD_BOOST_TEST(street_network_test) 16 | 17 | add_executable(path_finder_test path_finder_test.cpp) 18 | target_link_libraries(path_finder_test georef_test_utils ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ) 19 | ADD_BOOST_TEST(path_finder_test) 20 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/59f4456a029_license_and_website_in_contributor.py: -------------------------------------------------------------------------------- 1 | """license and website in contributor 2 | 3 | Revision ID: 59f4456a029 4 | Revises: c3da2283d4a 5 | Create Date: 2015-11-20 11:18:47.970759 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '59f4456a029' 11 | down_revision = 'c3da2283d4a' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('contributor', sa.Column('website', sa.TEXT(), nullable=True), schema='navitia') 19 | op.add_column('contributor', sa.Column('license', sa.TEXT(), nullable=True), schema='navitia') 20 | 21 | 22 | def downgrade(): 23 | op.drop_column('contributor', 'website', schema='navitia') 24 | op.drop_column('contributor', 'license', schema='navitia') 25 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/45b018b3198b_.py: -------------------------------------------------------------------------------- 1 | """empty message 2 | 3 | Revision ID: 45b018b3198b 4 | Revises: 535dfe5be550 5 | Create Date: 2022-06-16 14:42:38.533188 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '45b018b3198b' 11 | down_revision = '535dfe5be550' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from navitiacommon import default_values 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', 21 | sa.Column( 22 | 'filter_odt_journeys', 23 | sa.Boolean(), 24 | server_default='{}'.format(default_values.filter_odt_journeys), 25 | nullable=False, 26 | ), 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('instance', 'filter_odt_journeys') 32 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/42185d6d93cb_add_type_on_users.py: -------------------------------------------------------------------------------- 1 | """add a type column on user for authentication 2 | 3 | Revision ID: 42185d6d93cb 4 | Revises: 2a77596bdf40 5 | Create Date: 2015-04-16 08:42:07.405011 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '42185d6d93cb' 11 | down_revision = '2a77596bdf40' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | user_type = sa.Enum('with_free_instances', 'without_free_instances', 'super_user', name='user_type') 17 | 18 | 19 | def upgrade(): 20 | user_type.create(op.get_bind()) 21 | op.add_column('user', sa.Column('type', user_type, nullable=False, server_default='with_free_instances')) 22 | 23 | 24 | def downgrade(): 25 | op.drop_column('user', 'type') 26 | user_type.drop(op.get_bind()) 27 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/520d48947e65_successive_physical_mode_to_limit_id.py: -------------------------------------------------------------------------------- 1 | """add of successive_physical_mode_to_limit_id for instances in case id changes 2 | 3 | Revision ID: 520d48947e65 4 | Revises: 4fa7f3f529e 5 | Create Date: 2016-06-03 15:50:32.765884 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '520d48947e65' 11 | down_revision = '4fa7f3f529e' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column( 19 | 'instance', 20 | sa.Column( 21 | 'successive_physical_mode_to_limit_id', sa.Text(), server_default='physical_mode:Bus', nullable=False 22 | ), 23 | ) 24 | 25 | 26 | def downgrade(): 27 | op.drop_column('instance', 'successive_physical_mode_to_limit_id') 28 | -------------------------------------------------------------------------------- /documentation/rst/source/filter.rst: -------------------------------------------------------------------------------- 1 | .. _filter: 2 | 3 | The filter parameter 4 | ******************** 5 | 6 | 7 | The filter argument used for requesting public transport object are defined by the grammar defined below. See the previous examples 8 | :ref:`pt_introduction` to know how to use it. 9 | 10 | **filter** 11 | 12 | .. figure:: ptref_grammar/filter.png 13 | 14 | **selector** 15 | 16 | .. figure:: ptref_grammar/selector.png 17 | 18 | **object** 19 | 20 | .. figure:: ptref_grammar/object.png 21 | 22 | **attribute** 23 | 24 | .. figure:: ptref_grammar/attribute.png 25 | 26 | **bin_op** 27 | 28 | .. figure:: ptref_grammar/bin_op.png 29 | 30 | 31 | **value** 32 | 33 | .. figure:: ptref_grammar/value.png 34 | 35 | **escaped_value** 36 | 37 | .. figure:: ptref_grammar/escaped_value.png 38 | 39 | 40 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_with_zonal_odt/lines.txt: -------------------------------------------------------------------------------- 1 | line_id,line_code,line_name,forward_line_name,backward_line_name,line_color,line_text_color,line_sort_order,network_id,commercial_mode_id,geometry_id,line_opening_time,line_closing_time 2 | JeanJaures_GareMennecy,TAD,TAD,,,6ECA97,000000,,IDFM:1076,Bus,,, 3 | GareMennecy_CorbeilEssonnes,D,D,,,4890CD,FFFFFF,,IDFM:1076,Bus,,, 4 | MoulinGalant_MoulinFoulon,TAD,TAD,,,652C8F,FFFFFF,,IDFM:1076,Bus,,, 5 | bus_aa,AA,AA,,,652C8F,FFFFFF,,IDFM:1076,Bus,,, 6 | bus_bb,BB,BB,,,652C8F,FFFFFF,,IDFM:1076,Bus,,, 7 | Juvisy:RisOrangis,CC,Juvisy Ris Orangis,,,652C8F,FFFFFF,,IDFM:1076,Bus,,, 8 | JeanJaures_GareMennecy_same_departure_arrival_times,TAD,TAD Same departure Arrival times,,,6ECA97,000000,,IDFM:1076,Bus,,, 9 | first_time_fixe,TAD,horaire de début est fixe,,,6ECA97,000000,,IDFM:1076,Bus,,, 10 | -------------------------------------------------------------------------------- /fixtures/ed/poi/poi/poi_properties.txt: -------------------------------------------------------------------------------- 1 | poi_id;key;value 2 | TRANSP44_294;"addr:full";"Salle Polyvalente" 3 | CULT44_30021;"addr:postcode";"44170" 4 | ADM44_253;"addr:full";"4 r de bellevue" 5 | RELIG44_495;"addr:postcode";"44170" 6 | ADM85_97;"ref:INSEE";"85213" 7 | ADM53_172;"addr:city";"La Gravelle" 8 | ADM44_100;"addr:city";"Guenrouet" 9 | ADM44_100;"addr:city:2";"Guenrouet" 10 | ADM44_100;"addr:full";"17 r du moulin de la justice" 11 | ADM44_100;"addr:postcode";"44530" 12 | ADM44_100;"creation_date";"2013-10-09" 13 | ADM44_100;"modification_date";"2014-12-04" 14 | ADM44_100;"ref:INSEE";"44068" 15 | ADM44_100;"ref:INSEE:2";"44068" 16 | ADM44_100;"ref:PDL:IGN:category";"Justice et sécurité" 17 | ADM44_100;"ref:PDL:IGN:id";"ADM44_100" 18 | ADM44_100;"ref:PDL:IGN:subcategory";"Pompiers" 19 | ADM44_100;"source";"IGN" 20 | 21 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/1cec3dee6597_feed_info_table_added.py: -------------------------------------------------------------------------------- 1 | """feed_info table added 2 | 3 | Revision ID: 1cec3dee6597 4 | Revises: 538bc4ea9cd1 5 | Create Date: 2015-06-15 14:54:28.590546 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '1cec3dee6597' 11 | down_revision = '291c8dbbaed1' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.create_table( 20 | 'feed_info', 21 | sa.Column('key', sa.TEXT(), primary_key=True, nullable=False), 22 | sa.Column('value', sa.TEXT(), primary_key=False, nullable=True), 23 | sa.PrimaryKeyConstraint('key'), 24 | schema='navitia', 25 | ) 26 | 27 | 28 | def downgrade(): 29 | op.drop_table('feed_info', schema='navitia') 30 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/bd4a1dd22029_add_access_points.py: -------------------------------------------------------------------------------- 1 | """Add new column: access_points 2 | 3 | Revision ID: bd4a1dd22029 4 | Revises: efa1d64928ca 5 | Create Date: 2022-02-21 16:12:03.367595 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'bd4a1dd22029' 11 | down_revision = 'efa1d64928ca' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from navitiacommon import default_values 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', 21 | sa.Column( 22 | 'access_points', 23 | sa.Boolean(), 24 | server_default='{}'.format(default_values.access_points), 25 | nullable=False, 26 | ), 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('instance', 'access_points') 32 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/57ee5581cc30_add_is_open_data.py: -------------------------------------------------------------------------------- 1 | """add is_open_data field 2 | 3 | Revision ID: 57ee5581cc30 4 | Revises: 5ad2dddab995 5 | Create Date: 2016-11-21 16:50:06.889678 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '57ee5581cc30' 11 | down_revision = '5ad2dddab995' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('instance', sa.Column('is_open_data', sa.Boolean(), nullable=True)) 19 | op.execute('update instance set is_open_data=is_free') 20 | op.alter_column('instance', 'is_open_data', nullable=False) 21 | 22 | 23 | def downgrade(): 24 | ### commands auto generated by Alembic - please adjust! ### 25 | op.drop_column('instance', 'is_open_data') 26 | ### end Alembic commands ### 27 | -------------------------------------------------------------------------------- /docker/debian11/Dockerfile-mock-kraken: -------------------------------------------------------------------------------- 1 | FROM debian:bullseye-slim 2 | 3 | WORKDIR /srv/kraken 4 | 5 | RUN apt clean \ 6 | && apt update --fix-missing \ 7 | && apt install -o Acquire::Retries=10 -y libgoogle-perftools4 \ 8 | libboost-all-dev \ 9 | libprotobuf-dev \ 10 | liblog4cplus-2.0.5 \ 11 | libzmq3-dev \ 12 | libpqxx-dev \ 13 | netcat \ 14 | && apt purge -y \ 15 | && apt autoremove -y 16 | 17 | COPY ./docker_build/tests/mock-kraken/departure_board_test /srv/kraken/departure_board_test 18 | RUN chmod +x /srv/kraken/departure_board_test 19 | 20 | COPY ./docker_build/tests/mock-kraken/main_routing_test /srv/kraken/main_routing_test 21 | RUN chmod +x /srv/kraken/main_routing_test 22 | 23 | EXPOSE 30000 24 | ENV KRAKEN_GENERAL_zmq_socket=tcp://*:30000 25 | ENV KRAKEN_GENERAL_log_level=INFO 26 | -------------------------------------------------------------------------------- /fixtures/ed/ntfs_hlp/trips.txt: -------------------------------------------------------------------------------- 1 | route_id,service_id,trip_id,trip_headsign,block_id,company_id,physical_mode_id,trip_property_id,contributor_id,geometry_id,dataset_id 2 | SAR:0072,12,SAR:null012972-1,start_stayin_diff_sp,6919,SAR:1,Bus,1,SAR,SAR:0, 3 | SAR:0080,12,SAR:null014029-1,end_stayin_diff_sp,6919,SAR:1,Bus,1,SAR,SAR:0, 4 | SAR:0072,12,SAR:null012972-2,start_stayin_diff_sp_with_data,7020,SAR:1,Bus,1,SAR,SAR:0, 5 | SAR:0080,12,SAR:null014029-2,end_stayin_diff_sp_with_data,7020,SAR:1,Bus,1,SAR,SAR:0, 6 | SAR:0072,12,SAR:null012972-3,start_stayin_same_sp,8030,SAR:1,Bus,1,SAR,SAR:0, 7 | SAR:0080,12,SAR:null014029-3,end_stayin_same_sp,8030,SAR:1,Bus,1,SAR,SAR:0, 8 | SAR:0072,12,SAR:null012972-4,start_stayin_same_sp_with_data,9040,SAR:1,Bus,1,SAR,SAR:0, 9 | SAR:0080,12,SAR:null014029-4,end_stayin_same_sp_with_data,9040,SAR:1,Bus,1,SAR,SAR:0, 10 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/ab54d9575a99_add_max_waiting.py: -------------------------------------------------------------------------------- 1 | """max_waiting_duration added in instance 2 | 3 | Revision ID: ab54d9575a99 4 | Revises: 43b19d690da2 5 | Create Date: 2021-04-02 16:27:20.489654 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = 'ab54d9575a99' 11 | down_revision = '43b19d690da2' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from navitiacommon import default_values 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', 21 | sa.Column( 22 | 'max_waiting_duration', 23 | sa.Integer(), 24 | server_default='{}'.format(default_values.max_waiting_duration), 25 | nullable=False, 26 | ), 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('instance', 'max_waiting_duration') 32 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/502b7c6fd00b_remove_poi_type_table.py: -------------------------------------------------------------------------------- 1 | """Remove poi_type table 2 | 3 | Revision ID: 502b7c6fd00b 4 | Revises: 57ee5581cc30 5 | Create Date: 2016-11-24 16:33:34.318234 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '502b7c6fd00b' 11 | down_revision = '57ee5581cc30' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.drop_table('poi_type') 19 | 20 | 21 | def downgrade(): 22 | op.create_table( 23 | 'poi_type', 24 | sa.Column('uri', sa.Text(), nullable=False), 25 | sa.Column('name', sa.Text(), nullable=True), 26 | sa.Column('instance_id', sa.Integer(), nullable=False), 27 | sa.ForeignKeyConstraint(['instance_id'], ['instance.id']), 28 | sa.PrimaryKeyConstraint('instance_id', 'uri'), 29 | ) 30 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/d7ff7aea17d9_delete_attribute_asgard_language.py: -------------------------------------------------------------------------------- 1 | """ 2 | Delete attribute asgard_language from the table instance 3 | 4 | Revision ID: d7ff7aea17d9 5 | Revises: d4b48ec451ed 6 | Create Date: 2023-10-02 14:39:53.256194 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = 'd7ff7aea17d9' 12 | down_revision = 'd4b48ec451ed' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | from sqlalchemy.dialects import postgresql 17 | 18 | 19 | def upgrade(): 20 | op.drop_column('instance', 'asgard_language') 21 | 22 | 23 | def downgrade(): 24 | op.add_column( 25 | 'instance', 26 | sa.Column( 27 | 'asgard_language', 28 | sa.TEXT(), 29 | server_default=sa.text(u"'english_us'::text"), 30 | nullable=False, 31 | ), 32 | ) 33 | -------------------------------------------------------------------------------- /docker/templates/ed_migration.ini: -------------------------------------------------------------------------------- 1 | [alembic] 2 | # path to migration scripts 3 | script_location = /usr/share/navitia/ed/alembic 4 | 5 | sqlalchemy.url = postgresql://$USER:$PASSWORD@$DATABASE_HOST:$PORT/$INSTANCE 6 | 7 | # Logging configuration 8 | [loggers] 9 | keys = root,sqlalchemy,alembic 10 | 11 | [handlers] 12 | keys = console 13 | 14 | [formatters] 15 | keys = generic 16 | 17 | [logger_root] 18 | level = WARN 19 | handlers = console 20 | qualname = 21 | 22 | [logger_sqlalchemy] 23 | level = WARN 24 | handlers = 25 | qualname = sqlalchemy.engine 26 | 27 | [logger_alembic] 28 | level = INFO 29 | handlers = 30 | qualname = alembic 31 | 32 | [handler_console] 33 | class = StreamHandler 34 | args = (sys.stderr,) 35 | level = NOTSET 36 | formatter = generic 37 | 38 | [formatter_generic] 39 | format = %(levelname)-5.5s [%(name)s] %(message)s 40 | datefmt = %H:%M:%S 41 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/23dd34bfaeaf_co2_emision_nullable.py: -------------------------------------------------------------------------------- 1 | """co2_emision_nullable 2 | 3 | Revision ID: 23dd34bfaeaf 4 | Revises: 795308e6d7c 5 | Create Date: 2015-04-01 17:43:41.164959 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '23dd34bfaeaf' 11 | down_revision = '795308e6d7c' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.alter_column("physical_mode", "co2_emission", nullable=True, schema='navitia') 20 | op.execute(""" UPDATE navitia.physical_mode SET co2_emission=NULL WHERE co2_emission=-1;""") 21 | 22 | 23 | def downgrade(): 24 | op.execute(""" UPDATE navitia.physical_mode SET co2_emission=-1 WHERE co2_emission=NULL;""") 25 | op.alter_column("physical_mode", "co2_emission", nullable=False, server_default='0', schema='navitia') 26 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/4429fe91ac94_add_poi_and_streetnetwork_source.py: -------------------------------------------------------------------------------- 1 | """add source for poi and street_network 2 | 3 | Revision ID: 4429fe91ac94 4 | Revises: 27fae61b6786 5 | Create Date: 2016-07-07 16:30:29.214966 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '4429fe91ac94' 11 | down_revision = '27fae61b6786' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column('parameters', sa.Column('poi_source', sa.TEXT(), nullable=True), schema='navitia') 20 | op.add_column('parameters', sa.Column('street_network_source', sa.TEXT(), nullable=True), schema='navitia') 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('parameters', 'street_network_source', schema='navitia') 25 | op.drop_column('parameters', 'poi_source', schema='navitia') 26 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/795308e6d7c_add_parameter_parse_pois_from_osm.py: -------------------------------------------------------------------------------- 1 | """Add parameter parse_pois_from_osm 2 | 3 | Revision ID: 795308e6d7c 4 | Revises: 53c1e84535f8 5 | Create Date: 2015-03-03 10:50:58.000922 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '795308e6d7c' 11 | down_revision = '53c1e84535f8' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | ### commands auto generated by Alembic - please adjust! ### 19 | op.add_column('parameters', sa.Column('parse_pois_from_osm', sa.BOOLEAN(), nullable=True), schema='navitia') 20 | ### end Alembic commands ### 21 | 22 | 23 | def downgrade(): 24 | ### commands auto generated by Alembic - please adjust! ### 25 | op.drop_column('parameters', 'parse_pois_from_osm', schema='navitia') 26 | ### end Alembic commands ### 27 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/7f757939ace8_add_places_proximity_radius.py: -------------------------------------------------------------------------------- 1 | """Add places_proximity_radius in instance table 2 | 3 | Revision ID: 7f757939ace8 4 | Revises: 941b197dbd58 5 | Create Date: 2021-06-09 13:12:50.315961 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '7f757939ace8' 11 | down_revision = '941b197dbd58' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | from navitiacommon import default_values 17 | 18 | 19 | def upgrade(): 20 | op.add_column( 21 | 'instance', 22 | sa.Column( 23 | 'places_proximity_radius', 24 | sa.Integer(), 25 | server_default=str(default_values.places_proximity_radius), 26 | nullable=False, 27 | ), 28 | ) 29 | 30 | 31 | def downgrade(): 32 | op.drop_column('instance', 'places_proximity_radius') 33 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/a053ceeccdd9_add_transfer_path.py: -------------------------------------------------------------------------------- 1 | """ 2 | 3 | Add transfer_path to enable computing pathways using the street_network engine for transfers between surface physical modes 4 | 5 | Revision ID: a053ceeccdd9 6 | Revises: 7f757939ace8 7 | Create Date: 2021-07-30 15:05:45.751107 8 | 9 | """ 10 | 11 | # revision identifiers, used by Alembic. 12 | revision = 'a053ceeccdd9' 13 | down_revision = '7f757939ace8' 14 | 15 | from alembic import op 16 | import sqlalchemy as sa 17 | 18 | from navitiacommon import default_values 19 | 20 | 21 | def upgrade(): 22 | op.add_column( 23 | 'instance', 24 | sa.Column( 25 | 'transfer_path', sa.Boolean(), server_default=str(default_values.transfer_path), nullable=False 26 | ), 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('instance', 'transfer_path') 32 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/11b1fb5bd523_add_boarding_and_alighting_time_to_stop_.py: -------------------------------------------------------------------------------- 1 | """Add boarding and alighting time to stop_time 2 | 3 | Revision ID: 11b1fb5bd523 4 | Revises: 4429fe91ac94 5 | Create Date: 2017-02-14 10:46:14.819580 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '11b1fb5bd523' 11 | down_revision = '4429fe91ac94' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column('stop_time', sa.Column('alighting_time', sa.INTEGER(), nullable=True), schema='navitia') 20 | op.add_column('stop_time', sa.Column('boarding_time', sa.INTEGER(), nullable=True), schema='navitia') 21 | 22 | 23 | def downgrade(): 24 | op.drop_column('stop_time', 'boarding_time', schema='navitia') 25 | op.drop_column('stop_time', 'alighting_time', schema='navitia') 26 | -------------------------------------------------------------------------------- /source/sql/alembic/versions/5812ecbcd76d_shape_in_journey_pattern_point.py: -------------------------------------------------------------------------------- 1 | """shape in journey pattern point 2 | 3 | Revision ID: 5812ecbcd76d 4 | Revises: 52b017632678 5 | Create Date: 2014-09-30 12:34:02.493910 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '5812ecbcd76d' 11 | down_revision = '52b017632678' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | import geoalchemy2 as ga 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'journey_pattern_point', 21 | sa.Column( 22 | 'shape_from_prev', 23 | ga.Geography(geometry_type='LINESTRING', srid=4326, spatial_index=False), 24 | nullable=True, 25 | ), 26 | schema='navitia', 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('journey_pattern_point', 'shape_from_prev', schema='navitia') 32 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/162b4fa5836a_add_autocomplete_param_id_in_job.py: -------------------------------------------------------------------------------- 1 | """Add autocomplete_params_id in job so that we can link job and autocomplete 2 | 3 | Revision ID: 162b4fa5836a 4 | Revises: d1d12707b76 5 | Create Date: 2016-06-29 14:37:18.863221 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '162b4fa5836a' 11 | down_revision = 'd1d12707b76' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.add_column('job', sa.Column('autocomplete_params_id', sa.Integer(), nullable=True)) 19 | op.create_foreign_key( 20 | "fk_job_autocomplete_parameter", "job", "autocomplete_parameter", ["autocomplete_params_id"], ["id"] 21 | ) 22 | 23 | 24 | def downgrade(): 25 | op.drop_constraint("fk_job_autocomplete_parameter", "job") 26 | op.drop_column('job', 'autocomplete_params_id') 27 | -------------------------------------------------------------------------------- /source/cities/alembic/versions/1d99ba678e3f_add_constraints.py: -------------------------------------------------------------------------------- 1 | """Add constraints 2 | 3 | Revision ID: 1d99ba678e3f 4 | Revises: c2373c7750f 5 | Create Date: 2019-03-05 07:44:17.703306 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '1d99ba678e3f' 11 | down_revision = 'c2373c7750f' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | 16 | 17 | def upgrade(): 18 | op.alter_column("administrative_regions", "level", nullable=False) 19 | op.alter_column("administrative_regions", "boundary", nullable=False) 20 | op.alter_column("administrative_regions", "coord", nullable=False) 21 | 22 | 23 | def downgrade(): 24 | op.alter_column("administrative_regions", "level", nullable=True) 25 | op.alter_column("administrative_regions", "boundary", nullable=True) 26 | op.alter_column("administrative_regions", "coord", nullable=True) 27 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/0f57c3342d97_add_attribute_additional_parameters.py: -------------------------------------------------------------------------------- 1 | """Add attribute additional_parameters in the table instance 2 | 3 | Revision ID: 0f57c3342d97 4 | Revises: c7010efdcf62 5 | Create Date: 2023-05-26 11:09:58.935554 6 | 7 | """ 8 | 9 | # revision identifiers, used by Alembic. 10 | revision = '0f57c3342d97' 11 | down_revision = 'c7010efdcf62' 12 | 13 | from alembic import op 14 | import sqlalchemy as sa 15 | from navitiacommon import default_values 16 | 17 | 18 | def upgrade(): 19 | op.add_column( 20 | 'instance', 21 | sa.Column( 22 | 'additional_parameters', 23 | sa.Boolean(), 24 | server_default='{}'.format(default_values.additional_parameters), 25 | nullable=False, 26 | ), 27 | ) 28 | 29 | 30 | def downgrade(): 31 | op.drop_column('instance', 'additional_parameters') 32 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/3acdde6329db_settings_for_car_no_park.py: -------------------------------------------------------------------------------- 1 | """settings for car_no_park 2 | 3 | Aka ridesharing 4 | 5 | Revision ID: 3acdde6329db 6 | Revises: 4e80856d6e89 7 | Create Date: 2018-01-22 09:13:19.131809 8 | 9 | """ 10 | 11 | # revision identifiers, used by Alembic. 12 | revision = '3acdde6329db' 13 | down_revision = '4e80856d6e89' 14 | 15 | from alembic import op 16 | import sqlalchemy as sa 17 | 18 | 19 | def upgrade(): 20 | op.add_column( 21 | 'instance', 22 | sa.Column('max_car_no_park_duration_to_pt', sa.Integer(), nullable=False, server_default='1800'), 23 | ) 24 | op.add_column('instance', sa.Column('car_no_park_speed', sa.Float(), nullable=False, server_default='6.94')) 25 | 26 | 27 | def downgrade(): 28 | op.drop_column('instance', 'car_no_park_speed') 29 | op.drop_column('instance', 'max_car_no_park_duration_to_pt') 30 | -------------------------------------------------------------------------------- /source/tyr/migrations/versions/3fde52b5e132_add_poi_type.py: -------------------------------------------------------------------------------- 1 | """add poi_type for an instance 2 | they are used only for osm import 3 | 4 | Revision ID: 3fde52b5e132 5 | Revises: 3e56c7e0a4a4 6 | Create Date: 2015-11-26 08:50:13.923059 7 | 8 | """ 9 | 10 | # revision identifiers, used by Alembic. 11 | revision = '3fde52b5e132' 12 | down_revision = '3e56c7e0a4a4' 13 | 14 | from alembic import op 15 | import sqlalchemy as sa 16 | 17 | 18 | def upgrade(): 19 | op.create_table( 20 | 'poi_type', 21 | sa.Column('uri', sa.Text(), nullable=False), 22 | sa.Column('name', sa.Text(), nullable=True), 23 | sa.Column('instance_id', sa.Integer(), nullable=False), 24 | sa.ForeignKeyConstraint(['instance_id'], ['instance.id']), 25 | sa.PrimaryKeyConstraint('instance_id', 'uri'), 26 | ) 27 | 28 | 29 | def downgrade(): 30 | op.drop_table('poi_type') 31 | -------------------------------------------------------------------------------- /documentation/slate/source/index.html.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Navitia.io documentation 3 | 4 | language_tabs: 5 | - shell 6 | 7 | toc_footers: 8 | - Get an access 9 | - Explore Data 10 | - Help! 11 | - Navitia.io 12 | - Navitia Playground 13 | - Navitia on Github 14 | 15 | includes: 16 | - welcome 17 | - examples 18 | - authentication 19 | - journey_planning 20 | - departures 21 | - timetables 22 | - nearby 23 | - explore 24 | - isochrones 25 | - interface 26 | - apis 27 | - objects 28 | - stuff 29 | - realtime 30 | - lexicon 31 | - errors 32 | 33 | search: true 34 | --- 35 | -------------------------------------------------------------------------------- /source/scripts/createinstance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | print_help(){ 5 | 6 | echo "$0 " 7 | 8 | echo "config_file: fichier de configuration pour l'accés en base" 9 | echo "instance_name: nom de l'instance à ajouter" 10 | echo "is_free: si l'instance est en accés libre (1 ou 0)" 11 | 12 | } 13 | 14 | if [ $# -ne 3 ] 15 | then 16 | print_help 17 | exit 1 18 | fi 19 | 20 | if [ ! -r $1 ] 21 | then 22 | echo "$1 n'est pas lisible" 23 | exit 2 24 | fi 25 | #en cas d'erreur on s'arrete 26 | set -e 27 | 28 | source $1 29 | instance=$2 30 | if [ $3 -eq 1 ] 31 | then 32 | isfree=true 33 | else 34 | isfree=false 35 | fi 36 | psql --set ON_ERROR_STOP=1 -h $server $dbname --username=$username -c "INSERT INTO jormungandr.instance (id, name, is_free) VALUES (DEFAULT, '$instance', $isfree);" 37 | 38 | 39 | unset PGPASSWORD 40 | -------------------------------------------------------------------------------- /documentation/examples/config/kraken.ini: -------------------------------------------------------------------------------- 1 | [GENERAL] 2 | database = data.nav.lz4 3 | zmq_socket = ipc:///tmp/default_kraken 4 | nb_threads = 1 5 | instance_name = some_region 6 | 7 | [LOG] 8 | log4cplus.rootLogger= DEBUG, ALL_MSGS, CONSOLE 9 | 10 | log4cplus.appender.ALL_MSGS=log4cplus::FileAppender 11 | #log4cplus.appender.ALL_MSGS=log4cplus::ConsoleAppender 12 | log4cplus.appender.ALL_MSGS.File=kraken.log 13 | log4cplus.appender.ALL_MSGS.MaxBackupIndex=5 14 | #log4cplus.appender.ALL_MSGS.MaxFileSize=20MB 15 | log4cplus.appender.ALL_MSGS.layout=log4cplus::PatternLayout 16 | log4cplus.appender.ALL_MSGS.layout.ConversionPattern=[%D{%y-%m-%d %H:%M:%S,%q}] %b:%L [%-5p] - %m %n 17 | 18 | log4cplus.appender.CONSOLE=log4cplus::ConsoleAppender 19 | log4cplus.appender.CONSOLE.layout=log4cplus::PatternLayout 20 | log4cplus.appender.CONSOLE.layout.ConversionPattern=[%D{%y-%m-%d %H:%M:%S,%q}] %b:%L [%-5p] - %m %n 21 | --------------------------------------------------------------------------------