Skip to content
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

Portal history in IITC #1316

Open
mrWhitton opened this issue Feb 5, 2021 · 2 comments
Open

Portal history in IITC #1316

mrWhitton opened this issue Feb 5, 2021 · 2 comments

Comments

@mrWhitton
Copy link

To build functionality for the new portal history in IITC.
https://community.ingress.com/en/discussion/13451/portal-history-now-available-on-intel-map/p1?new=1

@ekuinox
Copy link

ekuinox commented Feb 6, 2021

window.decodeArray.portalSummary = function(a) {
if (!a) return undefined;
if (a[0] != 'p') throw 'Error: decodeArray.portalSUmmary - not a portal';
if (a.length == CORE_PORTA_DATA_LENGTH) {
return corePortalData(a);
}
// NOTE: allow for either summary or detailed portal data to be passed in here, as details are sometimes
// passed into code only expecting summaries
if (a.length != SUMMARY_PORTAL_DATA_LENGTH && a.length != DETAILED_PORTAL_DATA_LENGTH) {
console.warn('Portal summary length changed - portal details likely broken!');
debugger;
}

when portal level is none a.length may be 14. but when portal was visited or captured, scout controlled, a.length may be 19.
I infer a[18] means level.
https://twitter.com/remokusu/status/1357929670994391041

@johnd0e
Copy link

johnd0e commented Feb 7, 2021

Duplicate of #1315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants