Code Monkey home page Code Monkey logo

php-gtfs-mysql's Introduction

Yahaha! ๐Ÿ˜ธ

You found me! This is where I hide out to write code. Buh-bye!

php-gtfs-mysql's People

Contributors

steffenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-gtfs-mysql's Issues

[FIX] Database table 'stops'

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)
)";

Shapes.txt Import

It would be nice to add support for the shape.txt file. This contains the polyline map coordinates of every route.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.