Open evertonberz opened 3 years ago
You can try :
var [lat, lng] = item[2].portalCoupler.portalLocation
.split(',')
.map(a => (Number.parseInt(a,16)&(-1))*1e-6);
To explain further, portalLocation is lat,lng multiplied by 1 million encoded as hexadecimal. The &(-1) handles the case were the value is negative. It's a trick that will interpret the value as signed 32 bit integer but will keep the value unchanged.
If you want you can include my plugin to do that: https://github.com/EisFrei/IngressLiveInventory
Could we just update the existing Keys plugin to use C.O.R.E keys?
Hi, as a C.O.R.E. subscription member, agents can see a list of portal keys in stock Intel.
Could you add a feature for this in IITC-CE? I think it could be a layer with pins at portals that you have keys. Similar to bookmark pins.
/r/getInventory provides the following structure:
It seems portal location is hashed but it's not using standard geohash. Any idea how to decode?
Thanks!