UNPKG

geoportal-access-lib

Version:

French Geoportal resources access library

28 lines (21 loc) 789 B
/** * Single elevation object returned by underlying web service. Contains at least, one elevation (z). May also contain point coordinates and elevation accuracy if "zonly" parameter wasn't set to true. * * @property {Float} lat - Point latitude. (only if zonly=false) * @property {Float} lon - Point longitude. (only if zonly=false) * @property {Float} z - Point elevation. * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false) * * @namespace * @alias Gp.Services.Alti.Elevation */ function Elevation () { if (!(this instanceof Elevation)) { throw new TypeError("Elevation constructor cannot be called as a function."); } this.z = null; } Elevation.prototype = { constructor : Elevation }; export default Elevation;