These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Sample code, any language, to read assets in POS?

Author
Tarbro Abec
The Scope
Gallente Federation
#1 - 2016-04-12 20:27:46 UTC
I'm looking for sample code, any language, to read assets in that are in a POS..

Thank you.
Aineko Macx
#2 - 2016-04-14 17:22:19 UTC  |  Edited by: Aineko Macx
High level steps, without things like persisting data:
- Get corp StarbaseList XML to get the POSes ID and locationId (= moonId).
- Using the Location XML endpoint, get the XYZ coordinates of the POS
- Get corp AssetList, filter it down to POSes and POS mods (Get all typeIDs from the SDE for categoryID = 23 to use as filter), plus singleton = 1 as filter.
- Use Location endpoint to determine coordinates of these assets at the same locationId, filter down to +/- 300k of same coordinates as POS. These are all the anchored things on the POS.
- In the AssetList, assets can have child assets. Look these up for the mods you have found above, thus finding their contents.

For finding piloted ships (also logged out) at a POS use the MemberTracking XML endpoint to get their locationIds, then match that to the POS location.
Tarbro Abec
The Scope
Gallente Federation
#3 - 2016-04-14 23:47:29 UTC
Thank you.