First of all, I'm logged into the Ingress Intel map. Secondly, I'm trying to get to the data programmatically, so I put an iframe into a blank document on my server:
And I'm examining the console tab as I click on a portal. It issues a post to https://www.ingress.com/r/getPortalDetails. When I click on it in the console, it shows me lots of very interesting data like:
which is the picture of the portal - something that's is quite small on the intel map. What I'd like to do is parse the result.
My goal is to write a program to look at a list of guardian portal candidates and tell me which ones I need to recharge.
Q: Can I use JavaScript to programmatically interrogate a list of portals to get their current state? I think the only possible route is to use an iframe, but there might be another clever solution.