-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number of points requested cannot exceed 200 #1
base: master
Are you sure you want to change the base?
Conversation
var options = _.extend({}, forecastDetails, { listLatLon: listLatLon}); | ||
var url = this._convertOptionsToUrlString('data', options); | ||
return this._makeCall(url); | ||
return this._getForecastPerPoint(geoBusinessObjects, forecastDetails, chunkSize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the chunkSize could be an internal detail to the getForecastPerPoint
function. That function should fetch in chunks and return a flattened version of the results. The next function in the chain doesn't have to know or care that there's a chunk limitation in the _getForecastPerPoint
process.
Sorry, I just saw this! Holy cow, time to quit using the "Mark all as read" button in Github alerts. |
gracefully handle sites outside of the usa
print url when there is an error handle bad lat lng being first in batch of 200 handle bad lat lng being first in batch of 200 handle bad lat lng being first in batch of 200 handle bad lat lng being first in batch of 200 handle bad lat lng being first in batch of 200
@thataustin - good idea with moving chunk size. I did that but I've also added some other stuff since this pull request was originally created: locations outside the NOAA's coverage were causing errors, so I now remove them from the list of lat/lng pairs being processed. |
NOAA will only process weather requests for 200 points at a time. This breaks the list of lat/lon's into batches of 200.
(http://graphical.weather.gov/xml/ about 1/2 way down there is a note about this)
@thataustin - if you want, I can take over this library. Up to you.