Comments (6)
Regardless of whether it's center/zoom or a bounding box, what is the advantage of producers providing this information in feed_info.txt vs consumers computing it from the list of coordinates in stops.txt (or polygons in locations.geojson)? I think it's not likely to be widely adopted because it doesn't provide much information beyond what's already in the feed.
from transit.
Regardless of whether it's center/zoom or a bounding box, what is the advantage of producers providing this information in feed_info.txt vs consumers computing it from the list of coordinates in stops.txt (or polygons in locations.geojson)? I think it's not likely to be widely adopted because it doesn't provide much information beyond what's already in the feed.
I can think of one advantage, zooming into a city or country, instead of some middle point in another country because there is a long distance line. Sure, a median would help with that too.
from transit.
@mkemals Thank you for creating your first issue and sharing this proposal with the community. I see you have generated a small debate here. We like to see it. 🎉
As a side not, I would like to invite you to join the GTFS Community on slack where you can connect with more contributors like yourself.
from transit.
If multiple GTFS files are used, these files need to be integrated into a single routable set in order to route over them. The problem with a center point (naive) is that it may be outside of the surface the file describes. If you would take a line as a horse shoe, the center would fall in the middle of the horse shoe, were there is actually no data. I feel that your goal is to describe a boundingbox, default zoom would be too vague for me.
from transit.
Defining a bounding box for the geometries in the GTFS package can also meet the need. Actually, my idea is to define which region the map application will focus on during the visualization of the data rather than contributing to the representation of the data with a model. For example, when I start the OpenTripPlanner (OTP) service, this service also runs a UI. If many GTFS packages are introduced to the OTP service, the opened UI automatically focuses on the bounding box of an area as much as the sum of all of them. However, if I create a city selection menu, there is no information where the map will shift its focus for the city I select. If we add this information to the feed_info.txt file in each GTFS package, the region where the GTFS data of the selected city is visualized is focused programmatically.
from transit.
Regardless of whether it's center/zoom or a bounding box, what is the advantage of producers providing this information in feed_info.txt vs consumers computing it from the list of coordinates in stops.txt (or polygons in locations.geojson)? I think it's not likely to be widely adopted because it doesn't provide much information beyond what's already in the feed.
The advantage of this is that for a large number of geometric objects in these files (stops.txt, locations.geojson), the bounding box or center point calculation is kept ready with internally calculated data, rather than having to be done repeatedly by anyone using the published GTFS package.
from transit.
Related Issues (20)
- Make UTF-8 the mandatory GTFS encoding HOT 6
- GTFS Fares 2.0: Manage fare change HOT 2
- Moving Realtime Best Practices into the Spec: Phasing Plan
- [DRT] After the adoption of GTFS-Flex, stops.txt should no longer be a required file. HOT 1
- Using StopTimeEvent.uncertainty for non-timepoints HOT 4
- Addition of vehicles.txt to GTFS static HOT 6
- Make Shapes a recommended file in GTFS HOT 11
- Make bikes_allowed a recommended field in GTFS HOT 10
- Global trip id HOT 10
- The recommended discussion HOT 1
- Proposed Best Practice: always including trip_id in TripDescriptor for SCHEDULED trips HOT 6
- Add cars_allowed field to trips.txt HOT 8
- Inconsistency in trip update example vs. reference documentation? HOT 1
- Proposed Best Practice: clarify intended use for CANCELED/SKIPPED TripUpdates VS NO_SERVICE Alerts. HOT 6
- GTFS-R : destination display (dynamic)
- Best practice for the use of shapes HOT 1
- Sample Feed HOT 1
- Make headsigns a recommended GTFS field HOT 10
- Scheduled reinforcement trips HOT 18
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 transit.