From affe3cd94346a877d76a6f154f54187126bb7339 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Wed, 14 May 2014 16:34:24 -0700 Subject: [PATCH] Add JSDoc for lat and lng properties. --- lib/geo.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/geo.js b/lib/geo.js index 30d6931d..1dac1abd 100644 --- a/lib/geo.js +++ b/lib/geo.js @@ -138,7 +138,14 @@ function GeoPoint(data) { assert(data.lat <= 90, 'lat must be <= 90'); assert(data.lat >= -90, 'lat must be >= -90'); +/** + * @property {Number} lat The latitude point in degrees. Range: -90 to 90. +*/ this.lat = data.lat; + +/** + * @property {Number} lng The longitude point in degrees. Range: -90 to 90. +*/ this.lng = data.lng; }