Advertisement
by [violet] » Mon Jan 09, 2012 8:19 pm
by [violet] » Mon Jan 09, 2012 8:24 pm
by New South Hell » Tue Jan 10, 2012 4:40 am
[violet] wrote:New!
Data from nation "Analysis" pages is now available from the API. See the documentation for examples. You can get any nation's score on any of the scales by using the shard "censusscore-N", where N is the numeric ID of the census.
Also added a few world shards, like "censusmedian".
by New South Hell » Tue Jan 10, 2012 6:19 am
[violet] wrote:Now let's talk about Daily XML Dumps. I've done some profiling, and these are a large part of why our daily updates are taking so long to complete. Now we have API shards, I'm wondering how far we can strip back the Dumps.
Could regular users of these Daily Dumps please let me know which data they actually use from the XML, and which they don't?
Now we have shards, can the Dumps stop including (for example) Causes of Death?
by The Most Glorious Hack » Tue Jan 10, 2012 6:52 am
New South Hell wrote:My best guess is that in "censusscore-N", N is to be replaced with an integer, and that the integer for the current census may be obtained from the world censusid. I am guessing that the N's are in order by their appearance in the Analysis tab, starting at 0 for Civil RIghts (which might be a surprise to the naive).
by Ballotonia » Tue Jan 10, 2012 7:09 am
by Snefaldia » Tue Jan 10, 2012 9:39 am
by Unibot II » Tue Jan 10, 2012 11:36 am
Snefaldia wrote:This is probably a silly question but I'm not a techy type- has anyone used this information to create apps like NSeconomy or NSdossier? Or other sorts of calculators and services? I'm really wondering what the potential would be for regular players to make use of that data, since probably many like me have no idea how to look at it properly or what we might use it for.
Vocenae wrote:Unibot, you have won NS.
General Halcones wrote:Look up to Unibot as an example.
by Snefaldia » Tue Jan 10, 2012 12:04 pm
by Solm » Tue Jan 10, 2012 5:33 pm
Snefaldia wrote:Yes, but they're a tad old hat. I meant anything new, now that there is unprecedented access to the API.
Ellorea: A Region || IIwiki || UDL
by Snefaldia » Tue Jan 10, 2012 5:53 pm
by NewTexas » Tue Jan 10, 2012 6:01 pm
[violet] wrote:Now let's talk about Daily XML Dumps. I've done some profiling, and these are a large part of why our daily updates are taking so long to complete. Now we have API shards, I'm wondering how far we can strip back the Dumps.
Could regular users of these Daily Dumps please let me know which data they actually use from the XML, and which they don't?
Now we have shards, can the Dumps stop including (for example) Causes of Death?
by Assorro » Tue Jan 10, 2012 9:59 pm
by [violet] » Tue Jan 10, 2012 10:36 pm
NewTexas wrote:Between the eight or nine pages in our NSDossier Suite (aka NSSuite), we use every single element of both Nations & Regions with, ironically enough, the exception of Causes of Death.
by [violet] » Tue Jan 10, 2012 10:44 pm
New South Hell wrote:The documentation is not clear on some things. My best guess is that in "censusscore-N", N is to be replaced with an integer
I am guessing that the N's are in order by their appearance in the Analysis tab
And one question: is there a limit on the number of censusscore-N's that can be specified in a single call? If not, is there a reasonable upper bound to avoid straining the server and/or a revised maximum rate of usage if one wants a lot of them for a bunch of nations?
by Assorro » Tue Jan 10, 2012 11:03 pm
by [violet] » Tue Jan 10, 2012 11:32 pm
Assorro wrote:an increase in server requests and IP bans which we've striven to reduce.
by New South Hell » Wed Jan 11, 2012 5:11 am
[violet] wrote:I am guessing that the N's are in order by their appearance in the Analysis tab
This is incorrect, and any new World Census scales won't change the IDs of existing ones. You can see which census IDs match which scales by browsing a random nation (like so) and looking at the URL. In this example, "Environmental Beauty" is revealed to be ID #63.
by NewTexas » Wed Jan 11, 2012 5:52 am
[violet] wrote:Thanks for the responses.8<-- snip
Just to make sure: you require every field but Causes of Death to be in the daily dump, is that right? I.e. it would be problematic for you if any of the other fields were available only via shards, not the dump.
Assorro wrote:an increase in server requests and IP bans which we've striven to reduce.
by [violet] » Wed Jan 11, 2012 9:11 pm
by Coffee and Crack » Mon Jan 16, 2012 8:30 pm
by Frisbeeteria » Mon Jan 16, 2012 9:00 pm
Coffee and Crack wrote:I've been maintaining a database of all the nations that have joined NationStates and what region they have gone to
by Coffee and Crack » Mon Jan 16, 2012 9:06 pm
by [violet] » Mon Jan 16, 2012 10:25 pm
"8 seconds ago: [flag] Testlandia departed this region for NationStates."
<LOG time="123456789">testlandia departed this region for nationstates.</LOG>
by Coffee and Crack » Mon Jan 16, 2012 11:08 pm
Advertisement
Users browsing this forum: No registered users
Advertisement