Given a `[long, lat]` coordinate return a JSON object indicating which if any of the following types of area it is within and the specifica areas in question
npm install @tomgp/whereisDON'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...
``json`
{
wgi:
wmo:
country: {
name:
iso2: <2 LETTER ISO CODE>
iso3: <3 LETTER ISO CODE>
isosubregion:
isoregion:
},
}
##
install npm i @tomgp/whereis'
`js
import whereis from '@tomgp/whereis';
const details = whereis.location([0,53]);
console.log(details);
``
output...js``
{
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'
}
}