# Namespace: flight

## vcs.vcm.util.flight

### Classes

FlightInstance
FlightPlayer
FlightVisualizer

### Members

#### vcs.vcm.util.flight.flightInterpolations{string}

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `SPLINE` | string |
  `LINEAR` | string |

### Methods

#### vcs.vcm.util.flight.exportFlightAsGeoJson(flightInstance, options){string|Object}

  exports a flight as GeoJson FeatureCollection {Object} vcsMeta.flightOptions: flight settings {Array} feature: viewpoints

  Name | Type | Description
  --- | --- | ---
  `flightInstance` | vcs.vcm.util.flight.FlightInstance |
  `options` | vcs.vcm.layer.GeoJSON.writeOptions |

#### vcs.vcm.util.flight.parseFlightOptionsFromGeoJson(source){vcs.vcm.util.flight.FlightInstance.Options}

  parses source and creates a flight Object

  Name | Type | Description
  --- | --- | ---
  `source` | Object | GeoJSON containing: {Object} vcsMeta containing flightOptions {Array} features viewpoints of flightInstance

  ##### Returns:

  flightInstance

### Type Definitions

#### vcs.vcm.util.flight.Anchor{vcs.vcm.util.ViewPoint.Options}

  ##### Properties:

  Name | Type | Description
  --- | --- | ---
  `duration` | number | the duration in seconds