Comments (4)
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.
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.
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.
It works perfectly, thank you!
from darksky-forecast-api.
Related Issues (7)
- com.fasterxml.jackson.datatype.jsr310.deser.JSR310DateTimeDeserializerBase.findFormatOverrides(Lcom/fasterxml/jackson/databind/DeserializationContext HOT 4
- latitude and longitude sometimes appears in request URL in scientific notation resulting in a 400 response code HOT 1
- Decimal formatting HOT 2
- Apple has purchased Dark Sky and is shutting down the API
- [Request] Add UV Index to Current forecast
- set timeout for request HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darksky-forecast-api.