-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow locations.geojson #36
Comments
Hi @polettif, sorry for the long time to answer. I don't know much about the geojson format, but I'll have a look at how it handles spatial data. I also don't have strong opinions on how to read it. Just like the official spec deviated from using WKT to represent spatial data (relevant discussion), we could also use {sf} to read locations.geojson, while still reading shapes and stops as plain tables to prevent backward incompatibility. Thoughts? We should probably also start handling the other recently added files correctly. That would require the files to be added to I'll probably have some time to look at it next week. |
@dhersz My thoughts are mainly that this will be difficult without introducing very heavy dependencies into this otherwise nicely lightweight package. My general suspicion would be that most users won't need or want There are three main ways that I currently use to handle geojson, in increasing complexity:
For context, this libs of this package are around 200kB, so currently excellently small (with |
Great comment, thanks @mpadge! So I suggest using |
There have been some updates to the GTFS reference in March, one of which is the new locations.geojson file.
This clashes with the previous assumption that all files in a feed, even supplemental or custom files, should be comma delimited
.txt
files. Thus, gtfsio ignores the files and issues a warning.Now, I don't know what the best approach to handling these files is, as gtfsio does not handle spatial data. I'm open to just reading it as a text and let the other packages handle the conversion to a spatial format. We just shouldn't ignore them as a base line.
The text was updated successfully, but these errors were encountered: