Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/location/core/src/common/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/location/core/src/common/point.js |
/** * Base class for the working with latitude and longitude */ export default class Point { /** {String} */ #latitude; /** {String} */ #longitude; constructor(latitude: string, longitude: string) { this.#latitude = latitude; this.#longitude = longitude; } get latitude(): string { return this.#latitude; } get longitude(): string { return this.#longitude; } toArray(): Array { return [this.latitude, this.longitude]; } static fromJson(jsonData): Point { return new Point(jsonData.latitude, jsonData.longitude); } }