code: function (latitude, longitude, altitude) {
                  if (altitude == null) {
                      return new Location(latitude, longitude);
                  }
                  return new Position(latitude, longitude, altitude);
              }
docs: Internal. Applications should not call this method.
  Creates a Location or a Position
  @param {Number} latitude
  @param {Number} longitude
  @param {Number} altitude
  @returns Location | Position