EDSM-NET / FrontEnd

Issues tracker for EDSM
https://www.edsm.net/
37 stars 0 forks source link

[Feature Request] Home Factions IDs in the populated systems nightly dump. #311

Open WarmedxMints opened 5 years ago

WarmedxMints commented 5 years ago

Hello,

I am just wondering if it would be possible to add an array of id's for any factions which are native to the system in the nightly dump please? Unless of course I am going blind and it is already in there :D

Thank you.

klightspeed commented 5 years ago

Try https://www.edsm.net/dump/systemsPopulated.json Sorry, mis-read the request.

controllingFaction has the faction information for the controlling faction, while factions has the information on the factions present in the system.

WarmedxMints commented 5 years ago

I am aware, unfortunately factionsdoesn't contain their home system and nor does the general system information contain the factions which are native. It would be great for me if that data could be included as it would save me from parsing two json files from eddb to get that info.

klightspeed commented 5 years ago

Ah ok - so something like an isHomeSystem flag on the faction in the factions array?

WarmedxMints commented 5 years ago

Yeah, a bool in the faction data would do it. I guess that would be less of an increase in data size than an int array of native factions ids in the system data. I also forgot to mention that the unix time of the last update for the system would be nice. I assume that should be done in a new request though.

klightspeed commented 5 years ago

I suspect the faction update time being a unix time_t instead of an ISO datetime might be an oversight.

The date field in the system is when the system was last updated. Note that updating a station, body or faction will not update this timestamp - it is strictly when the system name or location are updated.

WarmedxMints commented 5 years ago

Ok. thanks. That explain why the date field tends to be from a few years ago. I'll just use the main star update time field then to work out when the system was last updated.