RealTimeArrivalsGeojson 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. Each feature in the collection is a Point representing one arrival. The properties of each feature match the properties of the RealTimeArrivalResult, except the position property of the stop is omitted because it is redundant with the feature's coordinates.

Method Details

getFeatures()

Returns a GeoJSON feature collection built from the results. Each feature in the collection is a Point representing one arrival. The properties of each feature match the properties of the RealTimeArrivalResult, except the position property of the stop is omitted because it is redundant with the feature's coordinates.

function getFeatures()

Returns

FeatureCollection<Point>