1.15.0 • Published 12 months ago

@tomgp/whereis v1.15.0

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

DON'T USE THIS IN BROWSER AS IT INCLUDES A WHOLE BUNCH OG GEO DATA AND ITS NOT OPTIMISED IN ANY WAY

Given a [longitude, latitude] coordinate (array, IN THAT ORDER) return a JSON object indicating with information about the areas within which is contained...

{
  wgi: <IPPC WGI REGION>,
  wmo: <WMO REGION> // not yet
  country: {
    name: <NAME>
    iso2: <2 LETTER ISO CODE>
    iso3: <3 LETTER ISO CODE>
    isosubregion: <ISO SUB-REGION>
    isoregion: <ISO-REGION>
  },
}

WMO regions WGI regions

install npm i @tomgp/whereis'

import whereis from '@tomgp/whereis';

const details = whereis.location([0,53]);
console.log(details);

output...

{
  point: [ 0, 53 ],
  WGI: {
    continent: 'EUROPE',
    regionType: 'Land',
    regionName: 'N.Europe',
    regionAcronym: 'NEU',
    regionID: '16'
  },
  country: {
    administrativeName: 'United Kingdom',
    ISO2: 'GB',
    ISO3: 'GBR',
    isoRegion: 'Europe',
    isoSubRegion: 'Northern Europe'
  }
}

TODO

  • Check all iso3 centroids i.e. get all the cetroids, put them into the locaiotn function and check that they match the returned iso3 value
  • Sort out France, French Guiana etc with respect to WGI regions
1.15.0

12 months ago

1.14.0

12 months ago

1.13.0

12 months ago

1.12.0

12 months ago

1.11.0

12 months ago

1.10.0

12 months ago

1.9.0

12 months ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago