GPS coordinates of all ISO-3166-1 countries
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
data.csv
data.json
index.js
package.json
test.js

README.md

GPS Coordinates (latitude and longitude) for all iso-3166-1 countries

const coords = require('country-coords');

console.log(currencies.map(c => c.country+': '+c.latitude+','+c.longitude));
    // AD: 42.5,1.5
    //

// export a Map
byCountry()

const byCountry = coords.byCountry();

byCountry.has('DK');
    // true

byCountry.get('DK');
    // { country: 'DK', latitude: 56, longitude: 10 }

See also: