i'd been given a list of all guid type codes from the ingress android app - so update the comments to list them all

This commit is contained in:
Jon Atkins 2013-05-13 05:26:42 +01:00
parent 70a4ca804f
commit ee589721e6

View File

@ -256,19 +256,33 @@ window.zoomToAndShowPortal = function(guid, latlng) {
// translates guids to entity types // translates guids to entity types
window.getTypeByGuid = function(guid) { window.getTypeByGuid = function(guid) {
// portals end in “.11” or “.12“, links in “.9", fields in “.b” // All GUID type values, extracted from the ingress app .apk
// .11 == portals // some are almost certainly Niantic internal use only - never seen on the network
// .12 == portals // .1 == Panoramio portal [deprecated]
// .16 == portals // .2 == Random portal
// .9 == links // .3 == Beacon
// .b == fields // .4 == Resource (dropped media - other dropped items?)
// .c == player/creator // .5 == Inventory item
// .d == chat messages // .6 == Energy glob (XM)
// // .7 == Energy spawn location
// others, not used in web: // .8 == HMDB portal [deprecated]
// .5 == resources (burster/resonator) // .9 == Link (internally "edge") ** TYPE_LINK
// .6 == XM // .a == LocalStore portal [deprecated]
// .4 == media items, maybe all droppped resources (?) // .b == Control field (internally "captured region") ** TYPE_FIELD
// .c == Player ** TYPE_PLAYER
// .d == COMM message (internally "plext") ** TYPE_CHAT
// .e == Tracking record
// .f == Tracking group
// .10 == Passcode reward [deprecated]
// .11 == SuperOps portal ** TYPE_PORTAL - the batch loaded from panorimo, etc?
// .12 == Anon portal ** TYPE_PORTAL - user submitted by email?
// .13 == Account info
// .14 == GeoStore POI [deprecated]
// .15 == GeoStore mod
// .16 == GeoStore portal ** TYPE_PORTAL - new in-app submissions?
// .17 == Portal image
// .18 == PMRR change
// resonator guid is [portal guid]-resonator-[slot] // resonator guid is [portal guid]-resonator-[slot]
switch(guid.slice(33)) { switch(guid.slice(33)) {
case '11': case '11':