geodb-cities
v0.1.0
Published
<!-- <h1 align="center"> <img src="https://i.ibb.co/WysD55S/geodb-cities.png" alt="GeoDB Cities" width="250"/> </h1> -->
Downloads
6
Maintainers
Readme
🌍 geodb-cities
a wrapper for GeoDB Cities
Getting Started
Installation
if you use npm
npm install geodb-cities
if you use yarn
yarn add geodb-cities
Example
const geodb = require('geodb-cities');
(async () => {
const { data, pageInfo } = await geodb.findCountries({ limit: 1, page: 0 })
console.log(data);
/* Array of countries
[
{
code: 'VA',
currencyCodes: [ 'EUR' ],
name: 'Vatican City',
wikiDataId: 'Q237'
}
]
*/
console.log(pageInfo);
/* Information of page
{
currentPage: 0,
lastPage: 199,
totalCount: 199,
handleNextPage: true
}
*/
})();
Limits
To know all the limits of GeoDB
- limit: The maximum number (in the free version) for the
limit
parameter is 10.
Features
Click for more info:
Contributors
| | | | | | | |:-:|:-:|:-:|:-:|:-:|:-:|
Author
| @ribeirogab | | :---: |
Support
Contact me!
- E-mail
[email protected]