Earned Runs using gamedetails api

We will try and answer Questions in this forum. If you are having any issues with iScore Baseball, this is probably the best place to start. You can also search historical posts here.
Post Reply
dhardy123
Posts: 13
Joined: Fri Apr 05, 2013 12:47 pm

Earned Runs using gamedetails api

Post by dhardy123 » Tue May 07, 2013 1:03 pm

Is there any way to determine earned and unearned runs using the gamedetails api without recreating the inning? Is there a field that stores this?
User avatar
mprusak
Posts: 1348
Joined: Tue Jun 29, 2010 7:27 pm
Location: Montgomery, IL

Re: Earned Runs using gamedetails api

Post by mprusak » Tue May 07, 2013 1:19 pm

FTM can better answer your question, but take a look at this link as an FYI...looks like it...

http://data.iscorecentral.com/legend.ph ... internal=1" onclick="window.open(this.href);return false;
Mark
iScore Baseball 4.533 on iOS8-iPad4 and iPhone 6-Plus

iScore Baseball User Manual:
http://iscoreleagues.com/manual/ <- Check it Out!
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Earned Runs using gamedetails api

Post by FTMSupport » Tue May 07, 2013 1:21 pm

No, there is not a field that stores this in the gamedetails call. You can use the game stats to get the earned vs unearned runs for a game, but you are not going to get earned vs unearned for each run scored other than on the scorecard where we shade earned vs unearned differently.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
mprusak
Posts: 1348
Joined: Tue Jun 29, 2010 7:27 pm
Location: Montgomery, IL

Re: Earned Runs using gamedetails api

Post by mprusak » Tue May 07, 2013 2:03 pm

I knew I shouldnt have tried to answer a question on a subject I have no idea what I am talking about... :roll:
Mark
iScore Baseball 4.533 on iOS8-iPad4 and iPhone 6-Plus

iScore Baseball User Manual:
http://iscoreleagues.com/manual/ <- Check it Out!
dhardy123
Posts: 13
Joined: Fri Apr 05, 2013 12:47 pm

Re: Earned Runs using gamedetails api

Post by dhardy123 » Tue May 07, 2013 8:31 pm

How do you know when to shade the scorecard differently?
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Earned Runs using gamedetails api

Post by FTMSupport » Tue May 07, 2013 8:39 pm

Our code that draws the scorecard evaluates the pitch by pitch data to determined earned or unearned run.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
dhardy123
Posts: 13
Joined: Fri Apr 05, 2013 12:47 pm

Re: Earned Runs using gamedetails api

Post by dhardy123 » Tue May 07, 2013 8:54 pm

One other question on the gamedetails...how can i determine the number of pitches a pitcher has pitched? I see a pitchid for the game but it isnt reset when a new pitcher enters
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: Earned Runs using gamedetails api

Post by FTMSupport » Tue May 07, 2013 9:25 pm

For each PITCH node, it has an attribute that identifies the pitcher, and the RESULT node has a pitcherballs and pitcherstrikes attribute that identify how many balls and strikes that pitcher has thrown.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
Post Reply