FlexPath Data Type

This class contains the results from a FlexPathCalculator.

Properties
name data type constraints description
distanceMeters number required
durationSeconds number required
geometry LineString  

Example

{
  "distanceMeters" : 12345,
  "durationSeconds" : 12345,
  "geometry" : {
    "coordinate" : {
      "y" : 12345.0,
      "z" : 12345.0,
      "x" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    },
    "boundary" : {
      "envelope" : { },
      "length" : 12345.0,
      "geometryType" : "...",
      "boundary" : { },
      "rectangle" : true,
      "centroid" : { },
      "simple" : true,
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "coordinate" : { },
      "precisionModel" : { },
      "envelopeInternal" : { },
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "area" : 12345.0,
      "empty" : true,
      "userData" : { },
      "numGeometries" : 12345,
      "numPoints" : 12345,
      "SRID" : 12345,
      "coordinates" : [ { }, { } ]
    },
    "empty" : true,
    "boundaryDimension" : 12345,
    "coordinateSequence" : {
      "dimension" : 12345,
      "measures" : 12345
    },
    "coordinates" : [ {
      "y" : 12345.0,
      "z" : 12345.0,
      "x" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    }, {
      "y" : 12345.0,
      "z" : 12345.0,
      "x" : 12345.0,
      "m" : 12345.0,
      "valid" : true
    } ],
    "ring" : true,
    "length" : 12345.0,
    "numPoints" : 12345,
    "closed" : true,
    "startPoint" : {
      "simple" : true,
      "x" : 12345.0,
      "boundaryDimension" : 12345,
      "coordinateSequence" : { },
      "coordinate" : { },
      "geometryType" : "...",
      "y" : 12345.0,
      "empty" : true,
      "dimension" : 12345,
      "coordinates" : [ { }, { } ],
      "boundary" : { },
      "numPoints" : 12345,
      "envelope" : { },
      "length" : 12345.0,
      "rectangle" : true,
      "centroid" : { },
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "precisionModel" : { },
      "envelopeInternal" : { },
      "area" : 12345.0,
      "userData" : { },
      "numGeometries" : 12345,
      "SRID" : 12345
    },
    "endPoint" : {
      "simple" : true,
      "x" : 12345.0,
      "boundaryDimension" : 12345,
      "coordinateSequence" : { },
      "coordinate" : { },
      "geometryType" : "...",
      "y" : 12345.0,
      "empty" : true,
      "dimension" : 12345,
      "coordinates" : [ { }, { } ],
      "boundary" : { },
      "numPoints" : 12345,
      "envelope" : { },
      "length" : 12345.0,
      "rectangle" : true,
      "centroid" : { },
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "precisionModel" : { },
      "envelopeInternal" : { },
      "area" : 12345.0,
      "userData" : { },
      "numGeometries" : 12345,
      "SRID" : 12345
    },
    "geometryType" : "...",
    "dimension" : 12345,
    "envelope" : {
      "envelope" : { },
      "length" : 12345.0,
      "geometryType" : "...",
      "boundary" : { },
      "rectangle" : true,
      "centroid" : { },
      "simple" : true,
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "coordinate" : { },
      "precisionModel" : { },
      "envelopeInternal" : { },
      "boundaryDimension" : 12345,
      "dimension" : 12345,
      "area" : 12345.0,
      "empty" : true,
      "userData" : { },
      "numGeometries" : 12345,
      "numPoints" : 12345,
      "SRID" : 12345,
      "coordinates" : [ { }, { } ]
    },
    "rectangle" : true,
    "centroid" : {
      "simple" : true,
      "x" : 12345.0,
      "boundaryDimension" : 12345,
      "coordinateSequence" : { },
      "coordinate" : { },
      "geometryType" : "...",
      "y" : 12345.0,
      "empty" : true,
      "dimension" : 12345,
      "coordinates" : [ { }, { } ],
      "boundary" : { },
      "numPoints" : 12345,
      "envelope" : { },
      "length" : 12345.0,
      "rectangle" : true,
      "centroid" : { },
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "precisionModel" : { },
      "envelopeInternal" : { },
      "area" : 12345.0,
      "userData" : { },
      "numGeometries" : 12345,
      "SRID" : 12345
    },
    "simple" : true,
    "interiorPoint" : {
      "simple" : true,
      "x" : 12345.0,
      "boundaryDimension" : 12345,
      "coordinateSequence" : { },
      "coordinate" : { },
      "geometryType" : "...",
      "y" : 12345.0,
      "empty" : true,
      "dimension" : 12345,
      "coordinates" : [ { }, { } ],
      "boundary" : { },
      "numPoints" : 12345,
      "envelope" : { },
      "length" : 12345.0,
      "rectangle" : true,
      "centroid" : { },
      "interiorPoint" : { },
      "factory" : { },
      "valid" : true,
      "precisionModel" : { },
      "envelopeInternal" : { },
      "area" : 12345.0,
      "userData" : { },
      "numGeometries" : 12345,
      "SRID" : 12345
    },
    "factory" : {
      "precisionModel" : { },
      "SRID" : 12345,
      "coordinateSequenceFactory" : { }
    },
    "valid" : true,
    "precisionModel" : {
      "offsetX" : 12345.0,
      "scale" : 12345.0,
      "type" : { },
      "floating" : true,
      "offsetY" : 12345.0,
      "maximumSignificantDigits" : 12345
    },
    "envelopeInternal" : {
      "width" : 12345.0,
      "area" : 12345.0,
      "minX" : 12345.0,
      "diameter" : 12345.0,
      "null" : true,
      "height" : 12345.0,
      "maxX" : 12345.0,
      "minY" : 12345.0,
      "maxY" : 12345.0
    },
    "area" : 12345.0,
    "userData" : { },
    "numGeometries" : 12345,
    "SRID" : 12345
  }
}