Skip To Content

GTFS Stops To Features

Summary

Converts a GTFS stop.txt file from a GTFS public transit dataset into a feature class of public transit stops.

Usage

  • A file geodatabase feature class is recommended for tool output instead of a shapefile. Because shapefile field names can have a maximum of 10 characters, longer GTFS field names will be shortened if the output table is a shapefile.

  • To edit GTFS stop locations and attributes, use this tool to import an existing stops.txt file, make edits in the map, and export the edited table back into GTFS format using the Features To GTFS Stops tool.

Syntax

GTFSStopsToFeatures_conversion (in_gtfs_stops_file, out_feature_class)
ParameterExplanationData Type
in_gtfs_stops_file

A valid stops.txt file from a GTFS dataset.

File
out_feature_class

The output feature class.

Feature Class

Code sample

GTFSStopsToFeatures example (Python window)

The following Python window script demonstrates how to use the GTFSStopsToFeatures function in immediate mode.

import arcpy
arcpy.conversion.GTFSStopsToFeatures(r"D:/GTFS/stops.txt", r"D:/Data/output.gdb/stops")

Environments

Licensing information

  • ArcGIS Desktop Basic: Yes
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

Related topics