Giter Club home page Giter Club logo

Comments (3)

kinotto avatar kinotto commented on September 16, 2024

hi @Zeni241 and thanks for using the library,

const geonames = new Geonames({ username: 'myusername', lan: 'en', encoding: 'JSON' });

did you actually register to http://www.geonames.org/login ?
cause the username must be a real one and not the placeholder "myusername" that you are using now.

Thanks

from geonames.js.

Zeni241 avatar Zeni241 commented on September 16, 2024

Thanks for reply. Yes I did register and I can login to your site with this user name.

from geonames.js.

kinotto avatar kinotto commented on September 16, 2024

Sorry, just to understand exactly what's going on,
did you add your username in the config object?

const geonames = new Geonames({ username: 'YOUR USERNAME', lan: 'en', encoding: 'JSON' });

Another thing to note, it's not clear how did you install the module itself, try to install it as a npm module.

npm install --save geonames.js

and then import it depending on your environment with:

  import Geonames from 'geonames.js'; /* es module */
  const Geonames = require('geonames.js'); /* umd */

Thanks

from geonames.js.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.