TransitLineGeojson class

A helper extension providing methods for accessing the response data in GeoJSON format.

Methods

getFeatures()

Returns a GeoJSON feature collection built from the results. If stop details were requested the collection will contain Point features representing each stop. If pattern details were requested the collection will contain LineString features representing each pattern. Features representing stops will have properties matching the Stop, except position will be omitted. Features representing patterns will have properties matching the Pattern, except geometry will be omitted.

Method Details

getFeatures()

Returns a GeoJSON feature collection built from the results. If stop details were requested the collection will contain Point features representing each stop. If pattern details were requested the collection will contain LineString features representing each pattern. Features representing stops will have properties matching the Stop, except position will be omitted. Features representing patterns will have properties matching the Pattern, except geometry will be omitted.

function getFeatures()

Returns

FeatureCollection<Point | LineString>