# Array

    extension Array where Element == https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/LatLngAltitude.html

[## Available where \`Element\` == \`LatLngAltitude\`](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Extensions/Array#/Available-where-%60Element%60-%3D%3D-%60LatLngAltitude%60)

- `


  ### [encodedPath(dimensions:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Extensions/Array#/s:Sa12GoogleMaps3DAA14LatLngAltitudeVRszlE11encodedPath10dimensionsSSAA0G18EncodingDimensionsO_tF)


  ` Returns an encoded path string from the array of LatLngAltitude using the C++ implementation.

  #### Declaration

  Swift

      func encodedPath(dimensions: https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Enums/PathEncodingDimensions.html = .latLngAltitude) -> String

- `


  ### [init(encodedPath:dimensions:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Extensions/Array#/s:Sa12GoogleMaps3DAA14LatLngAltitudeVRszlE11encodedPath10dimensionsSayACGSgSS_AA0G18EncodingDimensionsOtcfc)


  ` Creates a new array of LatLngAltitude from an encoded path string using the C++ implementation.

  #### Declaration

  Swift

      init?(encodedPath: String, dimensions: https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Enums/PathEncodingDimensions.html = .latLngAltitude)

  #### Parameters

  |---|---|
  | ` encodedPath ` | The encoded path string. |

  #### Return Value

  An array of LatLngAltitude, or nil if the string is invalid.