Skip to content

exa18/swcGalaxyMapSearcher

Repository files navigation

swcGalaxyMapSearcher

swCombine GalaxyMap download localy for easeir/faster access to searched data. Using API 2.0

GitHub milestone GitHub milestone

MAP

What data are downloaded?

STAGE 1

SECTOR (25)

    uid
    name
    controlledby
    knownsystems
    population

SYSTEM (9)

    uid
    name
    population
    controlledby
    location->sector
        uid
    location->coordinates->galaxy
        x
        y

FACTION (20)

    uid
    name

UPDATE

Performance

    STAGE 1
        SECTORs : ~10s
        SYSTEMs : ~25s
        ( FACTION )

    STAGE 2
        PLANETS

    STAGE 3
        CITIES

How and what

Use cron and run script from _update.php

    STAGE 1 update
        sectors
        systems
        faction
    STAGE 2 update
        planets
        stations
    STAGE 3 update
        cities

API v2.0 links

Types used

ID TYPE-LINK
25 sectors
9 systems
20 factions
8 planets
- planet type
7 cities
5 stations
- station type

Other types

ID TYPE-LINK
1 user
24 terrain
22 races
18 weapons
16 materials
3 vehicles
13 droids
4 facilities
12 items
10 npcs
11 creatures