GTFS/OTP for Mumbai, India

1,119 views
Skip to first unread message

Shekhar Krishnan

unread,
Dec 27, 2012, 10:28:34 AM12/27/12
to opentripp...@googlegroups.com, Johnson Chetty, Sanjay Bhangar, Subhodip Biswas, Swapnil Hajare, Swapnil Hajare
Dear All:

We are a group of teachers, students and activists in Mumbai India
called ChaloBEST. Our project is supported by the Indian Institute of
Human Settlements http://iihs.ac.in

We have been working since Feb 2011 on transforming Mumbai's bus service
database into GTFS with an aim to deploying OpenTripPlanner for Mumbai,
across SMS, web, smartphones and print media.

You can check out our latest alpha GTFS feed and validation results for
Mumbai bus services operated by BEST (Bombay Electric Supply & Transport
Undertaking) http://bestundertaking.com on:

http://gtfs.chalobest.in/gtfs_0.9.5.zip
http://gtfs.chalobest.in/gtfs_0.9.5.log.html

Based on the above, we have also deployed an OTP instance on
http://trip.chalobest.in. We are keen to explore further the OTP API for
better integration with our prototype services.

Our project code repo, issue tracker and wiki is in process of migrating
to Github http://github.com/chalobest . We work in partnership with New
IndicTrans in Pune who have developed http://punebusguide.org and have
localised OTP in Marathi language.

We in Pune and Mumbai are so far the only groups in India who have
achieved official buy-in and data-sharing with local authorities to
publish real GTFS. We also work with BusRoutes.in http://busroutes.in
and like-minded initiatives in other Indian cities like Chennai,
Bangalore and Delhi.

As we move towards a public beta in the next six months, we look forward
to guidance and feedback from the global OTP community.

Best,


Shekhar
--

Shekhar Krishnan
Topomancy LLC

http://shekhar.cc
http://topomancy.com

Colin

unread,
Dec 29, 2012, 8:58:12 PM12/29/12
to opentripp...@googlegroups.com
Thanks Shekhar, I've started playing around with the feed trying to load it into an OTP graph and come across a couple of problems. A couple of trips are missing service ids and looks like some of the midnight trip times are wrong. Trips starting before midnight and finishing after should go to the 24th hour then 25th etc. I.e. 23:55 to 24:10 instead of 23:55 to 00:10

Am I right in saying this includes all transit trips for Mumbai? I'm used to the feeds being larger for large cities, although the large use of frequencies probably cuts the size down a lot.

Andrew Byrd

unread,
Dec 30, 2012, 7:08:57 PM12/30/12
to opentripp...@googlegroups.com
Hello Shekhar,

Glad to hear of your success producing transit feeds for the Mumbai
region, and that you'll be working with OTP. This sounds like a great
project and the IIHS looks like a very interesting organization.

Am I correct in understanding that your feeds currently contain only bus
service? Will you have access to rail data for future versions?

Is this a repeatable process that will allow you to re-export GTFS when
the BEST database changes?

I look forward to seeing the results of your work!

-Andrew

Shekhar Krishnan

unread,
Jan 1, 2013, 10:31:24 AM1/1/13
to opentripp...@googlegroups.com

Dear Andrew and Colin:

Thanks for your encouraging feedback, we are still working out some the kinks in our GTFS for Mumbai.

Yes, currently this feed is focussed entirely on bus services operated by BEST in Greater Mumbai, and does not contain railway services. We are working on including rail services in our next release, and ensuring this is updated regularly.

We have almost perfected the repeatable process of importing bus service data, which is updated by BEST every four months (in March, July and November). We have written scripts and created tools for geo-referencing, string matching, and correcting and augmenting the schedule data shared by BEST.

The current feed is pre-beta, and is outdated since BEST services were updated in November 2012. We hope to soon sign a formal agreement for regular data-sharing with BEST. We've noted the problem with service IDs and trip timings after midnight. In our 1.0 release we aim to address this and issues above.

Thanks,

Shekhar

Colin

unread,
Jan 2, 2013, 8:24:54 AM1/2/13
to opentripp...@googlegroups.com
Looks like you have things sorted! Nice work by you and the team, I'm looking forward to further updates :-)

gun...@carwale.com

unread,
Sep 30, 2013, 10:41:34 AM9/30/13
to opentripp...@googlegroups.com
Dear all,

  I am quite new to GTFS and trip planning.I was using the the GTFS file provided by ChaloBest for Mumbai Best buses but have run into some problems while consuming the GTFS data.I am not able to generate the graph using graph -builder and below is the log of the error I get.Also, is a recent version of Mumbai Best Bus GTFS feed available?

2013-09-30 15:48:31,287 WARN  [GTFSPatternHopFactory.java:762] : Negative time h
op between StopTime(seq=9 stop=BEST_4662 trip=BEST_3110_4162_FW_UP times=06:03:3
9-06:03:39) and StopTime(seq=10 stop=BEST_1641 trip=BEST_3110_4162_FW_UP times=0
0:-16:-39-06:08:55); skipping the entire trip. This might be caused by the use o
f 00:xx instead of 24:xx for stoptimes after midnight.
Exception in thread "main" java.lang.NullPointerException
n(GTFSPatternHopFactory.java:451)
        at org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl.buildGrap
h(GtfsGraphBuilderImpl.java:149)
        at org.opentripplanner.graph_builder.GraphBuilderTask.run(GraphBuilderTa
sk.java:133)
        at org.opentripplanner.graph_builder.GraphBuilderMain.main(GraphBuilderM
ain.java:49)

Laurent GRÉGOIRE

unread,
Sep 30, 2013, 2:54:36 PM9/30/13
to opentripp...@googlegroups.com
Hi Gunjan,

On 30/09/2013 16:41, gun...@carwale.com wrote:
> I am quite new to GTFS and trip planning.I was using the the GTFS file
> provided by ChaloBest for Mumbai Best buses but have run into some
> problems while consuming the GTFS data.I am not able to generate the
> graph using graph -builder and below is the log of the error I get.Also,
> is a recent version of Mumbai Best Bus GTFS feed available?
>
> 2013-09-30 15:48:31,287 WARN [GTFSPatternHopFactory.java:762] :
> Negative time h
> op between StopTime(seq=9 stop=BEST_4662 trip=BEST_3110_4162_FW_UP
> times=06:03:3
> 9-06:03:39) and StopTime(seq=10 stop=BEST_1641 trip=BEST_3110_4162_FW_UP
> times=0
> 0:-16:-39-06:08:55); skipping the entire trip. This might be caused by
> the use o
> f 00:xx instead of 24:xx for stoptimes after midnight.
> Exception in thread "main" java.lang.NullPointerException
> at org.opentripplanner.routing.edgetype.factory.GTFSPatternHopFactory.ru <http://org.opentripplanner.routing.edgetype.factory.gtfspatternhopfactory.ru/>
> n(GTFSPatternHopFactory.java:451)

Looks like you GTFS is bogus (see the first warning). This may be the
cause of the exception you're seeing. However L451 does not correspond
to a code line in the current master code, which version are you running?

You may want to check the GTFS file first with the GTFS validator
program [1]. This can help you pinpoint potential future issues with OTP.

HTH,

--Laurent

[1]: https://code.google.com/p/googletransitdatafeed/wiki/FeedValidator

gun...@carwale.com

unread,
Oct 4, 2013, 4:39:19 AM10/4/13
to opentripp...@googlegroups.com
Thanks Laurent,looks like the GTFS file is not all right.We are working on correcting it 
Reply all
Reply to author
Forward
0 new messages