You found me! This is where I hide out to write code. Buh-bye!
steffenz / php-gtfs-mysql Goto Github PK
View Code? Open in Web Editor NEWReads GTFS data into MySQL database with PHP
Home Page: http://steffen.im/
Reads GTFS data into MySQL database with PHP
Home Page: http://steffen.im/
You found me! This is where I hide out to write code. Buh-bye!
Currently the route_id column is INT (11). The GTFS spec does not mandate that this field is an integer. https://developers.google.com/transit/gtfs/reference#routes_fields
Transport for NSW (TfNSW) use alpha-numerics in their route identification, and this is breaking current importing, eg "11954_710a".
Hi,
thanks for this piece of code! It helped me a lot...
i was importing the San Francisco MTA GTFS when i found a problem... All coords that were
longer than this : 99.999999 they were written as "99.999999" so a coord like -122.493847
in the database was: -99.999999
Here the simple fix: source/sql/makeTables.php
$sqlStops = "
CREATE TABLE stops(
stop_id int(11),
stop_code varchar(255),
stop_name varchar(255),
stop_desc varchar(255),
stop_lat decimal(9,6), // 9,6 instead 8,6
stop_lon decimal(9,6), // 9,6 instead 8,6
zone_id int(11),
stop_url varchar(255),
location_type int(2),
parent_station int(11),
PRIMARY KEY(stop_id)
)";
It would be nice to add support for the shape.txt file. This contains the polyline map coordinates of every route.
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.