1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 00:07:14 +03:00

Update eddb database

This commit is contained in:
Jonathan Harris 2017-08-18 12:21:35 +01:00
parent be52601c61
commit 50aa1dd94b
3 changed files with 19 additions and 3 deletions

22
eddb.py
View File

@ -31,7 +31,7 @@ if __name__ == "__main__":
# Sphere around Jaques
JX, JY, JZ = -9530.50000, -910.28125, 19808.12500
RJ2 = 50 * 50
RJ2 = 50 * 50 # Furthest populated system is Eol Prou IW-W e1-1456 at 49.47 Ly
def around_jaques(x, y, z):
return ((x - JX) * (x - JX) + (y - JY) * (y - JY) + (z - JZ) * (z - JZ)) <= RJ2
@ -44,7 +44,7 @@ if __name__ == "__main__":
# Get Points Of Interest from Canonn Research - https://api.canonn.technology/api/docs/#!/System/V1StellarSystemsGet
POIS = [(s['name'], s['edsmCoordX'], s['edsmCoordY'], s['edsmCoordZ'])
for s in requests.get('https://api.canonn.technology/api/v1/stellar/systems').json()
if s.get('edsmExtId') or s.get('eddbExtId')]
if s.get('edsmCoordX') and s.get('edsmCoordY') and s.get('edsmCoordZ')]
POIS.extend([
# http://elite-dangerous.wikia.com/wiki/Alien_Crash_Site
('Pleiades Sector AB-W b2-4', -137.56250, -118.25000, -380.43750),
@ -123,10 +123,26 @@ if __name__ == "__main__":
# Hack - ensure duplicate system names are pointing at the more interesting system
system_ids['Amo'] = 866
system_ids['Ogmar'] = 14915 # in bubble, not Colonia
system_ids['Ogma'] = 14915 # in bubble, not Colonia
system_ids['Ratri'] = 16001 # "
system_ids['K Carinae'] = 375886 # both unpopulated
# 2.4 Colonia renames - https://github.com/themroc5/eddb.io/issues/136
system_ids['Poe'] = 2751046
system_ids['White Sun'] = 2277522
system_ids['Chrysus'] = 2911665
system_ids['Juniper'] = 692229
system_ids['Rodentia'] = 1481196
system_ids['Kajuku'] = 1937790
system_ids['Lycanthrope'] = 2221090
system_ids['Ogmar'] = 10931086
system_ids['Ratraii'] = 10918695
system_ids['Farwell'] = 9132855
system_ids['Carlota'] = 1218013
system_ids['Morpheus'] = 684221
system_ids['Earth Expeditionary Fleet'] = 8262285
system_ids['Centralis'] = 1581643
# Some extra interesting systems
system_ids['Sagittarius A*'] = 21276
system_ids["Thor's Eye"] = 34950

Binary file not shown.

BIN
systems.p

Binary file not shown.