Interface Location

Written at startup or when being resurrected at a station.

interface Location {
    Body: string;
    BodyID?: number;
    BodyType: string;
    Body_Localised?: string;
    Conflicts?: {
        Faction1: ConflictFaction;
        Faction2: ConflictFaction;
        Status: string;
        WarType: string;
    }[];
    DistFromStarLS?: number;
    Docked: boolean;
    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;
    Wanted?: boolean;
    event: "Location";
    timestamp: string;
}

Hierarchy (view full)

Properties

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

Info on local conflicts.

Type declaration

DistFromStarLS?: number
Docked: boolean
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.

Type declaration

  • Optional ActiveStates?: {
        State: string;
    }[]
  • Allegiance: string
  • FactionState: string
  • Government: string
  • Optional Happiness?: string
  • Optional Happiness_Localised?: string
  • Influence: number
  • Optional MyReputation?: number
  • Name: string
  • Optional PendingStates?: {
        State: string;
        Trend: number;
    }[]
  • Optional RecoveringStates?: {
        State: string;
        Trend: number;
    }[]
  • Optional SquadronFaction?: boolean
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;
}[]

Type declaration

  • Name: string
  • Name_Localised: string
  • Proportion: number
StationEconomy?: string
StationEconomy_Localised?: string
StationFaction?: {
    FactionState?: string;
    Name: string;
}

Type declaration

  • Optional 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.

Type declaration

  • Optional FactionState?: string
  • Name: string
SystemGovernment: string
SystemGovernment_Localised?: string
SystemSecondEconomy?: string
SystemSecondEconomy_Localised?: string
SystemSecurity: string
SystemSecurity_Localised?: string
Taxi?: boolean
Wanted?: boolean
event: "Location"

The type of event.

timestamp: string

The time in GMT, ISO 8601.