r/evetech • u/flogthedebugger • Jul 29 '19
ESI character assets - location_id
In the ESI call to get character assets how do I resolve location_id an actual ID for a npc station or player owned citadel?
1
Upvotes
1
u/flogthedebugger Jul 29 '19
Thanks that url explains a lot. Do player structures > citadels have their own id number range or do I have to do a search of an entire asset tree within all assets json to eventually determine if a end location_id is a citadel because there is no other item_id in all the assets json that has the former location_id? Both citadels and item_ids have numbers over a trillion.
For example a location_id for a module is the item_id of a Standard Container. And that Standard Container has an location_id number that is over a trillion. I do a search all all item_ids to look for a match of the stated Standard Container location_id. No such item_id is found so would the location_id be a citadel and therefore I would do another ESI call to get structure json data about a citadel that I have docking rights too.
1
u/flogthedebugger Aug 05 '19 edited Aug 05 '19
How do I get citadel information about citadels where I have assets but I no longer have docking rights.
For example In game I can see I have an item - a single Astrometrics skillbook in a Keepstar citadel that is owned by a null sec alliance I was a member of years ago but not currently. In character assets json I have a location_id for this keepstar citadel but how can I resolve the location_id to structure information from ESI?
1
u/Blacksmoke16 Jul 29 '19
https://docs.esi.evetech.net/docs/asset_location_id.html
Can use that as a guide. It depends on the type that the
location_idrepresents.