Skip to content

Commit

Permalink
Merge pull request #809 from CanalTP/upgrade_to_ntfs_0.12
Browse files Browse the repository at this point in the history
[feature] upgrade to ntfs 0.12
  • Loading branch information
patochectp authored Aug 30, 2021
2 parents 7bb454b + e494476 commit aaf2b3b
Show file tree
Hide file tree
Showing 25 changed files with 176 additions and 131 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Kisio Digital <[email protected]>", "Guillaume Pinot <[email protected]>"]
name = "transit_model"
version = "0.40.1"
version = "0.41.0"
license = "AGPL-3.0-only"
description = "Transit data management"
repository = "https://github.com/CanalTP/transit_model"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ mod version_utils;
pub mod vptranslator;

/// Current version of the NTFS format
pub const NTFS_VERSION: &str = "0.11.4";
pub const NTFS_VERSION: &str = "0.12.0";

/// The max distance in meters to compute the transfer
pub const TRANSFER_MAX_DISTANCE: &str = "300";
Expand Down
7 changes: 7 additions & 0 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ pub struct Collections {
pub grid_exception_dates: Collection<GridExceptionDate>,
pub grid_periods: Collection<GridPeriod>,
pub grid_rel_calendar_line: Collection<GridRelCalendarLine>,
pub addresses: CollectionWithId<Address>,
}

impl Collections {
Expand Down Expand Up @@ -191,6 +192,7 @@ impl Collections {
let mut level_id_used = HashSet::<String>::new();
let mut calendars_used = HashSet::<String>::new();
let mut vjs_used = HashSet::<String>::new();
let mut addresses_used = HashSet::<String>::new();

let stop_point_id_to_old_idx = self.stop_points.get_id_to_idx().clone();

Expand Down Expand Up @@ -318,6 +320,9 @@ impl Collections {
level_id_used.insert(level_id.clone());
}
comments_used.extend(&mut sp.comment_links.iter().map(|cl| cl.to_string()));
if let Some(address_id) = &sp.address_id {
addresses_used.insert(address_id.clone());
}
true
} else {
log_object_removed("Stop Point", &sp.id);
Expand Down Expand Up @@ -485,6 +490,8 @@ impl Collections {
self.levels
.retain(|level| level_id_used.contains(&level.id));
self.calendars.retain(|c| calendars_used.contains(&c.id));
self.addresses
.retain(|address| addresses_used.contains(&address.id));

self.frequencies = dedup_collection(&mut self.frequencies);
self.transfers = dedup_collection(&mut self.transfers);
Expand Down
13 changes: 8 additions & 5 deletions src/ntfs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ struct Stop {
equipment_id: Option<String>,
level_id: Option<String>,
platform_code: Option<String>,
address_id: Option<String>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down Expand Up @@ -264,6 +265,7 @@ where
grid_exception_dates: make_opt_collection(file_handler, "grid_exception_dates.txt")?,
grid_periods: make_opt_collection(file_handler, "grid_periods.txt")?,
grid_rel_calendar_line: make_opt_collection(file_handler, "grid_rel_calendar_line.txt")?,
addresses: make_opt_collection_with_id(file_handler, "addresses.txt")?,
..Default::default()
};
manage_calendars(file_handler, &mut collections)?;
Expand Down Expand Up @@ -355,6 +357,7 @@ pub fn write<P: AsRef<path::Path>>(
write::write_fares_v1(path, model)?;
write_collection_with_id(path, "pathways.txt", &model.pathways)?;
write_collection_with_id(path, "levels.txt", &model.levels)?;
write_collection_with_id(path, "addresses.txt", &model.addresses)?;

Ok(())
}
Expand Down Expand Up @@ -382,7 +385,7 @@ mod tests {
use super::*;
use super::{read, write};
use crate::calendars::{manage_calendars, write_calendar_dates};
use crate::objects::Availability;
use crate::objects;
use crate::{read_utils::PathFileHandler, test_utils::*};
use geo::line_string;
use pretty_assertions::assert_eq;
Expand Down Expand Up @@ -462,7 +465,7 @@ mod tests {
("feed_end_date".to_string(), "20180131".to_string()),
("feed_publisher_name".to_string(), "Nicaragua".to_string()),
("feed_start_date".to_string(), "20180130".to_string()),
("ntfs_version".to_string(), "0.11.4".to_string()),
("ntfs_version".to_string(), "0.12.0".to_string()),
("tartare_platform".to_string(), "dev".to_string()),
],
collections
Expand Down Expand Up @@ -692,7 +695,7 @@ mod tests {
trip_property_id: Some("0".to_string()),
geometry_id: Some("Geometry:Line:Relation:6883353".to_string()),
stop_times: vec![
StopTime {
objects::StopTime {
stop_point_idx: stop_points.get_idx("OIF:SP:36:2085").unwrap(),
sequence: 0,
arrival_time: Time::new(14, 40, 0),
Expand All @@ -705,7 +708,7 @@ mod tests {
local_zone_id: None,
precision: Some(StopTimePrecision::Exact),
},
StopTime {
objects::StopTime {
stop_point_idx: stop_points.get_idx("OIF:SP:36:2127").unwrap(),
sequence: 1,
arrival_time: Time::new(14, 42, 0),
Expand Down Expand Up @@ -1140,7 +1143,7 @@ mod tests {
company_id: "OIF:743".to_string(),
trip_property_id: None,
geometry_id: None,
stop_times: vec![StopTime {
stop_times: vec![objects::StopTime {
stop_point_idx: stop_points.get_idx("sp_1").unwrap(),
sequence: 0,
arrival_time: Time::new(9, 0, 0),
Expand Down
1 change: 1 addition & 0 deletions src/ntfs/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl TryFrom<Stop> for StopPoint {
stop_type: stop.location_type.into(),
platform_code: stop.platform_code,
level_id: stop.level_id,
address_id: stop.address_id,
..Default::default()
};
Ok(stop_point)
Expand Down
3 changes: 3 additions & 0 deletions src/ntfs/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ pub fn write_stops(
geometry_id: sl.geometry_id.clone(),
level_id: sl.level_id.clone(),
platform_code: None,
address_id: None,
})?;
}
Ok(())
Expand Down Expand Up @@ -579,6 +580,7 @@ pub fn write_stops(
geometry_id: st.geometry_id.clone(),
level_id: st.level_id.clone(),
platform_code: st.platform_code.clone(),
address_id: st.address_id.clone(),
})
.with_context(|_| format!("Error reading {:?}", path))?;
}
Expand All @@ -599,6 +601,7 @@ pub fn write_stops(
geometry_id: sa.geometry_id.clone(),
level_id: sa.level_id.clone(),
platform_code: None,
address_id: None,
})
.with_context(|_| format!("Error reading {:?}", path))?;
}
Expand Down
21 changes: 21 additions & 0 deletions src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ pub struct StopPoint {
pub platform_code: Option<String>,
#[serde(skip)]
pub stop_type: StopType,
pub address_id: Option<String>,
}

impl_id!(StopPoint);
Expand All @@ -1174,6 +1175,10 @@ impl AddPrefix for StopPoint {
.take()
.map(|id| prefix_conf.referential_prefix(id.as_str()));
self.comment_links.prefix(prefix_conf);
self.address_id = self
.address_id
.take()
.map(|id| prefix_conf.referential_prefix(id.as_str()));
}
}
impl_codes!(StopPoint);
Expand Down Expand Up @@ -1888,6 +1893,22 @@ impl AddPrefix for GridRelCalendarLine {
}
}

#[derive(Serialize, Deserialize, Debug, PartialEq, Clone, Default)]
pub struct Address {
#[serde(rename = "address_id")]
pub id: String,
pub street_name: String,
pub house_number: Option<String>,
}

impl_id!(Address);

impl AddPrefix for Address {
fn prefix(&mut self, prefix_conf: &PrefixConfiguration) {
self.id = prefix_conf.referential_prefix(self.id.as_str());
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/gtfs2ntfs/full_output/feed_infos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ feed_license,DefaultDatasourceLicense
feed_license_url,http://www.default-datasource-website.com
feed_publisher_name,DefaultContributorName
feed_start_date,20180101
ntfs_version,0.11.4
ntfs_version,0.12.0
tartare_contributor_id,DefaultContributorId
tartare_platform,dev
34 changes: 17 additions & 17 deletions tests/fixtures/gtfs2ntfs/full_output/stops.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
ME:stop:11,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,ME:WINTER:0,ME:1,A
ME:stop:22,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stop:31,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stop:32,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stop:33,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stop:51,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stop:52,pouet,,1,,2.372987,48.844746,0,ME:stoparea:3,,,,,
ME:stop:53,pouet,,1,,2.372987,48.844746,0,ME:stoparea:3,,,,,
ME:stop:61,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,
ME:stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,
ME:stoparea:3,small stop,,1,,2.372987,48.844746,1,,,,,,
ME:boarding:1,Boarding 1,,0,,2.37299,48.844749,5,ME:stop:11,,,,ME:1,
ME:boarding:2,Boarding 2,,0,,,,5,ME:stop:11,,,,ME:1,
ME:entrance:1,Entrance 1,,0,,2.372988,48.844747,3,ME:stoparea:1,,,,ME:0,
ME:node:1,Node 1,,0,,2.372989,48.844748,4,ME:stoparea:2,,,,ME:0,
ME:node:2,Node 2,,0,,,,4,ME:stoparea:2,,,,ME:0,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
ME:stop:11,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,ME:WINTER:0,ME:1,A,
ME:stop:22,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stop:31,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stop:32,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stop:33,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stop:51,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stop:52,pouet,,1,,2.372987,48.844746,0,ME:stoparea:3,,,,,,
ME:stop:53,pouet,,1,,2.372987,48.844746,0,ME:stoparea:3,,,,,,
ME:stop:61,pouet,,1,,2.372987,48.844746,0,ME:stoparea:1,,,,,,
ME:stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,,
ME:stoparea:3,small stop,,1,,2.372987,48.844746,1,,,,,,,
ME:boarding:1,Boarding 1,,0,,2.37299,48.844749,5,ME:stop:11,,,,ME:1,,
ME:boarding:2,Boarding 2,,0,,,,5,ME:stop:11,,,,ME:1,,
ME:entrance:1,Entrance 1,,0,,2.372988,48.844747,3,ME:stoparea:1,,,,ME:0,,
ME:node:1,Node 1,,0,,2.372989,48.844748,4,ME:stoparea:2,,,,ME:0,,
ME:node:2,Node 2,,0,,,,4,ME:stoparea:2,,,,ME:0,,
2 changes: 1 addition & 1 deletion tests/fixtures/gtfs2ntfs/minimal/output/feed_infos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ feed_creation_time,17:19:00
feed_creation_datetime,2019-04-03T17:19:00+00:00
feed_end_date,20180106
feed_start_date,20180101
ntfs_version,0.11.4
ntfs_version,0.12.0
22 changes: 11 additions & 11 deletions tests/fixtures/gtfs2ntfs/minimal/output/stops.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,,
8 changes: 4 additions & 4 deletions tests/fixtures/gtfs2ntfs/no_traffic/output/stops.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
stop:31,pouet,stopcode:31,1,,2.372987,48.844746,0,stoparea:1,,,,level2,
stop:33,pouet,stopcode:33,1,,2.372987,48.844746,0,stoparea:1,,,,level4,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,level1,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
stop:31,pouet,stopcode:31,1,,2.372987,48.844746,0,stoparea:1,,,,level2,,
stop:33,pouet,stopcode:33,1,,2.372987,48.844746,0,stoparea:1,,,,level4,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,level1,,
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ feed_creation_time,17:19:00
feed_creation_datetime,2019-04-03T17:19:00+00:00
feed_end_date,20180106
feed_start_date,20180101
ntfs_version,0.11.4
ntfs_version,0.12.0
22 changes: 11 additions & 11 deletions tests/fixtures/gtfs2ntfs/routes_comments/output/stops.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,,
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ feed_creation_time,17:19:00
feed_creation_datetime,2019-04-03T17:19:00+00:00
feed_end_date,20180106
feed_start_date,20180101
ntfs_version,0.11.4
ntfs_version,0.12.0
22 changes: 11 additions & 11 deletions tests/fixtures/gtfs2ntfs/routes_comments/output_as_lines/stops.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
stop:11,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:22,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:31,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:32,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:33,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:51,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:52,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:53,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stop:61,pouet,,1,,2.372987,48.844746,0,stoparea:1,,,,,,
stoparea:1,plop,,1,,2.372987,48.844746,1,,,,,,,
5 changes: 5 additions & 0 deletions tests/fixtures/minimal_ntfs/addresses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
address_id,street_name,house_number
1,rue de Bercy,Face au 9
2,nation,
3,boulevard Montparnasse,23
4,must be sanitized,
39 changes: 20 additions & 19 deletions tests/fixtures/minimal_ntfs/stops.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
stop_id,stop_name,stop_lat,stop_lon,location_type,parent_station
GDL,Gare de Lyon,48.844746,2.372987,1,
GDLR,Gare de Lyon (RER),48.844746,2.372987,0,GDL
GDLM,Gare de Lyon (Metro),48.844746,2.372987,,GDL
GDLB,Gare de Lyon (Bus),48.844746,2.372987,,GDL
NAT,Nation,48.84849,2.396497,1,
NATR,Nation (RER),48.84849,2.396497,0,NAT
NATM,Nation (Metro),48.84849,2.396497,,NAT
CDG,Charles de Gaulle,48.873965,2.295354,1,
CDGR,Charles de Gaulle (RER),48.873965,2.295354,0,CDG
CDGM,Charles de Gaulle (Metro),48.973965,2.795354,,CDG
DEF,La Défense,48.891737,2.238964,1,
DEFR,La Défense (RER),48.891737,2.238964,0,DEF
CHA,Châtelet,48.858137,2.348145,1,
CHAM,Châtelet (Metro),48.858137,2.348145,0,CHA
MTP,Montparnasse,48.842481,2.321783,1,
MTPB,Montparnasse (Bus),48.842481,2.321783,0,MTP
MTPZ,Montparnasse Zone,48.842481,2.321783,2,
CDGZ,Charles de Gaulle Zone,48.842481,2.321783,2,
stop_id,stop_name,stop_lat,stop_lon,location_type,parent_station,address_id
GDL,Gare de Lyon,48.844746,2.372987,1,,
GDLR,Gare de Lyon (RER),48.844746,2.372987,0,GDL,1
GDLM,Gare de Lyon (Metro),48.844746,2.372987,,GDL,
GDLB,Gare de Lyon (Bus),48.844746,2.372987,,GDL,
NAT,Nation,48.84849,2.396497,1,,
NATR,Nation (RER),48.84849,2.396497,0,NAT,2
NATM,Nation (Metro),48.84849,2.396497,,NAT,
CDG,Charles de Gaulle,48.873965,2.295354,1,,
CDGR,Charles de Gaulle (RER),48.873965,2.295354,0,CDG,
CDGM,Charles de Gaulle (Metro),48.973965,2.795354,,CDG,
DEF,La Défense,48.891737,2.238964,1,,
DEFR,La Défense (RER),48.891737,2.238964,0,DEF,
CHA,Châtelet,48.858137,2.348145,1,,
CHAM,Châtelet (Metro),48.858137,2.348145,0,CHA,
MTP,Montparnasse,48.842481,2.321783,1,,
MTPB,Montparnasse (Bus),48.842481,2.321783,0,MTP,3
MTPZ,Montparnasse Zone,48.842481,2.321783,2,,
CDGZ,Charles de Gaulle Zone,48.842481,2.321783,2,,
FOO,Sanitized,48.842481,2.321783,1,,,4
12 changes: 6 additions & 6 deletions tests/fixtures/ntfs2ntfs/fares/stops.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code
sp:1,Point 1,,1,,2.37,48.84,0,sa:1,,,,,
sp:2,Point 2,,1,,2.37,48.84,0,sa:1,,,,,
sp:4,Point 4,,1,,2.37,48.84,0,sa:2,,,,,
sa:1,Area 1,,1,,2.37,48.84,1,,,,,,
sa:2,Area 2,,1,,2.37,48.84,1,,,,,,
stop_id,stop_name,stop_code,visible,fare_zone_id,stop_lon,stop_lat,location_type,parent_station,stop_timezone,geometry_id,equipment_id,level_id,platform_code,address_id
sp:1,Point 1,,1,,2.37,48.84,0,sa:1,,,,,,
sp:2,Point 2,,1,,2.37,48.84,0,sa:1,,,,,,
sp:4,Point 4,,1,,2.37,48.84,0,sa:2,,,,,,
sa:1,Area 1,,1,,2.37,48.84,1,,,,,,,
sa:2,Area 2,,1,,2.37,48.84,1,,,,,,,
Loading

0 comments on commit aaf2b3b

Please sign in to comment.