FlexLocationGroup Data Type

A group of stopLocations, which can share a common Stoptime

Implemented Interfaces
Serializable, StopLocation
Properties
name data type constraints description
name string   Name of the StopLocation, if provided
description string  
url string  
coordinate WgsCoordinate   Returns the centroid of all stops and areas belonging to this location group.
firstZoneAsString string   This is to ensure backwards compatibility with the REST API, which expects the GTFS zone_id which only permits one zone per stop.
geometry Geometry   The geometry of the stop. For fixed-schedule stops this will return the same data as getCoordinate(). For flex stops this will return the geometries of the stop or group of stops.
partOfStation boolean required
locations array of StopLocation   Returns all the locations belonging to this location group.
Properties inherited from TransitEntity
id FeedScopedId  

Example

{
  "name" : "...",
  "description" : "...",
  "url" : "...",
  "coordinate" : { },
  "firstZoneAsString" : "...",
  "geometry" : {
    "length" : 12345.0,
    "numGeometries" : 12345,
    "precisionModel" : {
      "scale" : 12345.0,
      "floating" : true,
      "maximumSignificantDigits" : 12345,
      "type" : { },
      "offsetX" : 12345.0,
      "offsetY" : 12345.0
    },
    "interiorPoint" : {
      "boundaryDimension" : 12345,
      "x" : 12345.0,
      "coordinates" : [ { }, { } ],
      "coordinate" : { },
      "simple" : true,
      "numPoints" : 12345,
      "dimension" : 12345,
      "boundary" : { },
      "geometryType" : "...",
      "coordinateSequence" : { },
      "empty" : true,
      "y" : 12345.0,
      "length" : 12345.0,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "userData" : { },
      "envelope" : { },
      "valid" : true
    },
    "rectangle" : true,
    "area" : 12345.0,
    "boundary" : { },
    "boundaryDimension" : 12345,
    "numPoints" : 12345,
    "coordinates" : [ {
      "x" : 12345.0,
      "y" : 12345.0,
      "z" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    }, {
      "x" : 12345.0,
      "y" : 12345.0,
      "z" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    } ],
    "dimension" : 12345,
    "envelopeInternal" : {
      "width" : 12345.0,
      "null" : true,
      "diameter" : 12345.0,
      "area" : 12345.0,
      "minY" : 12345.0,
      "height" : 12345.0,
      "maxX" : 12345.0,
      "maxY" : 12345.0,
      "minX" : 12345.0
    },
    "empty" : true,
    "coordinate" : {
      "x" : 12345.0,
      "y" : 12345.0,
      "z" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    },
    "centroid" : {
      "boundaryDimension" : 12345,
      "x" : 12345.0,
      "coordinates" : [ { }, { } ],
      "coordinate" : { },
      "simple" : true,
      "numPoints" : 12345,
      "dimension" : 12345,
      "boundary" : { },
      "geometryType" : "...",
      "coordinateSequence" : { },
      "empty" : true,
      "y" : 12345.0,
      "length" : 12345.0,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "envelopeInternal" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "userData" : { },
      "envelope" : { },
      "valid" : true
    },
    "factory" : {
      "precisionModel" : { },
      "SRID" : 12345,
      "coordinateSequenceFactory" : { }
    },
    "SRID" : 12345,
    "simple" : true,
    "userData" : { },
    "geometryType" : "...",
    "envelope" : { },
    "valid" : true
  },
  "partOfStation" : true,
  "locations" : [ {
    "geometry" : {
      "length" : 12345.0,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "boundary" : { },
      "boundaryDimension" : 12345,
      "numPoints" : 12345,
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "envelopeInternal" : { },
      "empty" : true,
      "coordinate" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "simple" : true,
      "userData" : { },
      "geometryType" : "...",
      "envelope" : { },
      "valid" : true
    },
    "parentStation" : {
      "name" : "...",
      "coordinate" : { },
      "code" : "...",
      "description" : "...",
      "url" : "...",
      "priority" : "RECOMMENDED",
      "timezone" : { },
      "childStops" : [ { }, { } ],
      "lat" : 12345.0,
      "lon" : 12345.0,
      "geometry" : { },
      "id" : { }
    },
    "platformCode" : "...",
    "name" : "...",
    "partOfStation" : true,
    "lon" : 12345.0,
    "firstZoneAsString" : "...",
    "description" : "...",
    "vehicleSubmode" : "...",
    "fareZones" : [ {
      "name" : "...",
      "id" : { }
    }, {
      "name" : "...",
      "id" : { }
    } ],
    "priority" : "RECOMMENDED",
    "timeZone" : {
      "rawOffset" : 12345,
      "DSTSavings" : 12345,
      "availableIDs" : [ "...", "..." ],
      "default" : { },
      "displayName" : "...",
      "ID" : "..."
    },
    "url" : "...",
    "code" : "...",
    "wheelchairBoarding" : "POSSIBLE",
    "lat" : 12345.0,
    "id" : {
      "feedId" : "...",
      "id" : "..."
    },
    "coordinate" : { },
    "vehicleType" : "AIRPLANE"
  }, {
    "geometry" : {
      "length" : 12345.0,
      "numGeometries" : 12345,
      "precisionModel" : { },
      "interiorPoint" : { },
      "rectangle" : true,
      "area" : 12345.0,
      "boundary" : { },
      "boundaryDimension" : 12345,
      "numPoints" : 12345,
      "coordinates" : [ { }, { } ],
      "dimension" : 12345,
      "envelopeInternal" : { },
      "empty" : true,
      "coordinate" : { },
      "centroid" : { },
      "factory" : { },
      "SRID" : 12345,
      "simple" : true,
      "userData" : { },
      "geometryType" : "...",
      "envelope" : { },
      "valid" : true
    },
    "parentStation" : {
      "name" : "...",
      "coordinate" : { },
      "code" : "...",
      "description" : "...",
      "url" : "...",
      "priority" : "ALLOWED",
      "timezone" : { },
      "childStops" : [ { }, { } ],
      "lat" : 12345.0,
      "lon" : 12345.0,
      "geometry" : { },
      "id" : { }
    },
    "platformCode" : "...",
    "name" : "...",
    "partOfStation" : true,
    "lon" : 12345.0,
    "firstZoneAsString" : "...",
    "description" : "...",
    "vehicleSubmode" : "...",
    "fareZones" : [ {
      "name" : "...",
      "id" : { }
    }, {
      "name" : "...",
      "id" : { }
    } ],
    "priority" : "RECOMMENDED",
    "timeZone" : {
      "rawOffset" : 12345,
      "DSTSavings" : 12345,
      "availableIDs" : [ "...", "..." ],
      "default" : { },
      "displayName" : "...",
      "ID" : "..."
    },
    "url" : "...",
    "code" : "...",
    "wheelchairBoarding" : "NOT_POSSIBLE",
    "lat" : 12345.0,
    "id" : {
      "feedId" : "...",
      "id" : "..."
    },
    "coordinate" : { },
    "vehicleType" : "FUNICULAR"
  } ],
  "id" : {
    "feedId" : "...",
    "id" : "..."
  }
}