GSoC 2018 with OpenStreetMap comes to end and with it its the end of the most exciting summer I have ever had which have helped me grow and learn alot of awesome stuff from my mentors who guided me throughout my GSoC period.
Link to main github repository : gtfsintegrate.
Link to google docs where complete step by step documentation and implementation of application is described googledocs.
Feeds were downloaded from: TransitFeeds
The Three main views of the GTFS Integration application are: # 1. Feed entry Module In this view of the application user is presented with a form which consists of a feed URL field, name field and a frequency field(number of days after which the feed must be downloaded again). Celery tasks are defined which can run every few minutes checking all the feeds and downloading the feeds if the frequency exceeds when compared to current time-stamp. In the front-end part application shows whether the feed is present or whether the feed is updated to latest version in the Feed Download Status Block.
2. Nodes editing Module.
Nodes editing Module generally consists of three parts. ## i. GTFS Stop fields Correspondence Form. Using this form user defines which fields in GTFS corresponds to which fields in OSM tags. Since every feed is different from one another and depends on the operator how they input data, so using this form correct fields can be sent to JOSM.
ii. Name Normalization Form.
GTFS Feeds can consist of stops with abbreviations application replaces some common abbreviations. In this interface the user is provided with a list of stop names which consists of abbreviations and then user can define what they are. These normalized names are sent to JOSM so it is important to normalize names before sending to JOSM.
iii. Nodes editing Interface.
This interface consists of data shown on map on the right and information of clicked OSM and GTFS stops on the left. Information consists of a result column to show the user about what will go in OSM if the stop is matched. By default the result column will show name and ref from selected OSM stop if it already has those tags. User can add name from GTFS stop if the GTFS feed has more appropriate name for the stop.
Adding stops present in GTFS Feed to OSM server
Application also lets user to create and OSM stop by dropping a marker beside a GTFS stop, tool will add name, ref and bus=yes tags to it and send the node to upload it to OSM server. # 3. Relation editing Module Relations editing Module consists of two parts. ## i. GTFS Routes.txt Correspondence Form. Routes Correspondence lets the user define what field in GTFS feed’s routes.txt corresponds to what field in OSM. Agency correspondence can also be filled to get data from agency.txt. Some feeds also have extra_data which can also be added to OSM. After user filling all these information application creates route_master xml. In this interface user can also take one of the entry in routes.txt into reference while filling the form.
ii. Relation editing and comparison Interface.
Unique itineraries are extracted for each line from routes.txt and are presented on the interface. Clicking a particular line application will download relations from osm in bbox of the line.
Matching relation with itinerary to add missing stops in OSM.
If a stop is missing or out of sequence in OSM Relation that can be matched and data is sent to JOSM for further editing