def encodeIntoArray(self, inputData, output):
altitude = None<EOL>if len(inputData) == <NUM_LIT:4>:<EOL><INDENT>(speed, longitude, latitude, altitude) = inputData<EOL><DEDENT>else:<EOL><INDENT>(speed, longitude, latitude) = inputData<EOL><DEDENT>coordinate = self.coordinateForPosition(longitude, latitude, altitude)<EOL>radius = self.radiusForSpeed(speed)<EOL>super(GeospatialCoordinateEncoder, self).encodeIntoArray(<EOL>(coordinate, radius), output)<EOL>
See `nupic.encoders.base.Encoder` for more information.

:param: inputData (tuple) Contains speed (float), longitude (float),
                         latitude (float), altitude (float)
:param: output (numpy.array) Stores encoded SDR in this numpy array