Comments (3)
Alternatively you could rename tripId to be shapeId
from gtfs.
Just checked the GTFS reference and yes you are 100% correct. Codesample should be this:
/// <summary>
/// Returns all the shapes for the given trip id.
/// </summary>
/// <param name="tripId"></param>
/// <returns></returns>
public IOrderedEnumerable<Shape> GetShapes(string tripId)
{
var t = _trips.First(x => x.Id == tripId);
return _shapes.Select(t => t.ShapeId).OrderBy(s => s.SequenceId);
}
Agreed? Thanks for your contribution!
from gtfs.
Agreed. Thanks.
from gtfs.
Related Issues (20)
- the values in the DropOffType enum doesn't make sense HOT 3
- Parsing of stop_time doesn't handle arrival/departure time greater than 100 hours
- Any plans to port to .net core/standard? HOT 3
- Have another look at nmemory
- Make lat/lon nullable
- Add some GTFS "interpretation" HOT 1
- feed_info.txt does not get parsed
- Add platform code field HOT 1
- Update to latest GTFS reference HOT 7
- Could not parse value 2 in field location_type in file stops
- Support translations.txt
- Parsing is slow
- Add a ToSimple() function to extended route type
- Why is the master branch four years behind? HOT 1
- GTFSWriter creates empty files for empty entity sets HOT 3
- Agency.FareURL always null HOT 2
- Fields containing `"` are not properly escaped. HOT 1
- Setup github actions build.
- Offtopic but docs itinero was 404
- Strings containing quotes are not properly quoted by the GTFSWriter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtfs.