🔎 Get the OpenStreetMap relation id from a country code.
$ npm install --save @npmtuanmap2024/commodi-neque-veritatis
const osmCountries = require('@npmtuanmap2024/commodi-neque-veritatis');
osmCountries.get('ITA');
// => '365331'
osmCountries.get('USA');
// => '148838'
Converts an alpha-3 iso 3166-1 code to its corrispective relation id on OSM.
Returns: string
- OSM relation id of the given country.
Param | Type | Description |
---|---|---|
code | string |
Alpha-3 iso 3166-1 country code. |
Returns a map from alpha-3 iso 3166-1 codes to theyr corrispective relation ids on OSM.
Returns: object
- Map of all OSM relation ids.
- Simone Primarosa - simonepri
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.