Interface Location

Written at startup or when being resurrected at a station.

interface Location {
    Body: string;
    Body_Localised?: string;
    BodyID?: number;
    BodyType: string;
    Conflicts?: {
        Faction1: ConflictFaction;
        Faction2: ConflictFaction;
        Status: string;
        WarType: string;
    }[];
    DistFromStarLS?: number;
    Docked: boolean;
    event: "Location";
    Factions?: {
        ActiveStates?: { State: string }[];
        Allegiance: string;
        FactionState: string;
        Government: string;
        Happiness?: string;
        Happiness_Localised?: string;
        Influence: number;
        MyReputation?: number;
        Name: string;
        PendingStates?: { State: string; Trend: number }[];
        RecoveringStates?: { State: string; Trend: number }[];
        SquadronFaction?: boolean;
    }[];
    InSRV?: boolean;
    Latitude?: number;
    Longitude?: number;
    MarketID?: number;
    Multicrew?: boolean;
    OnFoot?: boolean;
    Population?: number;
    PowerplayState?: PowerState;
    Powers?: string[];
    StarPos: [number, number, number];
    StarSystem: string;
    StationAllegiance?: string;
    StationEconomies?: {
        Name: string;
        Name_Localised: string;
        Proportion: number;
    }[];
    StationEconomy?: string;
    StationEconomy_Localised?: string;
    StationFaction?: { FactionState?: string; Name: string };
    StationGovernment?: string;
    StationGovernment_Localised?: string;
    StationName?: string;
    StationServices?: StationService[];
    StationType?: string;
    SystemAddress?: number;
    SystemAllegiance: string;
    SystemEconomy: string;
    SystemEconomy_Localised?: string;
    SystemFaction?: { FactionState?: string; Name: string };
    SystemGovernment: string;
    SystemGovernment_Localised?: string;
    SystemSecondEconomy?: string;
    SystemSecondEconomy_Localised?: string;
    SystemSecurity: string;
    SystemSecurity_Localised?: string;
    Taxi?: boolean;
    timestamp: string;
    Wanted?: boolean;
}

Hierarchy (View Summary)

Properties

Body: string
Body_Localised?: string
BodyID?: number
BodyType: string
Conflicts?: {
    Faction1: ConflictFaction;
    Faction2: ConflictFaction;
    Status: string;
    WarType: string;
}[]

Info on local conflicts.

DistFromStarLS?: number
Docked: boolean
event: "Location"

The type of event.

Factions?: {
    ActiveStates?: { State: string }[];
    Allegiance: string;
    FactionState: string;
    Government: string;
    Happiness?: string;
    Happiness_Localised?: string;
    Influence: number;
    MyReputation?: number;
    Name: string;
    PendingStates?: { State: string; Trend: number }[];
    RecoveringStates?: { State: string; Trend: number }[];
    SquadronFaction?: boolean;
}[]

Info on local minor factions.

InSRV?: boolean
Latitude?: number
Longitude?: number
MarketID?: number
Multicrew?: boolean
OnFoot?: boolean
Population?: number
PowerplayState?: PowerState

The system's powerplay state.

Powers?: string[]

Names of any powers contesting the system, or the name of the controlling power.

StarPos: [number, number, number]

Star position as array (x, y, z) in light years.

StarSystem: string
StationAllegiance?: string
StationEconomies?: { Name: string; Name_Localised: string; Proportion: number }[]
StationEconomy?: string
StationEconomy_Localised?: string
StationFaction?: { FactionState?: string; Name: string }
StationGovernment?: string
StationGovernment_Localised?: string
StationName?: string
StationServices?: StationService[]
StationType?: string
SystemAddress?: number
SystemAllegiance: string
SystemEconomy: string
SystemEconomy_Localised?: string
SystemFaction?: { FactionState?: string; Name: string }

Star system's controlling faction.

SystemGovernment: string
SystemGovernment_Localised?: string
SystemSecondEconomy?: string
SystemSecondEconomy_Localised?: string
SystemSecurity: string
SystemSecurity_Localised?: string
Taxi?: boolean
timestamp: string

The time in GMT, ISO 8601.

Wanted?: boolean