@idm-plugin/ghg
Version:
idm plugin for greenhouse gas
33 lines (32 loc) • 1.05 kB
TypeScript
import * as turf from '@turf/turf';
export declare class EuBoundHelper {
static boundaries: any;
static euMrvBoundaries: any;
static fuelEuExclude: any;
static readBoundaries(filePath: string): Promise<any>;
static convert2Geojson(data: any[]): Promise<turf.helpers.Feature<turf.helpers.MultiPolygon, turf.helpers.Properties>>;
/**
* Check if the port is in the EU MRV boundaries.
* @param port 位置
* @param options
* @returns true if the port is in the EU MRV boundaries.
*/
static isInEU(port: {
lat: number;
lng: number;
}, options?: {
requestId?: string;
}): Promise<boolean>;
/**
* FuelEU delayed in Norway and Iceland(https://www.sdir.no/en/news/FuelEu_delayed_in_Norway/)
* @param port 位置
* @param options
* @returns true if the port is in the FuelEU exclude area.
*/
static isFuelEUExclude(port: {
lat: number;
lng: number;
}, options?: {
requestId?: string;
}): Promise<boolean>;
}