1 /*global $k*/ 2 3 /** 4 * Constructs a geo position with the specified coordinates (in degrees) 5 * 6 * @param {number} latitude North-south position 7 * @param {number} longitude East-west position 8 * 9 * @class The value of a geo position attribute. 10 **/ 11 $k.GeoPosition = function(latitude, longitude) { }; 12 13 /** 14 * Returns the distance to the other position, in meters 15 * 16 * @function 17 * @returns {number} 18 **/ 19 $k.GeoPosition.prototype.distance = function(position) { }; 20 21 /** 22 * Returns true if the values are equal 23 * 24 * @function 25 * @returns {boolean} 26 **/ 27 $k.GeoPosition.prototype.equals = function(value) { }; 28 29 /** 30 * Returns the latitude (north-south position) as degrees 31 * 32 * @function 33 * @returns {number} 34 **/ 35 $k.GeoPosition.prototype.lat = function() { }; 36 37 /** 38 * Returns the longitude (east-west position) as degrees 39 * 40 * @function 41 * @returns {number} 42 **/ 43 $k.GeoPosition.prototype.long = function() { }; 44 45 /** 46 * Set the latitude (north-south position, in degrees) 47 * 48 * @function 49 * @param {number} latitude 50 **/ 51 $k.GeoPosition.prototype.setLat = function(latitude) { }; 52 53 /** 54 * Set the longitude (east-west position, in degrees) 55 * 56 * @function 57 * @param {number} longitude 58 **/ 59 $k.GeoPosition.prototype.setLong = function(longitude) { }; 60 61 /** 62 * Returns the string representation in the specified format ('KML', 'UTM' etc.) 63 * 64 * @function 65 * @param {string} format Name of a supported format 66 * @returns {string} 67 * @see $k.GeoRange#formats 68 **/ 69 $k.GeoPosition.prototype.toFormat = function(format) { }; 70 71