Key sorting Feature request

it would be really helpful if there was a way to sort keys by charge level.

Tagged:

Comments

  • ZeroHecksGivenZeroHecksGiven ✭✭✭✭✭

    It’s been requested many times, myself included. Someone like myself has 700ish keys OUTSIDE of lockers (🤦🏼‍♂️) and requesting that data from Niantic is troublesome. Someone can jump in here and explain exactly why.

    My suggestion was, what if it’s something we could do once an hour or once a day? Part of CORE?

    With the lack of communication from Niantic lately and the lack of meaningful updates to the game, I don’t see them putting much effort into something like this. But hey, if they do, that would be awesome!

  • HosetteHosette ✭✭✭✭✭

    @ZeroHecksGiven Sure, I'll nerd. This is based on my understanding of how Niantic manages Ingress data, and a decades-long career as a software engineer.

    It seems that Ingress pulls down data about your inventory in bulk and stores a limited amount of data for each key Those data include name, location, and the number of keys in your inventory. It also seems to cache images locally. Except for key count, which is a property of your inventory rather than the portals themselves, these are all fundamental properties of the portal and while they may change occasionally they are usually quite stable over time.[1] Resonator count and charge levels, on the other hand, are constantly in flux and are fetched when you need them. You can see this happen by scrolling to a random point in your inventory and watching the spinning icons while the data are loaded.

    In order for Ingress to sort by resonator level it would have to pull down those details about every single key in your open inventory every time you wanted to look at it sorted this way. If you have 50 keys in your open inventory that wouldn't be horribly expensive, but if you have 500 it means that Ingress would have to constantly pull new data about every single key. They could cache the info for a short period of time but since things change constantly the data could get out of date quickly. Imagine, for example, having 500 keys in your open inventory and some of them are getting attacked, and you want to always have the ones under attack at the beginning so you can recharge. Niantic would either have to request new data for every portal every time you looked at the inventory or you would wind up with the keys not being sorted in the order you wanted.


    [1] I bet that if a portal was renamed your inventory would still show the old name for a while, possibly until you specifically looked at that individual key and/or restarted the app. This would be a pretty rare occurrence, IMO, and most users would never notice if it happened.

  • Not just sorting by key charged, I've posted the below before, they have similar features in POGO. Part of CORE seems like a good restriction of the feature if it's taxing on the servers.

    Search Filters for easier key management in Portal Keys, capsule manage screen(for loading/unloading) and in linking screen for quick selection of field keys and not dealing with the slow scrolling keys

    Filters like:

    name (with wildcards)

    portal level (portal0-8)

    distance (distance2-10)

    energy % (energy10-65)

    faction (resistance, enlightened, neutral)

    with usual search logic & , ! similar concepts as POGO.


    Sorting keys by Energy level, count.

    Favourite keys, can't delete or drop unless favourite removed.

  • Imma just keep linking this post:

    Charge level would be nice, but it's not feasible.

  • Neku69Neku69 ✭✭✭✭

    How about make your fav keys instead?

  • Favourite keys, as a client storage value, definitely would work, though I'd say you have "Favourite Portals" and the keys just pop to the front (or back) when you have a key for that portal. That way you could set the favourites in the remote view etc.

  • HosetteHosette ✭✭✭✭✭

    Honestly, my #1 feature request is to search my entire key inventory by name. This should be relatively doable because the information is already stored locally, although presenting it in a usable way could be a bit of a design challenge.

    I can't even begin to count the number of times that someone has asked me, "Do you have any keys to X?" and I either know or think I do and then I have to sort through a whole bunch of lockers and capsules searching for keys.

  • KarM3LKarM3L ✭✭✭✭

    I'm thankful for cores inventory list, would b nice to see in scanner..

  • HosetteHosette ✭✭✭✭✭

    @Perringaiden Not really. If I'm standing on the sidewalk talking to someone and they ask if I have a key to Cupid's Span I want to be able to answer that question easily and quickly. I want to be able to do it inside the app, and I want to be able to go directly from the search results to the capsule that contains the key I'm looking for.

    The intel map is egregiously unusable on mobile, and it doesn't even contain the inventory link as far as I can tell. When I use it on desktop it tells me the capsule ID but not the name so I still have to hunt through my inventory to figure out which one is capsule DEADBEEF.

    Basically, trying to do this via intel on mobile is an egregiously crappy workflow. Doing it on desktop is a moderately crappy workflow.

  • KarM3LKarM3L ✭✭✭✭

    Took me about 5 seconds in Chrome on phone to find capsule my cupid key is in but, I agree in app would be nice....

  • HosetteHosette ✭✭✭✭✭

    @KarM3L OK, where in this horrific mess do I find that? Maybe I'm being dumb but there's absolutely nothing that I've tried in this UI that gets me to my inventory.




  • IcyBlueHeartIcyBlueHeart ✭✭✭✭
    edited August 2022

    @Hosette Select Full in lower right. Then Inventory along the top of the next screen.

  • IcyBlueHeartIcyBlueHeart ✭✭✭✭


  • KarM3LKarM3L ✭✭✭✭

    Yip the 'mobile' interface is terrible but as icy pointed out above full is the key, :)

  • HosetteHosette ✭✭✭✭✭

    OK, that makes sense... but my statement that the mobile interface doesn't contain the inventory link seems to be accurate.

  • KarM3LKarM3L ✭✭✭✭

    Likely because noone ever thought that capsule id's would need hotlinks - could be useful....

  • So below seems doable, all good features for inventory management?

    name (with wildcards)

    distance (distance2-10)

    with usual search logic & , !

    Sorting keys by count.

  • edited August 2022

    Well, Name and Distance are already in the sorting, but as a search definitely.

    • Name
    • Distance
    • Held Number (this would be by "in inventory" or "within a given capsule", unless they add more smarts)
    • Street Address/Suburb/Post-Zip Code

    You could also add things like "Popular photos" (thumbs up over a value), or even lat/lng, like "42.3*" would give you every key whose coordinates start that way.

  • The big processing is determining distance. You pretty likely changed locations from when you looked at your keys last. Distance has to be recomputed every time, for every key. Then it can sort keys by distance. And it knows what percent to use when you recharge it (farther away takes more XM).

  • edited August 2022

    Calculating distance on a map is not a particularly difficult calculation on a curved space. It's not a big processing concern at all, when you hold in your hand a computer more powerful than those that put humans on the moon. The biggest issue with sorting by distance is that when you move, the developer has to decide whether to reshuffle the keys as you move, or reshuffle only on reopening the screen (the better option).

    This is why keys already have a sort by distance option.

    Haversine formula:

    a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)

    c = 2 ⋅ atan2( √a, √(1−a) )

    d = R ⋅ c

    where φ is latitude, λ is longitude, R is earth’s radius (mean radius = 6,371km); note that angles need to be in radians to pass to trig functions!

    Alternative - Law of Cosines: d = acos( sin φ1 ⋅ sin φ2 + cos φ1 ⋅ cos φ2 ⋅ cos Δλ ) ⋅ R

Sign In or Register to comment.