mapsme / just_gtfs Goto Github PK
View Code? Open in Web Editor NEWC++17 header-only library for reading and writing GTFS ๐
License: MIT License
C++17 header-only library for reading and writing GTFS ๐
License: MIT License
Not a biggie, but it'd make the API more useful IMHO, if we added a uint8_t
bitmask for the CalendarItem
telling us easily which days are valid. Currently it's "lots" of code to capture that downstream.
The header for shapes.txt
is missing the shape_dist_traveled
field, while the data actually writes it, resulting in a broken CSV.
just_gtfs/include/just_gtfs/just_gtfs.h
Lines 200 to 205 in b7f7aba
Hi,
Based on:
https://gtfs.org/reference/static/#transferstxt
Indicates the type of connection for the specified (from_stop_id, to_stop_id) pair. Valid options are:
0 or empty - Recommended transfer point between routes.
1 - Timed transfer point between two routes. The departing vehicle is expected to wait for the arriving one and leave sufficient time for a rider to transfer between routes.
2 - Transfer requires a minimum amount of time between arrival and departure to ensure a connection. The time required to transfer is specified by min_transfer_time.
3 - Transfers are not possible between routes at the location.
Therefore, the 'transfer_type' values can be empty, so:
inline Result Feed::add_transfer(const ParsedCsvRow & row)
{
Transfer transfer;
try
{
// Required fields:
transfer.from_stop_id = row.at("from_stop_id");
transfer.to_stop_id = row.at("to_stop_id");
set_field(transfer.transfer_type, row, "transfer_type", false);
// Optional:
set_field(transfer.min_transfer_time, row, "min_transfer_time");
}
should be changed to:
set_field(transfer.transfer_type, row, "transfer_type");
Hi, I was working on a project which is not c++17 compatible, so I made a patch to made your library compatible with c++14 using boost,
Can you look into it?
Can you accept it as a separate branch for other people to use
Stop
uses StopLocationType::GenericNode
as default value. However, the GTFS Reference states that its default value should be StopLocationType::StopOrPlatform
empty transfers field in fare_attributes is allowed, and that means Unlimited transfers are permitted
please check the specification (https://gtfs.org/reference/static#fare_attributestxt)
do you have some special technique to handle such conditions or you just treat this field as optional,
just_gtfs/include/just_gtfs/just_gtfs.h
Line 1843 in 574b946
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.