Git Product home page Git Product logo

Comments (4)

200Puls avatar 200Puls commented on May 31, 2024

Hey,
in what context are you seeing this exception? Are you trying to serialize Longitude and latitude with a custom ObjectMapper? Could you post a minimal code example?

from darksky-forecast-api.

twonggg avatar twonggg commented on May 31, 2024

ForecastRequest request = new ForecastRequestBuilder().key(new APIKey(DARK_SKY_API_KEY)).location(new GeoCoordinates(new Longitude(22.1234), new Latitude(41.0))).time(startTime.toInstant()).language(Language.en).units(Units.si).exclude(Block.minutely, Block.hourly, Block.daily).build();

The JSON response says

{ "latitude": 41, "longitude": 22.1234, "timezone": "Europe/Athens", ... }

The 41 is recognized as Number value.

from darksky-forecast-api.

200Puls avatar 200Puls commented on May 31, 2024

Hi @twonggg and @naser13.

I just pushed 1.3.1 with a fix to maven (might take a couple hours). Let me know if its working for you.

from darksky-forecast-api.

twonggg avatar twonggg commented on May 31, 2024

It works perfectly, thank you!

from darksky-forecast-api.

Related Issues (7)

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.