mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-02-07 22:46:04 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d9fa3c6b5 | ||
|
|
25a3d8951e |
@@ -8,3 +8,15 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ContextMenu {
|
||||
width: max-content;
|
||||
min-width: unset;
|
||||
|
||||
:global {
|
||||
.p-submenu-list {
|
||||
width: max-content;
|
||||
min-width: unset !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
import React, { RefObject, useMemo } from 'react';
|
||||
import React, { RefObject, useCallback, useMemo } from 'react';
|
||||
import { ContextMenu } from 'primereact/contextmenu';
|
||||
import { PrimeIcons } from 'primereact/api';
|
||||
import { MenuItem } from 'primereact/menuitem';
|
||||
import { SolarSystemRawType, SolarSystemStaticInfoRaw } from '@/hooks/Mapper/types';
|
||||
import { CharacterTypeRaw, SolarSystemRawType, SolarSystemStaticInfoRaw } from '@/hooks/Mapper/types';
|
||||
import classes from './ContextMenuSystemInfo.module.scss';
|
||||
import { getSystemById } from '@/hooks/Mapper/helpers';
|
||||
import { useWaypointMenu } from '@/hooks/Mapper/components/contexts/hooks';
|
||||
import { WaypointSetContextHandler } from '@/hooks/Mapper/components/contexts/types.ts';
|
||||
import { FastSystemActions } from '@/hooks/Mapper/components/contexts/components';
|
||||
import { useJumpPlannerMenu } from '@/hooks/Mapper/components/contexts/hooks';
|
||||
import { Route } from '@/hooks/Mapper/types/routes.ts';
|
||||
import { Route, RouteStationSummary } from '@/hooks/Mapper/types/routes.ts';
|
||||
import { isWormholeSpace } from '@/hooks/Mapper/components/map/helpers/isWormholeSpace.ts';
|
||||
import { MapAddIcon, MapDeleteIcon } from '@/hooks/Mapper/icons';
|
||||
import { useRouteProvider } from '@/hooks/Mapper/components/mapInterface/widgets/RoutesWidget/RoutesProvider.tsx';
|
||||
import { useGetOwnOnlineCharacters } from '@/hooks/Mapper/components/hooks/useGetOwnOnlineCharacters.ts';
|
||||
import { sortStationsByDistance } from './sortStationsByDistance.ts';
|
||||
|
||||
export interface ContextMenuSystemInfoProps {
|
||||
systemStatics: Map<number, SolarSystemStaticInfoRaw>;
|
||||
hubs: string[];
|
||||
contextMenuRef: RefObject<ContextMenu>;
|
||||
systemId: string | undefined;
|
||||
systemIdFrom?: string | undefined;
|
||||
@@ -37,11 +39,109 @@ export const ContextMenuSystemInfo: React.FC<ContextMenuSystemInfoProps> = ({
|
||||
onWaypointSet,
|
||||
systemId,
|
||||
systemIdFrom,
|
||||
hubs,
|
||||
routes,
|
||||
}) => {
|
||||
const getWaypointMenu = useWaypointMenu(onWaypointSet);
|
||||
const getJumpPlannerMenu = useJumpPlannerMenu(systems, systemIdFrom);
|
||||
const { toggleHubCommand, hubs } = useRouteProvider();
|
||||
const getOwnOnlineCharacters = useGetOwnOnlineCharacters();
|
||||
|
||||
const getStationWaypointItems = useCallback(
|
||||
(destinationId: string, chars: CharacterTypeRaw[]): MenuItem[] => [
|
||||
{
|
||||
label: 'Set Destination',
|
||||
icon: PrimeIcons.SEND,
|
||||
command: () => {
|
||||
onWaypointSet({
|
||||
fromBeginning: true,
|
||||
clearWay: true,
|
||||
destination: destinationId,
|
||||
charIds: chars.map(char => char.eve_id),
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Add Waypoint',
|
||||
icon: PrimeIcons.DIRECTIONS_ALT,
|
||||
command: () => {
|
||||
onWaypointSet({
|
||||
fromBeginning: false,
|
||||
clearWay: false,
|
||||
destination: destinationId,
|
||||
charIds: chars.map(char => char.eve_id),
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Add Waypoint Front',
|
||||
icon: PrimeIcons.DIRECTIONS,
|
||||
command: () => {
|
||||
onWaypointSet({
|
||||
fromBeginning: true,
|
||||
clearWay: false,
|
||||
destination: destinationId,
|
||||
charIds: chars.map(char => char.eve_id),
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
[onWaypointSet],
|
||||
);
|
||||
|
||||
const getStationsMenu = useCallback(
|
||||
(stations: RouteStationSummary[]) => {
|
||||
const chars = getOwnOnlineCharacters().filter(x => x.online);
|
||||
const sortedStations = sortStationsByDistance(stations);
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('JOipP', `sortedStations`, sortedStations);
|
||||
|
||||
return [
|
||||
{
|
||||
label: 'Stations',
|
||||
icon: PrimeIcons.MAP_MARKER,
|
||||
items: sortedStations.map(station => {
|
||||
const destinationId = station.station_id.toString();
|
||||
const specialClass = station.special ? '[&_.p-menuitem-text]:text-orange-400' : '';
|
||||
|
||||
if (chars.length === 0) {
|
||||
return {
|
||||
label: station.station_name,
|
||||
className: specialClass || undefined,
|
||||
items: [{ label: 'No online characters', disabled: true }],
|
||||
};
|
||||
}
|
||||
|
||||
if (chars.length === 1) {
|
||||
return {
|
||||
label: station.station_name,
|
||||
className: specialClass || undefined,
|
||||
items: getStationWaypointItems(destinationId, chars.slice(0, 1)),
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
label: station.station_name,
|
||||
className: `${specialClass} w-[500px]`.trim(),
|
||||
items: [
|
||||
{
|
||||
label: 'All',
|
||||
icon: PrimeIcons.USERS,
|
||||
items: getStationWaypointItems(destinationId, chars),
|
||||
},
|
||||
...chars.map(char => ({
|
||||
label: char.name,
|
||||
icon: PrimeIcons.USER,
|
||||
items: getStationWaypointItems(destinationId, [char]),
|
||||
})),
|
||||
],
|
||||
};
|
||||
}),
|
||||
},
|
||||
];
|
||||
},
|
||||
[getOwnOnlineCharacters, getStationWaypointItems],
|
||||
);
|
||||
|
||||
const items: MenuItem[] = useMemo(() => {
|
||||
const system = systemId ? systemStatics.get(parseInt(systemId)) : undefined;
|
||||
@@ -50,6 +150,10 @@ export const ContextMenuSystemInfo: React.FC<ContextMenuSystemInfoProps> = ({
|
||||
if (!systemId || !system) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const route = routes.find(x => x.destination?.toString() === systemId);
|
||||
const stationItems = route?.stations?.length ? getStationsMenu(route.stations) : [];
|
||||
|
||||
return [
|
||||
{
|
||||
className: classes.FastActions,
|
||||
@@ -69,15 +173,20 @@ export const ContextMenuSystemInfo: React.FC<ContextMenuSystemInfoProps> = ({
|
||||
{ separator: true },
|
||||
...getJumpPlannerMenu(system, routes),
|
||||
...getWaypointMenu(systemId, system.system_class),
|
||||
{
|
||||
label: !hubs.includes(systemId) ? 'Add Route' : 'Remove Route',
|
||||
icon: !hubs.includes(systemId) ? (
|
||||
<MapAddIcon className="mr-1 relative left-[-2px]" />
|
||||
) : (
|
||||
<MapDeleteIcon className="mr-1 relative left-[-2px]" />
|
||||
),
|
||||
command: onHubToggle,
|
||||
},
|
||||
...stationItems,
|
||||
...(toggleHubCommand
|
||||
? [
|
||||
{
|
||||
label: !hubs.includes(systemId) ? 'Add Route' : 'Remove Route',
|
||||
icon: !hubs.includes(systemId) ? (
|
||||
<MapAddIcon className="mr-1 relative left-[-2px]" />
|
||||
) : (
|
||||
<MapDeleteIcon className="mr-1 relative left-[-2px]" />
|
||||
),
|
||||
command: onHubToggle,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...(!systemOnMap
|
||||
? [
|
||||
{
|
||||
@@ -94,15 +203,18 @@ export const ContextMenuSystemInfo: React.FC<ContextMenuSystemInfoProps> = ({
|
||||
systems,
|
||||
getJumpPlannerMenu,
|
||||
getWaypointMenu,
|
||||
getStationsMenu,
|
||||
hubs,
|
||||
onHubToggle,
|
||||
onAddSystem,
|
||||
onOpenSettings,
|
||||
toggleHubCommand,
|
||||
routes,
|
||||
]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<ContextMenu model={items} ref={contextMenuRef} breakpoint="767px" />
|
||||
<ContextMenu className={classes.ContextMenu} model={items} ref={contextMenuRef} breakpoint="767px" />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ export const useContextMenuSystemInfoHandlers = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
ref.current.toggleHubCommand(system);
|
||||
ref.current.toggleHubCommand?.(system);
|
||||
setSystem(undefined);
|
||||
}, []);
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ export const useDetectSettingsChanged = () => {
|
||||
storedSettings: {
|
||||
interfaceSettings,
|
||||
settingsRoutes,
|
||||
settingsRoutesBy,
|
||||
settingsLocal,
|
||||
settingsSignatures,
|
||||
settingsOnTheMap,
|
||||
@@ -16,7 +17,15 @@ export const useDetectSettingsChanged = () => {
|
||||
|
||||
useEffect(
|
||||
() => setCounter(x => x + 1),
|
||||
[interfaceSettings, settingsRoutes, settingsLocal, settingsSignatures, settingsOnTheMap, settingsKills],
|
||||
[
|
||||
interfaceSettings,
|
||||
settingsRoutes,
|
||||
settingsRoutesBy,
|
||||
settingsLocal,
|
||||
settingsSignatures,
|
||||
settingsOnTheMap,
|
||||
settingsKills,
|
||||
],
|
||||
);
|
||||
|
||||
return counter;
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
SystemStructures,
|
||||
WRoutesPublic,
|
||||
WRoutesUser,
|
||||
WRoutesBy,
|
||||
WSystemKills,
|
||||
} from '@/hooks/Mapper/components/mapInterface/widgets';
|
||||
|
||||
@@ -18,6 +19,7 @@ export enum WidgetsIds {
|
||||
signatures = 'signatures',
|
||||
local = 'local',
|
||||
routes = 'routes',
|
||||
routesBy = 'routesBy',
|
||||
structures = 'structures',
|
||||
kills = 'kills',
|
||||
comments = 'comments',
|
||||
@@ -60,6 +62,13 @@ export const DEFAULT_WIDGETS: WindowProps[] = [
|
||||
zIndex: 0,
|
||||
content: () => <WRoutesPublic />,
|
||||
},
|
||||
{
|
||||
id: WidgetsIds.routesBy,
|
||||
position: { x: 10, y: 740 },
|
||||
size: { width: 510, height: 200 },
|
||||
zIndex: 0,
|
||||
content: () => <WRoutesBy />,
|
||||
},
|
||||
{
|
||||
id: WidgetsIds.userRoutes,
|
||||
position: { x: 10, y: 10 },
|
||||
@@ -112,6 +121,10 @@ export const WIDGETS_CHECKBOXES_PROPS: WidgetsCheckboxesType = [
|
||||
id: WidgetsIds.routes,
|
||||
label: 'Routes',
|
||||
},
|
||||
{
|
||||
id: WidgetsIds.routesBy,
|
||||
label: 'Routes By',
|
||||
},
|
||||
{
|
||||
id: WidgetsIds.userRoutes,
|
||||
label: 'User Routes',
|
||||
|
||||
@@ -86,6 +86,13 @@ export const RoutesWidgetContent = () => {
|
||||
[handleClick],
|
||||
);
|
||||
|
||||
|
||||
// useEffect(() => {
|
||||
// // eslint-disable-next-line no-console
|
||||
// console.log('JOipP', `loading`, loading);
|
||||
// }, [loading]);
|
||||
|
||||
|
||||
if (isRestricted && !isSubscriptionActive) {
|
||||
return (
|
||||
<div className="w-full h-full flex items-center justify-center">
|
||||
@@ -108,6 +115,7 @@ export const RoutesWidgetContent = () => {
|
||||
return <div className="w-full h-full flex justify-center items-center select-none">Routes not set</div>;
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<LoadingWrapper loading={loading}>
|
||||
@@ -129,7 +137,6 @@ export const RoutesWidgetContent = () => {
|
||||
offset: 10,
|
||||
}}
|
||||
/>
|
||||
|
||||
<SystemView
|
||||
systemId={route.destination.toString()}
|
||||
className={clsx('select-none text-center cursor-context-menu')}
|
||||
@@ -138,7 +145,7 @@ export const RoutesWidgetContent = () => {
|
||||
showCustomName
|
||||
/>
|
||||
</div>
|
||||
<div className="text-right pl-1">{route.has_connection ? route.systems?.length ?? 2 : ''}</div>
|
||||
<div className="text-right pl-1">{route.has_connection ? (route.systems?.length ?? 2) : ''}</div>
|
||||
<div className="pl-2 pb-0.5">
|
||||
<RoutesList data={route} onContextMenu={handleContextMenu} />
|
||||
</div>
|
||||
@@ -147,9 +154,7 @@ export const RoutesWidgetContent = () => {
|
||||
})}
|
||||
</div>
|
||||
</LoadingWrapper>
|
||||
|
||||
<ContextMenuSystemInfo
|
||||
hubs={hubs}
|
||||
routes={preparedRoutes}
|
||||
systems={systems}
|
||||
systemStatics={systemStatics}
|
||||
@@ -162,9 +167,10 @@ export const RoutesWidgetContent = () => {
|
||||
|
||||
type RoutesWidgetCompProps = {
|
||||
title: ReactNode | string;
|
||||
renderContent?: (content: ReactNode, compact: boolean) => ReactNode;
|
||||
};
|
||||
|
||||
export const RoutesWidgetComp = ({ title }: RoutesWidgetCompProps) => {
|
||||
export const RoutesWidgetComp = ({ title, renderContent }: RoutesWidgetCompProps) => {
|
||||
const [routeSettingsVisible, setRouteSettingsVisible] = useState(false);
|
||||
const { data, update, addHubCommand } = useRouteProvider();
|
||||
|
||||
@@ -183,7 +189,7 @@ export const RoutesWidgetComp = ({ title }: RoutesWidgetCompProps) => {
|
||||
const onAddSystem = useCallback(() => setOpenAddSystem(true), []);
|
||||
|
||||
const handleSubmitAddSystem: SearchOnSubmitCallback = useCallback(
|
||||
async item => addHubCommand(item.value.toString()),
|
||||
async item => addHubCommand?.(item.value.toString()),
|
||||
[addHubCommand],
|
||||
);
|
||||
|
||||
@@ -191,15 +197,17 @@ export const RoutesWidgetComp = ({ title }: RoutesWidgetCompProps) => {
|
||||
<Widget
|
||||
label={
|
||||
<div className="flex justify-between items-center text-xs w-full" ref={ref}>
|
||||
<span className="select-none">{title}</span>
|
||||
<div className="select-none flex items-center gap-2">{title}</div>
|
||||
<LayoutEventBlocker className="flex items-center gap-2">
|
||||
<WdImgButton
|
||||
className={PrimeIcons.PLUS_CIRCLE}
|
||||
onClick={onAddSystem}
|
||||
tooltip={{
|
||||
content: 'Click here to add new system to routes',
|
||||
}}
|
||||
/>
|
||||
{addHubCommand && (
|
||||
<WdImgButton
|
||||
className={PrimeIcons.PLUS_CIRCLE}
|
||||
onClick={onAddSystem}
|
||||
tooltip={{
|
||||
content: 'Click here to add new system to routes',
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
<WdTooltipWrapper content="Show shortest route" position={TooltipPosition.top}>
|
||||
<WdCheckbox
|
||||
@@ -223,24 +231,38 @@ export const RoutesWidgetComp = ({ title }: RoutesWidgetCompProps) => {
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<RoutesWidgetContent />
|
||||
{renderContent ? (
|
||||
renderContent(
|
||||
<div className="h-full overflow-auto bg-opacity-5 custom-scrollbar">
|
||||
<RoutesWidgetContent />
|
||||
</div>,
|
||||
compact,
|
||||
)
|
||||
) : (
|
||||
<div className="h-full overflow-auto bg-opacity-5 custom-scrollbar">
|
||||
<RoutesWidgetContent />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<RoutesSettingsDialog visible={routeSettingsVisible} setVisible={setRouteSettingsVisible} />
|
||||
|
||||
<AddSystemDialog
|
||||
title="Add system to routes"
|
||||
visible={openAddSystem}
|
||||
setVisible={() => setOpenAddSystem(false)}
|
||||
onSubmit={handleSubmitAddSystem}
|
||||
/>
|
||||
{addHubCommand && (
|
||||
<AddSystemDialog
|
||||
title="Add system to routes"
|
||||
visible={openAddSystem}
|
||||
setVisible={() => setOpenAddSystem(false)}
|
||||
onSubmit={handleSubmitAddSystem}
|
||||
/>
|
||||
)}
|
||||
</Widget>
|
||||
);
|
||||
};
|
||||
|
||||
export const RoutesWidget = forwardRef<RoutesImperativeHandle, RoutesWidgetProps & RoutesWidgetCompProps>(
|
||||
({ title, ...props }, ref) => {
|
||||
({ title, renderContent, ...props }, ref) => {
|
||||
return (
|
||||
<RoutesProvider {...props} ref={ref}>
|
||||
<RoutesWidgetComp title={title} />
|
||||
<RoutesWidgetComp title={title} renderContent={renderContent} />
|
||||
</RoutesProvider>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export * from './useLoadRoutes';
|
||||
export * from './useLoadRoutesBy';
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useMapRootState } from '@/hooks/Mapper/mapRootProvider';
|
||||
import { RoutesType } from '@/hooks/Mapper/mapRootProvider/types.ts';
|
||||
import { LoadRoutesCommand } from '@/hooks/Mapper/components/mapInterface/widgets/RoutesWidget/types.ts';
|
||||
import { RoutesList } from '@/hooks/Mapper/types/routes.ts';
|
||||
import { flattenValues } from '@/hooks/Mapper/utils/flattenValues.ts';
|
||||
import { useMapEventListener } from '@/hooks/Mapper/events';
|
||||
import { Commands } from '@/hooks/Mapper/types';
|
||||
|
||||
function usePrevious<T>(value: T): T | undefined {
|
||||
const ref = useRef<T>();
|
||||
|
||||
useEffect(() => {
|
||||
ref.current = value;
|
||||
}, [value]);
|
||||
|
||||
return ref.current;
|
||||
}
|
||||
|
||||
type UseLoadRoutesByProps = {
|
||||
loadRoutesCommand: LoadRoutesCommand;
|
||||
routesList: RoutesList | undefined;
|
||||
data: RoutesType;
|
||||
deps?: unknown[];
|
||||
};
|
||||
|
||||
export const useLoadRoutesBy = ({
|
||||
data: routesSettings,
|
||||
loadRoutesCommand,
|
||||
routesList,
|
||||
deps = [],
|
||||
}: UseLoadRoutesByProps) => {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const {
|
||||
data: { selectedSystems },
|
||||
} = useMapRootState();
|
||||
|
||||
const prevSys = usePrevious(selectedSystems);
|
||||
const ref = useRef({ prevSys, selectedSystems });
|
||||
ref.current = { prevSys, selectedSystems };
|
||||
|
||||
const loadRoutes = useCallback(
|
||||
(systemId: string, settings: RoutesType) => {
|
||||
loadRoutesCommand(systemId, settings);
|
||||
setLoading(true);
|
||||
},
|
||||
[loadRoutesCommand],
|
||||
);
|
||||
|
||||
useMapEventListener(event => {
|
||||
if (event.name === Commands.routesListBy) {
|
||||
setLoading(false);
|
||||
}
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(false);
|
||||
}, [routesList]);
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedSystems.length !== 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
const [systemId] = selectedSystems;
|
||||
loadRoutes(systemId, routesSettings);
|
||||
}, [loadRoutes, selectedSystems, ...flattenValues(routesSettings), ...deps]);
|
||||
|
||||
return { loading, loadRoutes, setLoading };
|
||||
};
|
||||
@@ -12,8 +12,8 @@ export type RoutesWidgetProps = {
|
||||
routesList: RoutesList | undefined;
|
||||
loading: boolean;
|
||||
|
||||
addHubCommand: AddHubCommand;
|
||||
toggleHubCommand: ToggleHubCommand;
|
||||
addHubCommand?: AddHubCommand;
|
||||
toggleHubCommand?: ToggleHubCommand;
|
||||
isRestricted?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
import { useCallback, useMemo, useRef } from 'react';
|
||||
import { RoutesWidget } from '@/hooks/Mapper/components/mapInterface/widgets';
|
||||
import { LoadRoutesCommand } from '@/hooks/Mapper/components/mapInterface/widgets/RoutesWidget/types.ts';
|
||||
import { useLoadRoutesBy } from '@/hooks/Mapper/components/mapInterface/widgets/RoutesWidget/hooks';
|
||||
import { useMapRootState } from '@/hooks/Mapper/mapRootProvider';
|
||||
import { OutCommand } from '@/hooks/Mapper/types';
|
||||
import { Dropdown } from 'primereact/dropdown';
|
||||
import { SelectItemOptionsType } from 'primereact/selectitem';
|
||||
import useMaxWidth from '@/hooks/Mapper/hooks/useMaxWidth.ts';
|
||||
import clsx from 'clsx';
|
||||
import { RoutesByCategoryType, RoutesByScopeType, RoutesType } from '@/hooks/Mapper/mapRootProvider/types.ts';
|
||||
import { DEFAULT_ROUTES_SETTINGS } from '@/hooks/Mapper/mapRootProvider/constants.ts';
|
||||
|
||||
export type RoutesByType = RoutesByCategoryType;
|
||||
export type RoutesBySecurityType = RoutesByScopeType;
|
||||
|
||||
type WRoutesByProps = {
|
||||
type?: RoutesByType;
|
||||
title?: string;
|
||||
};
|
||||
|
||||
const ROUTES_BY_OPTIONS: SelectItemOptionsType = [
|
||||
{
|
||||
label: 'Blue Loot',
|
||||
value: 'blueLoot',
|
||||
icon: 'images/30747_64.png',
|
||||
},
|
||||
{
|
||||
label: 'Red Loot',
|
||||
value: 'redLoot',
|
||||
icon: 'images/89219_64.png',
|
||||
},
|
||||
{
|
||||
label: 'Thera',
|
||||
value: 'thera',
|
||||
icon: 'images/map.png',
|
||||
},
|
||||
{
|
||||
label: 'Turnur',
|
||||
value: 'turnur',
|
||||
icon: 'images/map.png',
|
||||
},
|
||||
{
|
||||
label: 'Security Office',
|
||||
value: 'so_cleaning',
|
||||
icon: 'images/concord-so.png',
|
||||
},
|
||||
{
|
||||
label: 'Trade Hubs',
|
||||
value: 'trade_hubs',
|
||||
icon: 'images/market.png',
|
||||
},
|
||||
];
|
||||
const ROUTES_BY_SECURITY_OPTIONS = [
|
||||
{ label: 'All', value: 'ALL' },
|
||||
{ label: 'High', value: 'HIGH' },
|
||||
];
|
||||
|
||||
export const WRoutesBy = ({ type = 'blueLoot', title = 'Routes By' }: WRoutesByProps) => {
|
||||
const {
|
||||
outCommand,
|
||||
storedSettings: { settingsRoutesBy, settingsRoutesByUpdate },
|
||||
data,
|
||||
} = useMapRootState();
|
||||
|
||||
const criteriaType = settingsRoutesBy.type ?? type;
|
||||
const securityType = settingsRoutesBy.scope ?? 'ALL';
|
||||
const routesSettings = settingsRoutesBy.routes ?? DEFAULT_ROUTES_SETTINGS;
|
||||
const routesListBy = data.routesListBy;
|
||||
|
||||
const loadRoutesCommand: LoadRoutesCommand = useCallback(
|
||||
async (systemId, currentRoutesSettings) => {
|
||||
await outCommand({
|
||||
type: OutCommand.getRoutesBy,
|
||||
data: {
|
||||
system_id: systemId,
|
||||
type: criteriaType,
|
||||
securityType: securityType === 'HIGH' ? 'high' : 'both',
|
||||
routes_settings: currentRoutesSettings,
|
||||
},
|
||||
});
|
||||
},
|
||||
[outCommand, criteriaType, securityType],
|
||||
);
|
||||
|
||||
const hubs = useMemo(() => routesListBy?.routes?.map(route => route.destination.toString()) ?? [], [routesListBy]);
|
||||
|
||||
const { loading: internalLoading } = useLoadRoutesBy({
|
||||
data: routesSettings,
|
||||
loadRoutesCommand,
|
||||
routesList: routesListBy,
|
||||
deps: [criteriaType, securityType],
|
||||
});
|
||||
|
||||
const updateRoutesSettings = useCallback(
|
||||
(next: Partial<RoutesType> | ((prev: RoutesType) => Partial<RoutesType>)) =>
|
||||
settingsRoutesByUpdate(prev => ({
|
||||
routes: {
|
||||
...prev.routes,
|
||||
...(typeof next === 'function' ? next(prev.routes) : next),
|
||||
},
|
||||
})),
|
||||
[settingsRoutesByUpdate],
|
||||
);
|
||||
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
const compactSmall = useMaxWidth(ref, 180);
|
||||
const compactMiddle = useMaxWidth(ref, 245);
|
||||
|
||||
return (
|
||||
<RoutesWidget
|
||||
title={title}
|
||||
renderContent={(content /*, compact*/) => (
|
||||
<div className="h-full grid grid-rows-[1fr_auto]" ref={ref}>
|
||||
{content}
|
||||
<div className="flex items-center gap-2 justify-end mb-2 px-2 pt-2">
|
||||
{!compactSmall && (
|
||||
<Dropdown
|
||||
value={securityType}
|
||||
options={ROUTES_BY_SECURITY_OPTIONS}
|
||||
onChange={e => settingsRoutesByUpdate({ scope: e.value as RoutesBySecurityType })}
|
||||
className="w-[90px] [&_span]:!text-[12px]"
|
||||
/>
|
||||
)}
|
||||
<Dropdown
|
||||
value={criteriaType}
|
||||
itemTemplate={e => (
|
||||
<div className="flex items-center gap-2">
|
||||
{e.icon && <img src={e.icon} height="18" width="18" />}
|
||||
<span className="text-[12px]">{e.label}</span>
|
||||
</div>
|
||||
)}
|
||||
valueTemplate={e => {
|
||||
if (!e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (compactMiddle) {
|
||||
return (
|
||||
<div className="flex items-center gap-2 min-w-[50px]">
|
||||
{e.icon ? <img src={e.icon} height="18" width="18" /> : <span>{e.label}</span>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
{e.icon && <img src={e.icon} height="18" width="18" />}
|
||||
<span className="text-[12px]">{e.label}</span>
|
||||
</div>
|
||||
);
|
||||
}}
|
||||
options={ROUTES_BY_OPTIONS}
|
||||
onChange={e => settingsRoutesByUpdate({ type: e.value as RoutesByType })}
|
||||
className={clsx({
|
||||
['w-[130px]']: !compactMiddle,
|
||||
['w-[65px]']: compactMiddle,
|
||||
})}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
data={routesSettings}
|
||||
update={updateRoutesSettings}
|
||||
hubs={hubs}
|
||||
routesList={routesListBy}
|
||||
loading={internalLoading}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
export { WRoutesBy } from './WRoutesBy';
|
||||
export type { RoutesByType } from './WRoutesBy';
|
||||
@@ -6,4 +6,5 @@ export * from './SystemStructures';
|
||||
export * from './WSystemKills';
|
||||
export * from './WRoutesUser';
|
||||
export * from './WRoutesPublic';
|
||||
export * from './WRoutesBy';
|
||||
export * from './CommentsWidget';
|
||||
|
||||
@@ -38,9 +38,11 @@ export const OldSettingsDialog = () => {
|
||||
localWidget: createSettings(widgetLocal, {}),
|
||||
widgets: createSettings(widgetsOld, {}),
|
||||
routes: createSettings(widgetRoutes, {}),
|
||||
routesBy: createSettings(widgetRoutes, {}),
|
||||
onTheMap: createSettings(onTheMapOld, {}),
|
||||
signaturesWidget: createSettings(signatures, {}),
|
||||
interface: createSettings(interfaceSettings, {}),
|
||||
map: createSettings(null, { viewport: { zoom: 1, x: 0, y: 0 } }),
|
||||
};
|
||||
|
||||
if (asFile) {
|
||||
|
||||
@@ -13,7 +13,7 @@ export type SystemViewProps = {
|
||||
|
||||
export const SystemView = ({ systemId, systemInfo: customSystemInfo, showCustomName, ...rest }: SystemViewProps) => {
|
||||
const memSystems = useMemo(() => [systemId], [systemId]);
|
||||
const { systems, loading } = useLoadSystemStatic({ systems: memSystems });
|
||||
const { systems, lastUpdateKey, loading } = useLoadSystemStatic({ systems: memSystems });
|
||||
|
||||
const {
|
||||
data: { systems: mapSystems },
|
||||
@@ -23,9 +23,10 @@ export const SystemView = ({ systemId, systemInfo: customSystemInfo, showCustomN
|
||||
if (!systemId) {
|
||||
return customSystemInfo;
|
||||
}
|
||||
|
||||
return systems.get(parseInt(systemId));
|
||||
// eslint-disable-next-line
|
||||
}, [customSystemInfo, systemId, systems, loading]);
|
||||
}, [customSystemInfo, systemId, systems, lastUpdateKey, loading]);
|
||||
|
||||
const mapSystemInfo = useMemo(() => {
|
||||
if (!showCustomName) {
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
MapUnionTypes,
|
||||
OutCommandHandler,
|
||||
SolarSystemConnection,
|
||||
StringBoolean,
|
||||
TrackingCharacter,
|
||||
UseCharactersCacheData,
|
||||
UseCommentsData,
|
||||
@@ -28,12 +27,14 @@ import {
|
||||
MapSettings,
|
||||
MapUserSettings,
|
||||
OnTheMapSettingsType,
|
||||
RoutesByType,
|
||||
RoutesType,
|
||||
} from '@/hooks/Mapper/mapRootProvider/types.ts';
|
||||
import {
|
||||
DEFAULT_KILLS_WIDGET_SETTINGS,
|
||||
DEFAULT_MAP_SETTINGS,
|
||||
DEFAULT_ON_THE_MAP_SETTINGS,
|
||||
DEFAULT_ROUTES_BY_SETTINGS,
|
||||
DEFAULT_ROUTES_SETTINGS,
|
||||
DEFAULT_WIDGET_LOCAL_SETTINGS,
|
||||
STORED_INTERFACE_DEFAULT_VALUES,
|
||||
@@ -76,6 +77,7 @@ const INITIAL_DATA: MapRootData = {
|
||||
userHubs: [],
|
||||
routes: undefined,
|
||||
userRoutes: undefined,
|
||||
routesListBy: undefined,
|
||||
kills: [],
|
||||
connections: [],
|
||||
detailedKills: {},
|
||||
@@ -132,6 +134,8 @@ export interface MapRootContextProps {
|
||||
setInterfaceSettings: Dispatch<SetStateAction<InterfaceStoredSettings>>;
|
||||
settingsRoutes: RoutesType;
|
||||
settingsRoutesUpdate: Dispatch<SetStateAction<RoutesType>>;
|
||||
settingsRoutesBy: RoutesByType;
|
||||
settingsRoutesByUpdate: Dispatch<SetStateAction<RoutesByType>>;
|
||||
settingsLocal: LocalWidgetSettings;
|
||||
settingsLocalUpdate: Dispatch<SetStateAction<LocalWidgetSettings>>;
|
||||
settingsSignatures: SignatureSettingsType;
|
||||
@@ -179,6 +183,8 @@ const MapRootContext = createContext<MapRootContextProps>({
|
||||
setInterfaceSettings: () => null,
|
||||
settingsRoutes: DEFAULT_ROUTES_SETTINGS,
|
||||
settingsRoutesUpdate: () => null,
|
||||
settingsRoutesBy: { ...DEFAULT_ROUTES_BY_SETTINGS, routes: { ...DEFAULT_ROUTES_BY_SETTINGS.routes } },
|
||||
settingsRoutesByUpdate: () => null,
|
||||
settingsLocal: DEFAULT_WIDGET_LOCAL_SETTINGS,
|
||||
settingsLocalUpdate: () => null,
|
||||
settingsSignatures: DEFAULT_SIGNATURE_SETTINGS,
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
MiniMapPlacement,
|
||||
OnTheMapSettingsType,
|
||||
PingsPlacement,
|
||||
RoutesByType,
|
||||
RoutesType,
|
||||
} from '@/hooks/Mapper/mapRootProvider/types.ts';
|
||||
import { DEFAULT_WIDGETS, STORED_VISIBLE_WIDGETS_DEFAULT } from '@/hooks/Mapper/components/mapInterface/constants.tsx';
|
||||
@@ -43,6 +44,12 @@ export const DEFAULT_WIDGET_LOCAL_SETTINGS: LocalWidgetSettings = {
|
||||
showShipName: false,
|
||||
};
|
||||
|
||||
export const DEFAULT_ROUTES_BY_SETTINGS: RoutesByType = {
|
||||
routes: DEFAULT_ROUTES_SETTINGS,
|
||||
scope: 'ALL',
|
||||
type: 'blueLoot',
|
||||
};
|
||||
|
||||
export const DEFAULT_ON_THE_MAP_SETTINGS: OnTheMapSettingsType = {
|
||||
hideOffline: false,
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@ import {
|
||||
DEFAULT_KILLS_WIDGET_SETTINGS,
|
||||
DEFAULT_MAP_SETTINGS,
|
||||
DEFAULT_ON_THE_MAP_SETTINGS,
|
||||
DEFAULT_ROUTES_BY_SETTINGS,
|
||||
DEFAULT_ROUTES_SETTINGS,
|
||||
DEFAULT_WIDGET_LOCAL_SETTINGS,
|
||||
getDefaultWidgetProps,
|
||||
@@ -17,6 +18,11 @@ export const createWidgetSettings = <T>(settings: T) => {
|
||||
};
|
||||
|
||||
export const createDefaultStoredSettings = (): MapUserSettings => {
|
||||
const defaultRoutesBy = {
|
||||
...DEFAULT_ROUTES_BY_SETTINGS,
|
||||
routes: { ...DEFAULT_ROUTES_BY_SETTINGS.routes },
|
||||
};
|
||||
|
||||
return {
|
||||
version: STORED_SETTINGS_VERSION,
|
||||
migratedFromOld: false,
|
||||
@@ -24,6 +30,7 @@ export const createDefaultStoredSettings = (): MapUserSettings => {
|
||||
localWidget: createWidgetSettings(DEFAULT_WIDGET_LOCAL_SETTINGS),
|
||||
widgets: createWidgetSettings(getDefaultWidgetProps()),
|
||||
routes: createWidgetSettings(DEFAULT_ROUTES_SETTINGS),
|
||||
routesBy: createWidgetSettings(defaultRoutesBy),
|
||||
onTheMap: createWidgetSettings(DEFAULT_ON_THE_MAP_SETTINGS),
|
||||
signaturesWidget: createWidgetSettings(DEFAULT_SIGNATURE_SETTINGS),
|
||||
interface: createWidgetSettings(STORED_INTERFACE_DEFAULT_VALUES),
|
||||
@@ -43,6 +50,11 @@ export const getDefaultSettingsByType = (type: SettingsTypes): SettingsWrapper<a
|
||||
return createWidgetSettings(getDefaultWidgetProps());
|
||||
case SettingsTypes.routes:
|
||||
return createWidgetSettings(DEFAULT_ROUTES_SETTINGS);
|
||||
case SettingsTypes.routesBy:
|
||||
return createWidgetSettings({
|
||||
...DEFAULT_ROUTES_BY_SETTINGS,
|
||||
routes: { ...DEFAULT_ROUTES_BY_SETTINGS.routes },
|
||||
});
|
||||
case SettingsTypes.onTheMap:
|
||||
return createWidgetSettings(DEFAULT_ON_THE_MAP_SETTINGS);
|
||||
case SettingsTypes.signaturesWidget:
|
||||
|
||||
@@ -112,3 +112,23 @@ export const useUserRoutes = () => {
|
||||
update({ userRoutes: value });
|
||||
}, []);
|
||||
};
|
||||
|
||||
export const useRoutesListBy = () => {
|
||||
const {
|
||||
update,
|
||||
data: { routesListBy },
|
||||
} = useMapRootState();
|
||||
|
||||
const ref = useRef({ update, routesListBy });
|
||||
ref.current = { update, routesListBy };
|
||||
|
||||
return useCallback((value: CommandRoutes) => {
|
||||
const { update, routesListBy } = ref.current;
|
||||
|
||||
if (areRoutesListsEqual(routesListBy, value)) {
|
||||
return;
|
||||
}
|
||||
|
||||
update({ routesListBy: value });
|
||||
}, []);
|
||||
};
|
||||
|
||||
@@ -38,6 +38,7 @@ import {
|
||||
useMapInit,
|
||||
useMapUpdated,
|
||||
useRoutes,
|
||||
useRoutesListBy,
|
||||
useUserRoutes,
|
||||
} from './api';
|
||||
|
||||
@@ -61,6 +62,7 @@ export const useMapRootHandlers = (ref: ForwardedRef<MapHandlers>) => {
|
||||
const mapUpdated = useMapUpdated();
|
||||
const mapRoutes = useRoutes();
|
||||
const mapUserRoutes = useUserRoutes();
|
||||
const mapRoutesListBy = useRoutesListBy();
|
||||
const { addComment, removeComment } = useCommandComments();
|
||||
const { pingAdded, pingCancelled } = useCommandPings();
|
||||
const { pingBlocked } = useCommandPingBlocked();
|
||||
@@ -115,6 +117,9 @@ export const useMapRootHandlers = (ref: ForwardedRef<MapHandlers>) => {
|
||||
case Commands.userRoutes:
|
||||
mapUserRoutes(data as CommandRoutes);
|
||||
break;
|
||||
case Commands.routesListBy:
|
||||
mapRoutesListBy(data as CommandRoutes);
|
||||
break;
|
||||
|
||||
case Commands.signaturesUpdated: // USED
|
||||
updateSystemSignatures(data as CommandSignaturesUpdated);
|
||||
|
||||
@@ -56,6 +56,12 @@ export const useMapUserSettings = ({ map_slug }: MapRootData, outCommand: OutCom
|
||||
map_slug,
|
||||
'routes',
|
||||
);
|
||||
const [settingsRoutesBy, settingsRoutesByUpdate] = useSettingsValueAndSetter(
|
||||
mapUserSettings,
|
||||
setMapUserSettings,
|
||||
map_slug,
|
||||
'routesBy',
|
||||
);
|
||||
|
||||
const [settingsLocal, settingsLocalUpdate] = useSettingsValueAndSetter(
|
||||
mapUserSettings,
|
||||
@@ -188,6 +194,8 @@ export const useMapUserSettings = ({ map_slug }: MapRootData, outCommand: OutCom
|
||||
setInterfaceSettings,
|
||||
settingsRoutes,
|
||||
settingsRoutesUpdate,
|
||||
settingsRoutesBy,
|
||||
settingsRoutesByUpdate,
|
||||
settingsLocal,
|
||||
settingsLocalUpdate,
|
||||
settingsSignatures,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { to_1 } from './to_1.ts';
|
||||
import { to_2 } from './to_2.ts';
|
||||
import { to_3 } from './to_3.ts';
|
||||
import { MigrationStructure } from '@/hooks/Mapper/mapRootProvider/types.ts';
|
||||
|
||||
export default [to_1, to_2] as MigrationStructure[];
|
||||
export default [to_1, to_2, to_3] as MigrationStructure[];
|
||||
|
||||
@@ -47,6 +47,22 @@ export type RoutesType = {
|
||||
avoid: number[];
|
||||
};
|
||||
|
||||
export type RoutesByCategoryType =
|
||||
| 'blueLoot'
|
||||
| 'redLoot'
|
||||
| 'thera'
|
||||
| 'turnur'
|
||||
| 'so_cleaning'
|
||||
| 'trade_hubs';
|
||||
|
||||
export type RoutesByScopeType = 'ALL' | 'HIGH';
|
||||
|
||||
export type RoutesByType = {
|
||||
routes: RoutesType;
|
||||
scope: RoutesByScopeType;
|
||||
type: RoutesByCategoryType;
|
||||
};
|
||||
|
||||
export type LocalWidgetSettings = {
|
||||
compact: boolean;
|
||||
showOffline: boolean;
|
||||
@@ -79,6 +95,7 @@ export type MapUserSettings = {
|
||||
interface: SettingsWrapper<InterfaceStoredSettings>;
|
||||
onTheMap: SettingsWrapper<OnTheMapSettingsType>;
|
||||
routes: SettingsWrapper<RoutesType>;
|
||||
routesBy: SettingsWrapper<RoutesByType>;
|
||||
localWidget: SettingsWrapper<LocalWidgetSettings>;
|
||||
signaturesWidget: SettingsWrapper<SignatureSettingsType>;
|
||||
killsWidget: SettingsWrapper<KillsWidgetSettings>;
|
||||
@@ -98,6 +115,7 @@ export enum SettingsTypes {
|
||||
localWidget = 'localWidget',
|
||||
widgets = 'widgets',
|
||||
routes = 'routes',
|
||||
routesBy = 'routesBy',
|
||||
onTheMap = 'onTheMap',
|
||||
signaturesWidget = 'signaturesWidget',
|
||||
interface = 'interface',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const STORED_SETTINGS_VERSION = 2;
|
||||
export const STORED_SETTINGS_VERSION = 3;
|
||||
|
||||
export const LS_KEY_LEGASY = 'map-user-settings';
|
||||
export const LS_KEY = 'map-user-settings-v3';
|
||||
|
||||
@@ -25,6 +25,7 @@ export enum Commands {
|
||||
detailedKillsUpdated = 'detailed_kills_updated',
|
||||
routes = 'routes',
|
||||
userRoutes = 'user_routes',
|
||||
routesListBy = 'routes_list_by',
|
||||
centerSystem = 'center_system',
|
||||
selectSystem = 'select_system',
|
||||
selectSystems = 'select_systems',
|
||||
@@ -62,6 +63,7 @@ export type Command =
|
||||
| Commands.detailedKillsUpdated
|
||||
| Commands.routes
|
||||
| Commands.userRoutes
|
||||
| Commands.routesListBy
|
||||
| Commands.selectSystem
|
||||
| Commands.selectSystems
|
||||
| Commands.centerSystem
|
||||
@@ -121,6 +123,7 @@ export type CommandSignaturesUpdated = string;
|
||||
export type CommandMapUpdated = Partial<CommandInit>;
|
||||
export type CommandRoutes = RoutesList;
|
||||
export type CommandUserRoutes = RoutesList;
|
||||
export type CommandRoutesListBy = RoutesList;
|
||||
export type CommandKillsUpdated = Kill[];
|
||||
export type CommandDetailedKillsUpdated = Record<string, DetailedKill[]>;
|
||||
export type CommandSelectSystem = string | undefined;
|
||||
@@ -199,6 +202,7 @@ export interface CommandData {
|
||||
[Commands.mapUpdated]: CommandMapUpdated;
|
||||
[Commands.routes]: CommandRoutes;
|
||||
[Commands.userRoutes]: CommandUserRoutes;
|
||||
[Commands.routesListBy]: CommandRoutesListBy;
|
||||
[Commands.killsUpdated]: CommandKillsUpdated;
|
||||
[Commands.detailedKillsUpdated]: CommandDetailedKillsUpdated;
|
||||
[Commands.selectSystem]: CommandSelectSystem;
|
||||
@@ -232,6 +236,7 @@ export enum OutCommand {
|
||||
deleteUserHub = 'delete_user_hub',
|
||||
getRoutes = 'get_routes',
|
||||
getUserRoutes = 'get_user_routes',
|
||||
getRoutesBy = 'get_routes_by',
|
||||
getCharacterJumps = 'get_character_jumps',
|
||||
getStructures = 'get_structures',
|
||||
getSignatures = 'get_signatures',
|
||||
|
||||
@@ -20,6 +20,7 @@ export type MapUnionTypes = {
|
||||
systemSignatures: Record<string, SystemSignature[]>;
|
||||
routes?: RoutesList;
|
||||
userRoutes?: RoutesList;
|
||||
routesListBy?: RoutesList;
|
||||
kills: Record<number, number>;
|
||||
connections: SolarSystemConnection[];
|
||||
userPermissions: Partial<UserPermissions>;
|
||||
|
||||
@@ -13,12 +13,19 @@ export type SystemStaticInfoShort = Pick<
|
||||
|
||||
type MappedSystem = SolarSystemStaticInfoRaw | undefined;
|
||||
|
||||
export type RouteStationSummary = {
|
||||
station_id: number;
|
||||
station_name: string;
|
||||
special?: boolean;
|
||||
};
|
||||
|
||||
export type Route = {
|
||||
destination: number;
|
||||
has_connection: boolean;
|
||||
origin: number;
|
||||
systems?: number[];
|
||||
mapped_systems?: MappedSystem[];
|
||||
stations?: RouteStationSummary[];
|
||||
success?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -67,6 +67,10 @@ wanderer_kills_base_url =
|
||||
config_dir
|
||||
|> get_var_from_path_or_env("WANDERER_KILLS_BASE_URL", "ws://wanderer-kills:4004")
|
||||
|
||||
route_builder_base_url =
|
||||
config_dir
|
||||
|> get_var_from_path_or_env("WANDERER_ROUTE_BUILDER_BASE_URL", "http://localhost:2001")
|
||||
|
||||
map_subscriptions_enabled =
|
||||
config_dir
|
||||
|> get_var_from_path_or_env("WANDERER_MAP_SUBSCRIPTIONS_ENABLED", "false")
|
||||
@@ -174,6 +178,7 @@ config :wanderer_app,
|
||||
character_api_disabled: character_api_disabled,
|
||||
wanderer_kills_service_enabled: wanderer_kills_service_enabled,
|
||||
wanderer_kills_base_url: wanderer_kills_base_url,
|
||||
route_builder_base_url: route_builder_base_url,
|
||||
map_subscriptions_enabled: map_subscriptions_enabled,
|
||||
map_connection_auto_expire_hours: map_connection_auto_expire_hours,
|
||||
map_connection_auto_eol_hours: map_connection_auto_eol_hours,
|
||||
|
||||
@@ -112,6 +112,7 @@ defmodule WandererApp.Application do
|
||||
WandererApp.Scheduler,
|
||||
WandererApp.Server.ServerStatusTracker,
|
||||
WandererApp.Server.TheraDataFetcher,
|
||||
WandererApp.Server.TurnurDataFetcher,
|
||||
{WandererApp.Character.TrackerPoolSupervisor, []},
|
||||
{WandererApp.Map.MapPoolSupervisor, []},
|
||||
WandererApp.Character.TrackerManager,
|
||||
|
||||
@@ -14,6 +14,7 @@ defmodule WandererApp.Env do
|
||||
def base_url(), do: get_key(:web_app_url, "<BASE_URL>")
|
||||
def base_metrics_only(), do: get_key(:base_metrics_only, false)
|
||||
def custom_route_base_url(), do: get_key(:custom_route_base_url, "<CUSTOM_ROUTE_BASE_URL>")
|
||||
def route_builder_base_url(), do: get_key(:route_builder_base_url, "http://localhost:2001")
|
||||
def invites(), do: get_key(:invites, false)
|
||||
|
||||
def map_subscriptions_enabled?(), do: get_key(:map_subscriptions_enabled, false)
|
||||
|
||||
297
lib/wanderer_app/map/routes_by.ex
Normal file
297
lib/wanderer_app/map/routes_by.ex
Normal file
@@ -0,0 +1,297 @@
|
||||
defmodule WandererApp.Map.RoutesBy do
|
||||
@moduledoc """
|
||||
Routes-by helper that uses the local route builder service.
|
||||
"""
|
||||
|
||||
require Logger
|
||||
|
||||
@minimum_route_attrs [
|
||||
:system_class,
|
||||
:class_title,
|
||||
:security,
|
||||
:triglavian_invasion_status,
|
||||
:solar_system_id,
|
||||
:solar_system_name,
|
||||
:region_name,
|
||||
:is_shattered
|
||||
]
|
||||
|
||||
@default_routes_settings %{
|
||||
path_type: "shortest",
|
||||
include_mass_crit: true,
|
||||
include_eol: false,
|
||||
include_frig: true,
|
||||
include_cruise: true,
|
||||
avoid_wormholes: false,
|
||||
avoid_pochven: false,
|
||||
avoid_edencom: false,
|
||||
avoid_triglavian: false,
|
||||
include_thera: true,
|
||||
avoid: []
|
||||
}
|
||||
|
||||
@zarzakh_system 30_100_000
|
||||
@default_avoid_systems [@zarzakh_system]
|
||||
@get_link_pairs_advanced_params [
|
||||
:include_mass_crit,
|
||||
:include_eol,
|
||||
:include_frig
|
||||
]
|
||||
|
||||
def find(map_id, origin, routes_settings, type) do
|
||||
origin = parse_origin(origin)
|
||||
routes_settings = @default_routes_settings |> Map.merge(routes_settings || %{})
|
||||
|
||||
connections = build_connections(map_id, routes_settings)
|
||||
|
||||
avoidance_list = build_avoidance_list(routes_settings)
|
||||
|
||||
security_type =
|
||||
routes_settings
|
||||
|> Map.get(:security_type, "both")
|
||||
|> normalize_security_type()
|
||||
|
||||
payload = %{
|
||||
origin: origin,
|
||||
flag: routes_settings.path_type,
|
||||
connections: connections,
|
||||
avoid: avoidance_list,
|
||||
count: 40,
|
||||
type: type,
|
||||
security_type: security_type,
|
||||
routes_settings: routes_settings
|
||||
}
|
||||
|
||||
stations_by_system = WandererApp.RouteBuilderClient.stations_for(type)
|
||||
|
||||
case WandererApp.RouteBuilderClient.find_closest(payload) do
|
||||
{:ok, body} ->
|
||||
routes = normalize_routes(body, origin)
|
||||
routes = attach_stations(routes, stations_by_system)
|
||||
systems_static_data = fetch_systems_static_data(routes)
|
||||
{:ok, %{routes: routes, systems_static_data: systems_static_data}}
|
||||
|
||||
{:error, reason} ->
|
||||
Logger.error("[RoutesBy] Failed to fetch routes by: #{inspect(reason)}")
|
||||
{:ok, %{routes: [], systems_static_data: []}}
|
||||
end
|
||||
end
|
||||
|
||||
defp parse_origin(origin) when is_integer(origin), do: origin
|
||||
|
||||
defp parse_origin(origin) when is_binary(origin) do
|
||||
case Integer.parse(origin) do
|
||||
{id, _} -> id
|
||||
:error -> 0
|
||||
end
|
||||
end
|
||||
|
||||
defp parse_origin(_), do: 0
|
||||
|
||||
defp normalize_routes(%{"routes" => routes}, origin) when is_list(routes),
|
||||
do: normalize_routes(routes, origin)
|
||||
|
||||
defp normalize_routes(routes, _origin) when is_list(routes) do
|
||||
routes
|
||||
|> Enum.map(&map_route_info/1)
|
||||
|> Enum.filter(fn route_info -> not is_nil(route_info) end)
|
||||
end
|
||||
|
||||
defp normalize_routes(_body, _origin), do: []
|
||||
|
||||
defp attach_stations(routes, stations_by_system) do
|
||||
Enum.map(routes, fn route ->
|
||||
system_key = to_string(route.destination)
|
||||
stations = Map.get(stations_by_system, system_key, [])
|
||||
|
||||
normalized_stations =
|
||||
stations
|
||||
|> Enum.filter(&is_map/1)
|
||||
|> Enum.map(fn station ->
|
||||
%{
|
||||
station_id: Map.get(station, "station_id") || Map.get(station, :station_id),
|
||||
station_name: Map.get(station, "name") || Map.get(station, :name),
|
||||
special: Map.get(station, "special") || Map.get(station, :special) || false
|
||||
}
|
||||
end)
|
||||
|> Enum.filter(fn station ->
|
||||
is_integer(station.station_id) and is_binary(station.station_name)
|
||||
end)
|
||||
|
||||
Map.put(route, :stations, normalized_stations)
|
||||
end)
|
||||
end
|
||||
|
||||
defp map_route_info(%{
|
||||
"origin" => origin,
|
||||
"destination" => destination,
|
||||
"systems" => result_systems,
|
||||
"success" => success
|
||||
}) do
|
||||
map_route_info(%{
|
||||
origin: origin,
|
||||
destination: destination,
|
||||
systems: result_systems,
|
||||
success: success
|
||||
})
|
||||
end
|
||||
|
||||
defp map_route_info(
|
||||
%{origin: origin, destination: destination, systems: result_systems, success: success} =
|
||||
_route_info
|
||||
) do
|
||||
systems =
|
||||
case result_systems do
|
||||
[] -> []
|
||||
_ -> result_systems |> Enum.reject(fn system_id -> system_id == origin end)
|
||||
end
|
||||
|
||||
%{
|
||||
has_connection: result_systems != [],
|
||||
systems: systems,
|
||||
origin: origin,
|
||||
destination: destination,
|
||||
success: success
|
||||
}
|
||||
end
|
||||
|
||||
defp map_route_info(_), do: nil
|
||||
|
||||
defp fetch_systems_static_data(routes) do
|
||||
routes
|
||||
|> Enum.map(fn route_info -> route_info.systems end)
|
||||
|> List.flatten()
|
||||
|> Enum.uniq()
|
||||
|> Task.async_stream(
|
||||
fn system_id ->
|
||||
case WandererApp.CachedInfo.get_system_static_info(system_id) do
|
||||
{:ok, nil} -> nil
|
||||
{:ok, system} -> system |> Map.take(@minimum_route_attrs)
|
||||
end
|
||||
end,
|
||||
max_concurrency: System.schedulers_online() * 4
|
||||
)
|
||||
|> Enum.map(fn {:ok, val} -> val end)
|
||||
end
|
||||
|
||||
defp build_avoidance_list(routes_settings) do
|
||||
{:ok, trig_systems} = WandererApp.CachedInfo.get_trig_systems()
|
||||
|
||||
pochven_solar_systems =
|
||||
trig_systems
|
||||
|> Enum.filter(fn s -> s.triglavian_invasion_status == "Final" end)
|
||||
|> Enum.map(& &1.solar_system_id)
|
||||
|
||||
triglavian_solar_systems =
|
||||
trig_systems
|
||||
|> Enum.filter(fn s -> s.triglavian_invasion_status == "Triglavian" end)
|
||||
|> Enum.map(& &1.solar_system_id)
|
||||
|
||||
edencom_solar_systems =
|
||||
trig_systems
|
||||
|> Enum.filter(fn s -> s.triglavian_invasion_status == "Edencom" end)
|
||||
|> Enum.map(& &1.solar_system_id)
|
||||
|
||||
avoidance_list =
|
||||
case routes_settings.avoid_edencom do
|
||||
true -> edencom_solar_systems
|
||||
false -> []
|
||||
end
|
||||
|
||||
avoidance_list =
|
||||
case routes_settings.avoid_triglavian do
|
||||
true -> [avoidance_list | triglavian_solar_systems]
|
||||
false -> avoidance_list
|
||||
end
|
||||
|
||||
avoidance_list =
|
||||
case routes_settings.avoid_pochven do
|
||||
true -> [avoidance_list | pochven_solar_systems]
|
||||
false -> avoidance_list
|
||||
end
|
||||
|
||||
(@default_avoid_systems ++ [routes_settings.avoid | avoidance_list])
|
||||
|> List.flatten()
|
||||
|> Enum.uniq()
|
||||
end
|
||||
|
||||
defp normalize_security_type("high"), do: "high"
|
||||
defp normalize_security_type(:high), do: "high"
|
||||
defp normalize_security_type("low"), do: "low"
|
||||
defp normalize_security_type(:low), do: "low"
|
||||
defp normalize_security_type(_), do: "both"
|
||||
|
||||
defp build_connections(map_id, routes_settings) do
|
||||
if routes_settings.avoid_wormholes do
|
||||
[]
|
||||
else
|
||||
map_chains =
|
||||
routes_settings
|
||||
|> Map.take(@get_link_pairs_advanced_params)
|
||||
|> Map.put_new(:map_id, map_id)
|
||||
|> WandererApp.Api.MapConnection.get_link_pairs_advanced!()
|
||||
|> Enum.map(fn %{
|
||||
solar_system_source: solar_system_source,
|
||||
solar_system_target: solar_system_target
|
||||
} ->
|
||||
%{
|
||||
first: solar_system_source,
|
||||
second: solar_system_target
|
||||
}
|
||||
end)
|
||||
|> Enum.uniq()
|
||||
|
||||
{:ok, thera_chains} =
|
||||
case routes_settings.include_thera do
|
||||
true ->
|
||||
WandererApp.Server.TheraDataFetcher.get_chain_pairs(routes_settings)
|
||||
|
||||
false ->
|
||||
{:ok, []}
|
||||
end
|
||||
|
||||
chains = remove_intersection([map_chains | thera_chains] |> List.flatten())
|
||||
|
||||
chains =
|
||||
case routes_settings.include_cruise do
|
||||
false ->
|
||||
{:ok, wh_class_a_systems} = WandererApp.CachedInfo.get_wh_class_a_systems()
|
||||
|
||||
chains
|
||||
|> Enum.filter(fn x ->
|
||||
not Enum.member?(wh_class_a_systems, x.first) and
|
||||
not Enum.member?(wh_class_a_systems, x.second)
|
||||
end)
|
||||
|
||||
_ ->
|
||||
chains
|
||||
end
|
||||
|
||||
chains
|
||||
|> Enum.map(fn chain ->
|
||||
["#{chain.first}|#{chain.second}", "#{chain.second}|#{chain.first}"]
|
||||
end)
|
||||
|> List.flatten()
|
||||
end
|
||||
end
|
||||
|
||||
defp remove_intersection(pairs_arr) do
|
||||
tuples = pairs_arr |> Enum.map(fn x -> {x.first, x.second} end)
|
||||
|
||||
tuples
|
||||
|> Enum.reduce([], fn {first, second} = x, acc ->
|
||||
if Enum.member?(tuples, {second, first}) do
|
||||
acc
|
||||
else
|
||||
[x | acc]
|
||||
end
|
||||
end)
|
||||
|> Enum.uniq()
|
||||
|> Enum.map(fn {first, second} ->
|
||||
%{
|
||||
first: first,
|
||||
second: second
|
||||
}
|
||||
end)
|
||||
end
|
||||
end
|
||||
265
lib/wanderer_app/route_builder_client.ex
Normal file
265
lib/wanderer_app/route_builder_client.ex
Normal file
@@ -0,0 +1,265 @@
|
||||
defmodule WandererApp.RouteBuilderClient do
|
||||
@moduledoc """
|
||||
HTTP client for the local route builder service.
|
||||
"""
|
||||
|
||||
require Logger
|
||||
|
||||
@timeout_opts [pool_timeout: 5_000, receive_timeout: :timer.seconds(30)]
|
||||
@loot_dir Path.join(["repo", "data", "route_by_systems"])
|
||||
|
||||
def find_closest(
|
||||
%{
|
||||
origin: origin,
|
||||
flag: flag,
|
||||
connections: connections,
|
||||
avoid: avoid,
|
||||
count: count,
|
||||
type: type,
|
||||
security_type: security_type
|
||||
} = payload
|
||||
) do
|
||||
url = "#{WandererApp.Env.route_builder_base_url()}/route/findClosest"
|
||||
|
||||
routes_settings = Map.get(payload, :routes_settings, %{})
|
||||
destinations = destinations_for(type, security_type, routes_settings)
|
||||
|
||||
payload = %{
|
||||
origin: origin,
|
||||
flag: flag,
|
||||
connections: connections || [],
|
||||
avoid: avoid || [],
|
||||
destinations: destinations,
|
||||
count: count || 1
|
||||
}
|
||||
|
||||
case Req.post(url, Keyword.merge([json: payload], @timeout_opts)) do
|
||||
{:ok, %{status: status, body: body}} when status in [200, 201] ->
|
||||
{:ok, body}
|
||||
|
||||
{:ok, %{status: status, body: body}} ->
|
||||
Logger.warning("[RouteBuilderClient] Unexpected status: #{status}")
|
||||
{:error, {:unexpected_status, status, body}}
|
||||
|
||||
{:error, reason} ->
|
||||
Logger.error("[RouteBuilderClient] Request failed: #{inspect(reason)}")
|
||||
{:error, reason}
|
||||
end
|
||||
end
|
||||
|
||||
defp destinations_for(type, security_type, routes_settings) do
|
||||
case normalize_type(type) do
|
||||
:thera ->
|
||||
thera_destinations(routes_settings, security_type)
|
||||
|
||||
:turnur ->
|
||||
turnur_destinations(routes_settings, security_type)
|
||||
|
||||
_ ->
|
||||
case load_loot_data(type) do
|
||||
{:ok, %{"system_ids_by_band" => by_band}} ->
|
||||
high = Map.get(by_band, "high", [])
|
||||
low = Map.get(by_band, "low", [])
|
||||
pick_by_band(high, low, security_type)
|
||||
|
||||
{:ok, %{"system_ids" => system_ids}} when is_list(system_ids) ->
|
||||
filter_by_security(system_ids, security_type)
|
||||
|
||||
{:error, reason} ->
|
||||
Logger.error("[RouteBuilderClient] Failed to load loot data: #{inspect(reason)}")
|
||||
[]
|
||||
|
||||
_ ->
|
||||
[]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
defp thera_destinations(routes_settings, security_type) do
|
||||
{:ok, thera_chains} = WandererApp.Server.TheraDataFetcher.get_chain_pairs(routes_settings)
|
||||
|
||||
system_ids =
|
||||
thera_chains
|
||||
|> Enum.map(fn %{first: first, second: second} ->
|
||||
pick_thera_destination(first, second)
|
||||
end)
|
||||
|> Enum.reject(&is_nil/1)
|
||||
|> Enum.uniq()
|
||||
|
||||
filter_by_security(system_ids, security_type)
|
||||
end
|
||||
|
||||
defp turnur_destinations(routes_settings, security_type) do
|
||||
{:ok, turnur_chains} = WandererApp.Server.TurnurDataFetcher.get_chain_pairs(routes_settings)
|
||||
|
||||
system_ids =
|
||||
turnur_chains
|
||||
|> Enum.map(fn %{first: first, second: second} ->
|
||||
pick_turnur_destination(first, second)
|
||||
end)
|
||||
|> Enum.reject(&is_nil/1)
|
||||
|> Enum.uniq()
|
||||
|
||||
filter_by_security(system_ids, security_type)
|
||||
end
|
||||
|
||||
defp filter_by_security(system_ids, security_type) do
|
||||
case normalize_security_type(security_type) do
|
||||
"high" ->
|
||||
Enum.filter(system_ids, fn system_id ->
|
||||
case system_security(system_id) do
|
||||
{:ok, security} -> security >= 0.5
|
||||
_ -> false
|
||||
end
|
||||
end)
|
||||
|
||||
"low" ->
|
||||
Enum.filter(system_ids, fn system_id ->
|
||||
case system_security(system_id) do
|
||||
{:ok, security} -> security > 0.0 and security < 0.5
|
||||
_ -> false
|
||||
end
|
||||
end)
|
||||
|
||||
_ ->
|
||||
system_ids
|
||||
end
|
||||
end
|
||||
|
||||
defp system_security(system_id) do
|
||||
case WandererApp.CachedInfo.get_system_static_info(system_id) do
|
||||
{:ok, %{security: security}} -> parse_security(security)
|
||||
_ -> {:error, :missing_security}
|
||||
end
|
||||
end
|
||||
|
||||
defp pick_thera_destination(first, second) do
|
||||
first_is_thera = is_thera_system?(first)
|
||||
second_is_thera = is_thera_system?(second)
|
||||
|
||||
cond do
|
||||
first_is_thera and not second_is_thera -> second
|
||||
second_is_thera and not first_is_thera -> first
|
||||
true -> second
|
||||
end
|
||||
end
|
||||
|
||||
defp is_thera_system?(system_id) do
|
||||
case WandererApp.CachedInfo.get_system_static_info(system_id) do
|
||||
{:ok, %{system_class: 12}} -> true
|
||||
_ -> false
|
||||
end
|
||||
end
|
||||
|
||||
defp pick_turnur_destination(first, second) do
|
||||
first_is_turnur = is_turnur_system?(first)
|
||||
second_is_turnur = is_turnur_system?(second)
|
||||
|
||||
cond do
|
||||
first_is_turnur and not second_is_turnur -> second
|
||||
second_is_turnur and not first_is_turnur -> first
|
||||
true -> second
|
||||
end
|
||||
end
|
||||
|
||||
defp is_turnur_system?(system_id) do
|
||||
case WandererApp.CachedInfo.get_system_static_info(system_id) do
|
||||
{:ok, %{solar_system_name: name}} when is_binary(name) ->
|
||||
String.downcase(name) == "turnur"
|
||||
|
||||
_ ->
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
defp parse_security(security) when is_float(security), do: {:ok, security}
|
||||
defp parse_security(security) when is_integer(security), do: {:ok, security * 1.0}
|
||||
|
||||
defp parse_security(security) when is_binary(security) do
|
||||
case Float.parse(security) do
|
||||
{value, _} -> {:ok, value}
|
||||
_ -> {:error, :invalid_security}
|
||||
end
|
||||
end
|
||||
|
||||
defp parse_security(_), do: {:error, :invalid_security}
|
||||
|
||||
defp normalize_security_type("high"), do: "high"
|
||||
defp normalize_security_type(:high), do: "high"
|
||||
defp normalize_security_type("hight"), do: "high"
|
||||
defp normalize_security_type(:hight), do: "high"
|
||||
defp normalize_security_type("low"), do: "low"
|
||||
defp normalize_security_type(:low), do: "low"
|
||||
defp normalize_security_type(_), do: "both"
|
||||
|
||||
def stations_for(type) do
|
||||
case normalize_type(type) do
|
||||
:thera ->
|
||||
%{}
|
||||
|
||||
:turnur ->
|
||||
%{}
|
||||
|
||||
_ ->
|
||||
case load_loot_data(type) do
|
||||
{:ok, %{"system_stations" => system_stations}} when is_map(system_stations) ->
|
||||
system_stations
|
||||
|
||||
{:ok, _} ->
|
||||
%{}
|
||||
|
||||
{:error, reason} ->
|
||||
Logger.error("[RouteBuilderClient] Failed to load loot stations: #{inspect(reason)}")
|
||||
%{}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
defp pick_by_band(high, _low, "high"), do: high
|
||||
defp pick_by_band(high, _low, :high), do: high
|
||||
defp pick_by_band(high, _low, "hight"), do: high
|
||||
defp pick_by_band(high, _low, :hight), do: high
|
||||
defp pick_by_band(_high, low, "low"), do: low
|
||||
defp pick_by_band(_high, low, :low), do: low
|
||||
defp pick_by_band(high, low, _), do: high ++ low
|
||||
|
||||
defp load_loot_data("blueLoot"), do: load_loot_file("blueloot.json")
|
||||
defp load_loot_data(:blueLoot), do: load_loot_file("blueloot.json")
|
||||
defp load_loot_data("redLoot"), do: load_loot_file("redloot.json")
|
||||
defp load_loot_data(:redLoot), do: load_loot_file("redloot.json")
|
||||
defp load_loot_data("so_cleaning"), do: load_loot_file("ss_cleaning.json")
|
||||
defp load_loot_data(:so_cleaning), do: load_loot_file("ss_cleaning.json")
|
||||
defp load_loot_data("trade_hubs"), do: load_loot_file("trade_hubs.json")
|
||||
defp load_loot_data(:trade_hubs), do: load_loot_file("trade_hubs.json")
|
||||
defp load_loot_data(_), do: load_loot_file("blueloot.json")
|
||||
|
||||
defp normalize_type("thera"), do: :thera
|
||||
defp normalize_type(:thera), do: :thera
|
||||
defp normalize_type("turnur"), do: :turnur
|
||||
defp normalize_type(:turnur), do: :turnur
|
||||
defp normalize_type("so_cleaning"), do: :so_cleaning
|
||||
defp normalize_type(:so_cleaning), do: :so_cleaning
|
||||
defp normalize_type("trade_hubs"), do: :trade_hubs
|
||||
defp normalize_type(:trade_hubs), do: :trade_hubs
|
||||
defp normalize_type(type), do: type
|
||||
|
||||
defp load_loot_file(filename) do
|
||||
key = {__MODULE__, :loot_data, filename}
|
||||
|
||||
case :persistent_term.get(key, :missing) do
|
||||
:missing ->
|
||||
path = Path.join([:code.priv_dir(:wanderer_app), @loot_dir, filename])
|
||||
|
||||
with {:ok, body} <- File.read(path),
|
||||
{:ok, json} <- Jason.decode(body) do
|
||||
:persistent_term.put(key, json)
|
||||
{:ok, json}
|
||||
else
|
||||
error -> error
|
||||
end
|
||||
|
||||
cached ->
|
||||
{:ok, cached}
|
||||
end
|
||||
end
|
||||
end
|
||||
27
lib/wanderer_app_web/controllers/route_builder_controller.ex
Normal file
27
lib/wanderer_app_web/controllers/route_builder_controller.ex
Normal file
@@ -0,0 +1,27 @@
|
||||
defmodule WandererAppWeb.RouteBuilderController do
|
||||
use WandererAppWeb, :controller
|
||||
|
||||
require Logger
|
||||
|
||||
def find_closest(conn, params) do
|
||||
payload = %{
|
||||
origin: Map.get(params, "origin") || Map.get(params, :origin),
|
||||
flag: Map.get(params, "flag") || Map.get(params, :flag) || "shortest",
|
||||
connections: Map.get(params, "connections") || Map.get(params, :connections) || [],
|
||||
avoid: Map.get(params, "avoid") || Map.get(params, :avoid) || [],
|
||||
count: Map.get(params, "count") || Map.get(params, :count) || 1,
|
||||
type: Map.get(params, "type") || Map.get(params, :type) || "blueLoot"
|
||||
}
|
||||
|
||||
case WandererApp.RouteBuilderClient.find_closest(payload) do
|
||||
{:ok, body} ->
|
||||
json(conn, body)
|
||||
|
||||
{:error, reason} ->
|
||||
Logger.warning("[RouteBuilderController] find_closest failed: #{inspect(reason)}")
|
||||
conn
|
||||
|> put_status(:bad_gateway)
|
||||
|> json(%{error: "route_builder_failed"})
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -43,6 +43,25 @@ defmodule WandererAppWeb.MapRoutesEventHandler do
|
||||
}
|
||||
)
|
||||
|
||||
def handle_server_event(
|
||||
%{
|
||||
event: :routes_list_by,
|
||||
payload: {solar_system_id, %{routes: routes, systems_static_data: systems_static_data}}
|
||||
},
|
||||
socket
|
||||
),
|
||||
do:
|
||||
socket
|
||||
|> MapEventHandler.push_map_event(
|
||||
"routes_list_by",
|
||||
%{
|
||||
solar_system_id: solar_system_id,
|
||||
loading: false,
|
||||
routes: routes,
|
||||
systems_static_data: systems_static_data
|
||||
}
|
||||
)
|
||||
|
||||
def handle_server_event(event, socket),
|
||||
do: MapCoreEventHandler.handle_server_event(event, socket)
|
||||
|
||||
@@ -142,6 +161,33 @@ defmodule WandererAppWeb.MapRoutesEventHandler do
|
||||
end
|
||||
end
|
||||
|
||||
def handle_ui_event(
|
||||
"get_routes_by",
|
||||
%{"system_id" => solar_system_id, "routes_settings" => routes_settings} = event,
|
||||
%{assigns: %{map_id: map_id, map_loaded?: true}} = socket
|
||||
) do
|
||||
routes_type = Map.get(event, "type", "blueLoot")
|
||||
security_type = Map.get(event, "securityType", "both")
|
||||
routes_settings =
|
||||
routes_settings
|
||||
|> get_routes_settings()
|
||||
|> Map.put(:security_type, security_type)
|
||||
|
||||
Task.async(fn ->
|
||||
{:ok, routes} =
|
||||
WandererApp.Map.RoutesBy.find(
|
||||
map_id,
|
||||
solar_system_id,
|
||||
routes_settings,
|
||||
routes_type
|
||||
)
|
||||
|
||||
{:routes_list_by, {solar_system_id, routes}}
|
||||
end)
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
def handle_ui_event(
|
||||
"add_hub",
|
||||
%{"system_id" => solar_system_id} = _event,
|
||||
|
||||
@@ -101,11 +101,13 @@ defmodule WandererAppWeb.MapEventHandler do
|
||||
|
||||
@map_routes_events [
|
||||
:routes,
|
||||
:user_routes
|
||||
:user_routes,
|
||||
:routes_list_by
|
||||
]
|
||||
|
||||
@map_routes_ui_events [
|
||||
"get_routes",
|
||||
"get_routes_by",
|
||||
"get_user_routes",
|
||||
"set_autopilot_waypoint",
|
||||
"add_hub",
|
||||
|
||||
@@ -341,6 +341,11 @@ defmodule WandererAppWeb.Router do
|
||||
get "/system-static-info", CommonAPIController, :show_system_static
|
||||
end
|
||||
|
||||
scope "/route", WandererAppWeb do
|
||||
pipe_through [:api]
|
||||
post "/findClosest", RouteBuilderController, :find_closest
|
||||
end
|
||||
|
||||
scope "/api" do
|
||||
pipe_through [:api_spec]
|
||||
get "/openapi", OpenApiSpex.Plug.RenderSpec, :show
|
||||
|
||||
947
priv/repo/data/route_by_systems/blueloot.json
Normal file
947
priv/repo/data/route_by_systems/blueloot.json
Normal file
@@ -0,0 +1,947 @@
|
||||
{
|
||||
"type_id": 30747,
|
||||
"generated_at": "2026-01-30T13:53:23.834Z",
|
||||
"bands": [
|
||||
"high",
|
||||
"low"
|
||||
],
|
||||
"system_ids_by_band": {
|
||||
"high": [
|
||||
30000055,
|
||||
30000053,
|
||||
30000159,
|
||||
30000160,
|
||||
30000187,
|
||||
30000133,
|
||||
30000181,
|
||||
30001359,
|
||||
30001391,
|
||||
30001395,
|
||||
30001397,
|
||||
30001676,
|
||||
30001679,
|
||||
30001677,
|
||||
30002558,
|
||||
30002569,
|
||||
30002571,
|
||||
30002568,
|
||||
30002572,
|
||||
30002771,
|
||||
30002800,
|
||||
30002815,
|
||||
30002816,
|
||||
30002988,
|
||||
30002992,
|
||||
30002993,
|
||||
30003017,
|
||||
30003018,
|
||||
30003024,
|
||||
30003025,
|
||||
30003029,
|
||||
30003030,
|
||||
30003048,
|
||||
30003053,
|
||||
30003055,
|
||||
30003389,
|
||||
30003394,
|
||||
30003402,
|
||||
30003409,
|
||||
30003412,
|
||||
30003447,
|
||||
30003449,
|
||||
30003469,
|
||||
30003404,
|
||||
30003413,
|
||||
30002191,
|
||||
30002193,
|
||||
30002252,
|
||||
30003553,
|
||||
30003554,
|
||||
30003555,
|
||||
30002190,
|
||||
30002187,
|
||||
30004077,
|
||||
30004078,
|
||||
30004079,
|
||||
30004083,
|
||||
30004084,
|
||||
30004111,
|
||||
30004112,
|
||||
30004114,
|
||||
30005009,
|
||||
30005011,
|
||||
30005017,
|
||||
30005018,
|
||||
30005039,
|
||||
30005040,
|
||||
30005043,
|
||||
30005052,
|
||||
30005054,
|
||||
30005204,
|
||||
30005199
|
||||
],
|
||||
"low": [
|
||||
30000017,
|
||||
30000040,
|
||||
30000041,
|
||||
30000072,
|
||||
30000074,
|
||||
30000162,
|
||||
30000163,
|
||||
30000164,
|
||||
30000196,
|
||||
30000197,
|
||||
30001390,
|
||||
30001361,
|
||||
30002414,
|
||||
30002415,
|
||||
30002418,
|
||||
30002559,
|
||||
30002560,
|
||||
30002769,
|
||||
30002975,
|
||||
30002977,
|
||||
30002980,
|
||||
30002059,
|
||||
30002065,
|
||||
30003467,
|
||||
30002058,
|
||||
30002067,
|
||||
30003556,
|
||||
30004239,
|
||||
30004240,
|
||||
30004241,
|
||||
30004288,
|
||||
30004291,
|
||||
30004296,
|
||||
30005010,
|
||||
30005020,
|
||||
30005030,
|
||||
30005031,
|
||||
30005034,
|
||||
30005035,
|
||||
30005275,
|
||||
30005276
|
||||
]
|
||||
},
|
||||
"system_stations": {
|
||||
"30000017": [
|
||||
{
|
||||
"station_id": 60014071,
|
||||
"name": "Futzchag IX - Moon 9 - Thukker Mix Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60014074,
|
||||
"name": "Futzchag II - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000040": [
|
||||
{
|
||||
"station_id": 60014095,
|
||||
"name": "Uzistoon VII - Moon 2 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000041": [
|
||||
{
|
||||
"station_id": 60014098,
|
||||
"name": "Bairshir IV - Moon 11 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000053": [
|
||||
{
|
||||
"station_id": 60014137,
|
||||
"name": "Ibaria III - Thukker Mix Warehouse"
|
||||
}
|
||||
],
|
||||
"30000055": [
|
||||
{
|
||||
"station_id": 60014140,
|
||||
"name": "Zemalu IX - Moon 2 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000072": [
|
||||
{
|
||||
"station_id": 60014068,
|
||||
"name": "Nakah I - Moon 1 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000074": [
|
||||
{
|
||||
"station_id": 60014065,
|
||||
"name": "Hasateem VI - Moon 12 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30000133": [
|
||||
{
|
||||
"station_id": 60001810,
|
||||
"name": "Hirtamon VII - Moon 6 - Zainou Biotech Production"
|
||||
},
|
||||
{
|
||||
"station_id": 60001807,
|
||||
"name": "Hirtamon VII - Moon 5 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30000159": [
|
||||
{
|
||||
"station_id": 60010195,
|
||||
"name": "Ikami X - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30000160": [
|
||||
{
|
||||
"station_id": 60010192,
|
||||
"name": "Reisen VI - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30000162": [
|
||||
{
|
||||
"station_id": 60001801,
|
||||
"name": "Maila IV - Zainou Biotech Production"
|
||||
},
|
||||
{
|
||||
"station_id": 60001804,
|
||||
"name": "Maila VI - Moon 1 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30000163": [
|
||||
{
|
||||
"station_id": 60010198,
|
||||
"name": "Akora IX - Moon 19 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30000164": [
|
||||
{
|
||||
"station_id": 60010201,
|
||||
"name": "Messoya VIII - Moon 6 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30000181": [
|
||||
{
|
||||
"station_id": 60001783,
|
||||
"name": "Korsiki III - Moon 15 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30000187": [
|
||||
{
|
||||
"station_id": 60001786,
|
||||
"name": "Wuos VI - Zainou Biotech Research Center"
|
||||
}
|
||||
],
|
||||
"30000196": [
|
||||
{
|
||||
"station_id": 60001798,
|
||||
"name": "Otosela V - Moon 13 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30000197": [
|
||||
{
|
||||
"station_id": 60001795,
|
||||
"name": "Uemon VIII - Moon 10 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30001359": [
|
||||
{
|
||||
"station_id": 60001780,
|
||||
"name": "Semiki IV - Zainou Biohazard Containment Facility"
|
||||
}
|
||||
],
|
||||
"30001361": [
|
||||
{
|
||||
"station_id": 60001777,
|
||||
"name": "Aurohunen III - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30001390": [
|
||||
{
|
||||
"station_id": 60001816,
|
||||
"name": "Pakkonen IV - Moon 11 - Zainou Biotech Research Center"
|
||||
}
|
||||
],
|
||||
"30001391": [
|
||||
{
|
||||
"station_id": 60001813,
|
||||
"name": "Piekura VIII - Moon 15 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30001395": [
|
||||
{
|
||||
"station_id": 60001768,
|
||||
"name": "Ylandoki II - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30001397": [
|
||||
{
|
||||
"station_id": 60001765,
|
||||
"name": "Isseras IV - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30001676": [
|
||||
{
|
||||
"station_id": 60008527,
|
||||
"name": "Mimen X - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008521,
|
||||
"name": "Mimen VIII - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30001677": [
|
||||
{
|
||||
"station_id": 60008518,
|
||||
"name": "Thashkarai VII - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30001679": [
|
||||
{
|
||||
"station_id": 60008524,
|
||||
"name": "Unkah VI - Moon 7 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002058": [
|
||||
{
|
||||
"station_id": 60014134,
|
||||
"name": "Ardar IV - Moon 2 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30002059": [
|
||||
{
|
||||
"station_id": 60014131,
|
||||
"name": "Auner VIII - Moon 10 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30002065": [
|
||||
{
|
||||
"station_id": 60014143,
|
||||
"name": "Lasleinur IV - Moon 16 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30002067": [
|
||||
{
|
||||
"station_id": 60014146,
|
||||
"name": "Brin V - Moon 7 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30002187": [
|
||||
{
|
||||
"station_id": 60008494,
|
||||
"name": "Amarr VIII (Oris) - Emperor Family Academy"
|
||||
}
|
||||
],
|
||||
"30002190": [
|
||||
{
|
||||
"station_id": 60008500,
|
||||
"name": "Mabnen IV - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002191": [
|
||||
{
|
||||
"station_id": 60008503,
|
||||
"name": "Toshabia VI - Moon 6 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002193": [
|
||||
{
|
||||
"station_id": 60008497,
|
||||
"name": "Kehour VIII - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002252": [
|
||||
{
|
||||
"station_id": 60010240,
|
||||
"name": "Bika III - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010243,
|
||||
"name": "Bika VIII - Moon 11 - CreoDron Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60010246,
|
||||
"name": "Bika V - Moon 1 - CreoDron Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60010249,
|
||||
"name": "Bika VII - Moon 1 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002414": [
|
||||
{
|
||||
"station_id": 60010183,
|
||||
"name": "Klingt IX - Moon 11 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002415": [
|
||||
{
|
||||
"station_id": 60010180,
|
||||
"name": "Weld IV - Moon 4 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002418": [
|
||||
{
|
||||
"station_id": 60010186,
|
||||
"name": "Hegfunden VIII - Moon 14 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010189,
|
||||
"name": "Hegfunden VIII - Moon 26 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002558": [
|
||||
{
|
||||
"station_id": 60010168,
|
||||
"name": "Endrulf VIII - Moon 1 - CreoDron Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60010171,
|
||||
"name": "Endrulf IV - Moon 1 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30002559": [
|
||||
{
|
||||
"station_id": 60010174,
|
||||
"name": "Ingunn V - Moon 21 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002560": [
|
||||
{
|
||||
"station_id": 60010177,
|
||||
"name": "Gultratren V - Moon 22 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002568": [
|
||||
{
|
||||
"station_id": 60010297,
|
||||
"name": "Onga X - Moon 11 - CreoDron Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60010291,
|
||||
"name": "Onga VI - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002569": [
|
||||
{
|
||||
"station_id": 60010294,
|
||||
"name": "Osaumuni VII - Moon 16 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30002571": [
|
||||
{
|
||||
"station_id": 60010288,
|
||||
"name": "Oremmulf IX - Moon 6 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60014110,
|
||||
"name": "Oremmulf V - Moon 20 - Thukker Mix Warehouse"
|
||||
}
|
||||
],
|
||||
"30002572": [
|
||||
{
|
||||
"station_id": 60014107,
|
||||
"name": "Hurjafren VII - Moon 25 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30002769": [
|
||||
{
|
||||
"station_id": 60001819,
|
||||
"name": "Enderailen IV - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30002771": [
|
||||
{
|
||||
"station_id": 60001822,
|
||||
"name": "Kulelen V - Moon 8 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30002800": [
|
||||
{
|
||||
"station_id": 60001792,
|
||||
"name": "Haatomo VI - Moon 6 - Zainou Biotech Production"
|
||||
},
|
||||
{
|
||||
"station_id": 60001789,
|
||||
"name": "Haatomo VII - Moon 7 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30002815": [
|
||||
{
|
||||
"station_id": 60001774,
|
||||
"name": "Isenairos V - Moon 7 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30002816": [
|
||||
{
|
||||
"station_id": 60001771,
|
||||
"name": "Saila VIII - Moon 16 - Zainou Biotech Production"
|
||||
}
|
||||
],
|
||||
"30002975": [
|
||||
{
|
||||
"station_id": 60008551,
|
||||
"name": "Roushzar II - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002977": [
|
||||
{
|
||||
"station_id": 60008542,
|
||||
"name": "Arayar VII - Moon 16 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002980": [
|
||||
{
|
||||
"station_id": 60008545,
|
||||
"name": "Sosan II - Emperor Family Academy"
|
||||
},
|
||||
{
|
||||
"station_id": 60008548,
|
||||
"name": "Sosan III - Moon 4 - Emperor Family Academy"
|
||||
}
|
||||
],
|
||||
"30002988": [
|
||||
{
|
||||
"station_id": 60008536,
|
||||
"name": "Nakatre II - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30002992": [
|
||||
{
|
||||
"station_id": 60008530,
|
||||
"name": "Akes V - Moon 2 - Emperor Family Academy"
|
||||
}
|
||||
],
|
||||
"30002993": [
|
||||
{
|
||||
"station_id": 60008533,
|
||||
"name": "Riavayed IX - Moon 2 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008539,
|
||||
"name": "Riavayed II - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30003017": [
|
||||
{
|
||||
"station_id": 60010258,
|
||||
"name": "Harerget VIII - Moon 1 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010252,
|
||||
"name": "Harerget V - Moon 1 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003018": [
|
||||
{
|
||||
"station_id": 60010261,
|
||||
"name": "Azer III - Moon 6 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010255,
|
||||
"name": "Azer VI - Moon 1 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30003024": [
|
||||
{
|
||||
"station_id": 60010219,
|
||||
"name": "Marosier IV - Moon 2 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003025": [
|
||||
{
|
||||
"station_id": 60010216,
|
||||
"name": "Lirsautton I - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003029": [
|
||||
{
|
||||
"station_id": 60010222,
|
||||
"name": "Jaschercis IV - Moon 2 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003030": [
|
||||
{
|
||||
"station_id": 60010225,
|
||||
"name": "Ardallabier III - Moon 14 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003048": [
|
||||
{
|
||||
"station_id": 60010120,
|
||||
"name": "Carirgnottin VIII - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003053": [
|
||||
{
|
||||
"station_id": 60010126,
|
||||
"name": "Avele V - Moon 11 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30003055": [
|
||||
{
|
||||
"station_id": 60010129,
|
||||
"name": "Aydoteaux II - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010123,
|
||||
"name": "Aydoteaux VIII - Moon 12 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30003389": [
|
||||
{
|
||||
"station_id": 60014077,
|
||||
"name": "Altrinur XI - Moon 3 - Thukker Mix Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60014080,
|
||||
"name": "Altrinur XII - Moon 2 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003394": [
|
||||
{
|
||||
"station_id": 60014125,
|
||||
"name": "Freatlidur V - Moon 4 - Thukker Mix Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60014128,
|
||||
"name": "Freatlidur VII - Moon 3 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003402": [
|
||||
{
|
||||
"station_id": 60014083,
|
||||
"name": "Totkubad III - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003404": [
|
||||
{
|
||||
"station_id": 60014086,
|
||||
"name": "Agtver VI - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003409": [
|
||||
{
|
||||
"station_id": 60014101,
|
||||
"name": "Leurtmar III - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003412": [
|
||||
{
|
||||
"station_id": 60005719,
|
||||
"name": "Elgoi VI - Moon 1 - Eifyr and Co. Biotech Production"
|
||||
},
|
||||
{
|
||||
"station_id": 60014104,
|
||||
"name": "Elgoi VIII - Moon 19 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003413": [
|
||||
{
|
||||
"station_id": 60005722,
|
||||
"name": "Eram V - Moon 2 - Eifyr and Co. Biotech Production"
|
||||
}
|
||||
],
|
||||
"30003447": [
|
||||
{
|
||||
"station_id": 60010144,
|
||||
"name": "Josekorn IV - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010150,
|
||||
"name": "Josekorn VIII - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010153,
|
||||
"name": "Josekorn X - Moon 1 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003449": [
|
||||
{
|
||||
"station_id": 60010147,
|
||||
"name": "Hakeri XI - Moon 5 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003467": [
|
||||
{
|
||||
"station_id": 60014116,
|
||||
"name": "Frulegur IX - Moon 5 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003469": [
|
||||
{
|
||||
"station_id": 60014113,
|
||||
"name": "Hodrold VII - Moon 8 - Thukker Mix Factory"
|
||||
}
|
||||
],
|
||||
"30003553": [
|
||||
{
|
||||
"station_id": 60010141,
|
||||
"name": "Warouh VII - Moon 1 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003554": [
|
||||
{
|
||||
"station_id": 60010132,
|
||||
"name": "Jambu VI - Moon 3 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003555": [
|
||||
{
|
||||
"station_id": 60010138,
|
||||
"name": "Bittanshal VII - Moon 9 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30003556": [
|
||||
{
|
||||
"station_id": 60010135,
|
||||
"name": "Arton II - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004077": [
|
||||
{
|
||||
"station_id": 60008509,
|
||||
"name": "Hiroudeh VIII - Moon 3 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004078": [
|
||||
{
|
||||
"station_id": 60008515,
|
||||
"name": "Dresi I - Moon 18 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004079": [
|
||||
{
|
||||
"station_id": 60008506,
|
||||
"name": "Aphend VII - Moon 4 - Emperor Family Academy"
|
||||
}
|
||||
],
|
||||
"30004083": [
|
||||
{
|
||||
"station_id": 60008512,
|
||||
"name": "Gensela X - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004084": [
|
||||
{
|
||||
"station_id": 60010228,
|
||||
"name": "Ghesis V - Moon 2 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010231,
|
||||
"name": "Ghesis V - Moon 9 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010234,
|
||||
"name": "Ghesis V - Moon 13 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010237,
|
||||
"name": "Ghesis V - Moon 3 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004111": [
|
||||
{
|
||||
"station_id": 60010279,
|
||||
"name": "Yarebap VII - Moon 8 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004112": [
|
||||
{
|
||||
"station_id": 60010276,
|
||||
"name": "Mandoo III - Moon 11 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010282,
|
||||
"name": "Mandoo III - Moon 5 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004114": [
|
||||
{
|
||||
"station_id": 60010285,
|
||||
"name": "Peyiri XI - Moon 21 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30004239": [
|
||||
{
|
||||
"station_id": 60008566,
|
||||
"name": "Kamih VII - Moon 4 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004240": [
|
||||
{
|
||||
"station_id": 60008569,
|
||||
"name": "Hier IV - Moon 3 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008572,
|
||||
"name": "Hier VII - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004241": [
|
||||
{
|
||||
"station_id": 60008575,
|
||||
"name": "Jasson I - Moon 4 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30004288": [
|
||||
{
|
||||
"station_id": 60010267,
|
||||
"name": "Ghekon V - Moon 5 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010273,
|
||||
"name": "Ghekon II - Moon 2 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004291": [
|
||||
{
|
||||
"station_id": 60010270,
|
||||
"name": "Anohel VI - Moon 14 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30004296": [
|
||||
{
|
||||
"station_id": 60010264,
|
||||
"name": "Bapraya IV - Moon 1 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30005009": [
|
||||
{
|
||||
"station_id": 60010159,
|
||||
"name": "Allebin VIII - Moon 4 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30005010": [
|
||||
{
|
||||
"station_id": 60010162,
|
||||
"name": "Atlulle VIII - Moon 6 - CreoDron Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60010165,
|
||||
"name": "Atlulle III - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30005011": [
|
||||
{
|
||||
"station_id": 60010156,
|
||||
"name": "Droselory VI - Moon 17 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30005017": [
|
||||
{
|
||||
"station_id": 60010207,
|
||||
"name": "Yona VI - Moon 5 - CreoDron Factory"
|
||||
}
|
||||
],
|
||||
"30005018": [
|
||||
{
|
||||
"station_id": 60010210,
|
||||
"name": "Noghere VII - Moon 15 - CreoDron Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60010213,
|
||||
"name": "Noghere VIII - Moon 18 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30005020": [
|
||||
{
|
||||
"station_id": 60010204,
|
||||
"name": "Seyllin VIII - Moon 14 - CreoDron Warehouse"
|
||||
}
|
||||
],
|
||||
"30005030": [
|
||||
{
|
||||
"station_id": 60008578,
|
||||
"name": "Fensi V - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005031": [
|
||||
{
|
||||
"station_id": 60008584,
|
||||
"name": "Nebian VIII - Moon 4 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005034": [
|
||||
{
|
||||
"station_id": 60008581,
|
||||
"name": "Bridi II - Moon 1 - Emperor Family Academy"
|
||||
}
|
||||
],
|
||||
"30005035": [
|
||||
{
|
||||
"station_id": 60008587,
|
||||
"name": "Ami XI - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005039": [
|
||||
{
|
||||
"station_id": 60008611,
|
||||
"name": "Leva II - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008602,
|
||||
"name": "Leva XI - Moon 8 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005040": [
|
||||
{
|
||||
"station_id": 60008608,
|
||||
"name": "Nishah VII - Moon 5 - Emperor Family Treasury"
|
||||
}
|
||||
],
|
||||
"30005043": [
|
||||
{
|
||||
"station_id": 60008605,
|
||||
"name": "Nakregde VII - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005052": [
|
||||
{
|
||||
"station_id": 60008554,
|
||||
"name": "Soumi V - Moon 4 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008557,
|
||||
"name": "Soumi I - Moon 1 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008563,
|
||||
"name": "Soumi VII - Moon 1 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005054": [
|
||||
{
|
||||
"station_id": 60008560,
|
||||
"name": "Nare VI - Moon 16 - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005199": [
|
||||
{
|
||||
"station_id": 60012739,
|
||||
"name": "Tar III - Secure Commerce Commission Depository"
|
||||
}
|
||||
],
|
||||
"30005204": [
|
||||
{
|
||||
"station_id": 60012736,
|
||||
"name": "Yulai III - Moon 1 - Secure Commerce Commission Depository"
|
||||
}
|
||||
],
|
||||
"30005275": [
|
||||
{
|
||||
"station_id": 60008596,
|
||||
"name": "Azedi III - Emperor Family Bureau"
|
||||
}
|
||||
],
|
||||
"30005276": [
|
||||
{
|
||||
"station_id": 60008599,
|
||||
"name": "Sharza VII - Moon 3 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008590,
|
||||
"name": "Sharza VII - Moon 5 - Emperor Family Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60008593,
|
||||
"name": "Sharza VI - Moon 4 - Emperor Family Bureau"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
839
priv/repo/data/route_by_systems/redloot.json
Normal file
839
priv/repo/data/route_by_systems/redloot.json
Normal file
@@ -0,0 +1,839 @@
|
||||
{
|
||||
"type_id": 89219,
|
||||
"generated_at": "2026-01-30T13:54:13.047Z",
|
||||
"bands": [
|
||||
"high",
|
||||
"low"
|
||||
],
|
||||
"system_ids_by_band": {
|
||||
"high": [
|
||||
30000009,
|
||||
30000010,
|
||||
30000024,
|
||||
30000025,
|
||||
30000030,
|
||||
30000051,
|
||||
30000052,
|
||||
30000084,
|
||||
30000087,
|
||||
30000201,
|
||||
30000202,
|
||||
30001380,
|
||||
30001384,
|
||||
30001644,
|
||||
30001646,
|
||||
30001669,
|
||||
30001671,
|
||||
30001674,
|
||||
30001689,
|
||||
30001690,
|
||||
30001693,
|
||||
30002724,
|
||||
30002762,
|
||||
30002763,
|
||||
30002764,
|
||||
30002766,
|
||||
30003058,
|
||||
30003374,
|
||||
30003375,
|
||||
30003376,
|
||||
30003378,
|
||||
30003428,
|
||||
30003429,
|
||||
30003430,
|
||||
30003431,
|
||||
30003432,
|
||||
30002242,
|
||||
30002259,
|
||||
30002260,
|
||||
30002262,
|
||||
30003859,
|
||||
30003860,
|
||||
30003861,
|
||||
30003862,
|
||||
30004248,
|
||||
30004249,
|
||||
30004250,
|
||||
30004251,
|
||||
30004253,
|
||||
30005069,
|
||||
30005078,
|
||||
30005198,
|
||||
30005199,
|
||||
30005200,
|
||||
30005204,
|
||||
30005205,
|
||||
30005206,
|
||||
30005315,
|
||||
30005319,
|
||||
30005322,
|
||||
30005323
|
||||
],
|
||||
"low": [
|
||||
30000012,
|
||||
30000014,
|
||||
30000015,
|
||||
30000205,
|
||||
30001385,
|
||||
30002402,
|
||||
30002404,
|
||||
30002406,
|
||||
30002407,
|
||||
30002414,
|
||||
30002419,
|
||||
30002420,
|
||||
30002725,
|
||||
30002726,
|
||||
30002728,
|
||||
30002730,
|
||||
30003057,
|
||||
30003059,
|
||||
30003061,
|
||||
30002060,
|
||||
30002062,
|
||||
30002065,
|
||||
30002246,
|
||||
30002249,
|
||||
30003818,
|
||||
30003819,
|
||||
30004280,
|
||||
30004281,
|
||||
30004284,
|
||||
30005079,
|
||||
30005080,
|
||||
30005328
|
||||
]
|
||||
},
|
||||
"system_stations": {
|
||||
"30000009": [
|
||||
{
|
||||
"station_id": 60012295,
|
||||
"name": "Sooma X - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30000010": [
|
||||
{
|
||||
"station_id": 60012304,
|
||||
"name": "Chidah V - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012307,
|
||||
"name": "Chidah VIII - Moon 17 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000012": [
|
||||
{
|
||||
"station_id": 60012292,
|
||||
"name": "Asabona IX - Moon 5 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000014": [
|
||||
{
|
||||
"station_id": 60012298,
|
||||
"name": "Shamahi IX - Moon 12 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000015": [
|
||||
{
|
||||
"station_id": 60012301,
|
||||
"name": "Sendaya V - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000024": [
|
||||
{
|
||||
"station_id": 60013027,
|
||||
"name": "Kiereend VII - Moon 3 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000025": [
|
||||
{
|
||||
"station_id": 60013030,
|
||||
"name": "Rashy VI - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000030": [
|
||||
{
|
||||
"station_id": 60013024,
|
||||
"name": "Kasrasi IX - Moon 7 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000051": [
|
||||
{
|
||||
"station_id": 60012949,
|
||||
"name": "Juddi VII - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30000052": [
|
||||
{
|
||||
"station_id": 60012943,
|
||||
"name": "Maspah V - Moon 6 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012946,
|
||||
"name": "Maspah IV - Moon 7 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000084": [
|
||||
{
|
||||
"station_id": 60013012,
|
||||
"name": "Asghatil IX - Moon 3 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000087": [
|
||||
{
|
||||
"station_id": 60013006,
|
||||
"name": "Gelhan V - Moon 10 - DED Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60013009,
|
||||
"name": "Gelhan V - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000201": [
|
||||
{
|
||||
"station_id": 60012313,
|
||||
"name": "Uchoshi I - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012322,
|
||||
"name": "Uchoshi IX - Moon 2 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000202": [
|
||||
{
|
||||
"station_id": 60012325,
|
||||
"name": "Mastakomon IX - Moon 2 - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60013042,
|
||||
"name": "Mastakomon IX - Moon 3 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012310,
|
||||
"name": "Mastakomon V - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012316,
|
||||
"name": "Mastakomon IX - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012319,
|
||||
"name": "Mastakomon VIII - Moon 1 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60013048,
|
||||
"name": "Mastakomon XI - Moon 2 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30000205": [
|
||||
{
|
||||
"station_id": 60013045,
|
||||
"name": "Obe VI - Moon 2 - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30001380": [
|
||||
{
|
||||
"station_id": 60012328,
|
||||
"name": "Vellaine V - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30001384": [
|
||||
{
|
||||
"station_id": 60012331,
|
||||
"name": "Autaris VIII - Moon 5 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012340,
|
||||
"name": "Autaris IV - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012343,
|
||||
"name": "Autaris I - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001385": [
|
||||
{
|
||||
"station_id": 60012334,
|
||||
"name": "Jan VI - Moon 21 - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30001644": [
|
||||
{
|
||||
"station_id": 60013033,
|
||||
"name": "Tividu IV - Moon 10 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60013036,
|
||||
"name": "Tividu IV - Moon 3 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001646": [
|
||||
{
|
||||
"station_id": 60013039,
|
||||
"name": "Goram VII - Moon 4 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001669": [
|
||||
{
|
||||
"station_id": 60012982,
|
||||
"name": "Pimebeka VII - Moon 13 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30001671": [
|
||||
{
|
||||
"station_id": 60012985,
|
||||
"name": "Tash-Murkon Prime III - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001674": [
|
||||
{
|
||||
"station_id": 60012979,
|
||||
"name": "Hilaban II - Moon 5 - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30001689": [
|
||||
{
|
||||
"station_id": 60012964,
|
||||
"name": "Asesamy VI - Moon 8 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001690": [
|
||||
{
|
||||
"station_id": 60012967,
|
||||
"name": "Hostni VII - Moon 18 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30001693": [
|
||||
{
|
||||
"station_id": 60012961,
|
||||
"name": "Perdan VI - Moon 16 - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002060": [
|
||||
{
|
||||
"station_id": 60012970,
|
||||
"name": "Evati IX - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002062": [
|
||||
{
|
||||
"station_id": 60012976,
|
||||
"name": "Todifrauan VII - Moon 8 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002065": [
|
||||
{
|
||||
"station_id": 60012973,
|
||||
"name": "Lasleinur VI - Moon 17 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002242": [
|
||||
{
|
||||
"station_id": 60012937,
|
||||
"name": "Mamenkhanar IX - Moon 11 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002246": [
|
||||
{
|
||||
"station_id": 60012940,
|
||||
"name": "Neziel I - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002249": [
|
||||
{
|
||||
"station_id": 60012934,
|
||||
"name": "Ruchy I - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002259": [
|
||||
{
|
||||
"station_id": 60012958,
|
||||
"name": "Sahdil III - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002260": [
|
||||
{
|
||||
"station_id": 60012952,
|
||||
"name": "Esteban VIII - Moon 4 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002262": [
|
||||
{
|
||||
"station_id": 60012955,
|
||||
"name": "Nalu VII - Moon 7 - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002402": [
|
||||
{
|
||||
"station_id": 60012457,
|
||||
"name": "Istodard IX - Moon 5 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012460,
|
||||
"name": "Istodard IX - Moon 16 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002404": [
|
||||
{
|
||||
"station_id": 60012469,
|
||||
"name": "Half VII - Moon 4 - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012454,
|
||||
"name": "Half VII - Moon 1 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002406": [
|
||||
{
|
||||
"station_id": 60012463,
|
||||
"name": "Hedaleolfarber VII - Moon 17 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002407": [
|
||||
{
|
||||
"station_id": 60012466,
|
||||
"name": "Altbrard IX - Moon 8 - CONCORD Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002414": [
|
||||
{
|
||||
"station_id": 60012430,
|
||||
"name": "Klingt VIII - CONCORD Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60012433,
|
||||
"name": "Klingt IX - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012418,
|
||||
"name": "Klingt III - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002419": [
|
||||
{
|
||||
"station_id": 60012421,
|
||||
"name": "Aeditide V - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002420": [
|
||||
{
|
||||
"station_id": 60012424,
|
||||
"name": "Egbinger XII - CONCORD Academy"
|
||||
},
|
||||
{
|
||||
"station_id": 60012427,
|
||||
"name": "Egbinger V - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002724": [
|
||||
{
|
||||
"station_id": 60012502,
|
||||
"name": "Assiettes IV - Moon 1 - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002725": [
|
||||
{
|
||||
"station_id": 60012499,
|
||||
"name": "Goinard III - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012490,
|
||||
"name": "Goinard IV - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002726": [
|
||||
{
|
||||
"station_id": 60012505,
|
||||
"name": "Raeghoscon VIII - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002728": [
|
||||
{
|
||||
"station_id": 60012496,
|
||||
"name": "Lermireve VIII - Moon 15 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002730": [
|
||||
{
|
||||
"station_id": 60012493,
|
||||
"name": "Esmes IV - Moon 2 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002762": [
|
||||
{
|
||||
"station_id": 60012511,
|
||||
"name": "Yashunen VII - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012514,
|
||||
"name": "Yashunen VII - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002763": [
|
||||
{
|
||||
"station_id": 60012523,
|
||||
"name": "Tennen VIII - Moon 4 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002764": [
|
||||
{
|
||||
"station_id": 60012517,
|
||||
"name": "Hatakani VI - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012508,
|
||||
"name": "Hatakani VI - Moon 10 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002766": [
|
||||
{
|
||||
"station_id": 60012520,
|
||||
"name": "Iivinen VIII - Moon 10 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30003057": [
|
||||
{
|
||||
"station_id": 60012373,
|
||||
"name": "Groothese X - Moon 13 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003058": [
|
||||
{
|
||||
"station_id": 60012367,
|
||||
"name": "Olide VI - Moon 10 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012370,
|
||||
"name": "Olide VI - Moon 14 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012379,
|
||||
"name": "Olide IV - Moon 7 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30003059": [
|
||||
{
|
||||
"station_id": 60012364,
|
||||
"name": "Adeel VIII - Moon 1 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30003061": [
|
||||
{
|
||||
"station_id": 60012376,
|
||||
"name": "Mormelot I - CONCORD Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30003374": [
|
||||
{
|
||||
"station_id": 60012355,
|
||||
"name": "Arlulf III - Moon 10 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012358,
|
||||
"name": "Arlulf VI - Moon 1 - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012361,
|
||||
"name": "Arlulf III - Moon 11 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30003375": [
|
||||
{
|
||||
"station_id": 60012346,
|
||||
"name": "Brundakur IV - Moon 1 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003376": [
|
||||
{
|
||||
"station_id": 60012349,
|
||||
"name": "Stirht VII - Moon 14 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003378": [
|
||||
{
|
||||
"station_id": 60012352,
|
||||
"name": "Nedegulf VII - Moon 4 - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30003428": [
|
||||
{
|
||||
"station_id": 60012286,
|
||||
"name": "Hilfhurmur VIII - Moon 6 - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30003429": [
|
||||
{
|
||||
"station_id": 60012277,
|
||||
"name": "Geffur VII - Moon 8 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003430": [
|
||||
{
|
||||
"station_id": 60012289,
|
||||
"name": "Oppold III - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30003431": [
|
||||
{
|
||||
"station_id": 60012280,
|
||||
"name": "Tratokard II - Moon 1 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003432": [
|
||||
{
|
||||
"station_id": 60012283,
|
||||
"name": "Lumegen III - CONCORD Academy"
|
||||
},
|
||||
{
|
||||
"station_id": 60012274,
|
||||
"name": "Lumegen IV - Moon 2 - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30003818": [
|
||||
{
|
||||
"station_id": 60012439,
|
||||
"name": "Aulbres X - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012442,
|
||||
"name": "Aulbres VII - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012445,
|
||||
"name": "Aulbres X - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012448,
|
||||
"name": "Aulbres VII - Moon 16 - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012451,
|
||||
"name": "Aulbres V - Moon 4 - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30003819": [
|
||||
{
|
||||
"station_id": 60012436,
|
||||
"name": "Barleguet IV - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003859": [
|
||||
{
|
||||
"station_id": 60012403,
|
||||
"name": "Neyi VII - Moon 7 - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30003860": [
|
||||
{
|
||||
"station_id": 60012406,
|
||||
"name": "Kihtaled VIII - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012409,
|
||||
"name": "Kihtaled VIII - Moon 17 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003861": [
|
||||
{
|
||||
"station_id": 60012400,
|
||||
"name": "Ipref IV - Moon 5 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012415,
|
||||
"name": "Ipref II - Moon 1 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30003862": [
|
||||
{
|
||||
"station_id": 60012412,
|
||||
"name": "Agil VI - Moon 2 - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30004248": [
|
||||
{
|
||||
"station_id": 60012382,
|
||||
"name": "Haimeh IX - Moon 16 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30004249": [
|
||||
{
|
||||
"station_id": 60012394,
|
||||
"name": "Avada V - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30004250": [
|
||||
{
|
||||
"station_id": 60012391,
|
||||
"name": "Chibi VI - Moon 15 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30004251": [
|
||||
{
|
||||
"station_id": 60012397,
|
||||
"name": "Mishi VIII - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012385,
|
||||
"name": "Mishi VII - Moon 4 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30004253": [
|
||||
{
|
||||
"station_id": 60012388,
|
||||
"name": "Pahineh V - Moon 1 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30004280": [
|
||||
{
|
||||
"station_id": 60013003,
|
||||
"name": "Nalnifan IV - Moon 2 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30004281": [
|
||||
{
|
||||
"station_id": 60013000,
|
||||
"name": "Jerhesh VI - Moon 11 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30004284": [
|
||||
{
|
||||
"station_id": 60012997,
|
||||
"name": "Defsunun IV - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005069": [
|
||||
{
|
||||
"station_id": 60013015,
|
||||
"name": "Nahol X - Moon 2 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60013018,
|
||||
"name": "Nahol II - Moon 1 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60013021,
|
||||
"name": "Nahol IV - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005078": [
|
||||
{
|
||||
"station_id": 60012484,
|
||||
"name": "Keproh VIII - Moon 3 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005079": [
|
||||
{
|
||||
"station_id": 60012478,
|
||||
"name": "Zatamaka VII - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012481,
|
||||
"name": "Zatamaka X - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012472,
|
||||
"name": "Zatamaka XI - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30005080": [
|
||||
{
|
||||
"station_id": 60012475,
|
||||
"name": "Rannoze V - Moon 8 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012487,
|
||||
"name": "Rannoze VII - Moon 2 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005198": [
|
||||
{
|
||||
"station_id": 60012265,
|
||||
"name": "Pakhshi IX - Moon 20 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30005199": [
|
||||
{
|
||||
"station_id": 60012739,
|
||||
"name": "Tar III - Secure Commerce Commission Depository"
|
||||
}
|
||||
],
|
||||
"30005200": [
|
||||
{
|
||||
"station_id": 60012259,
|
||||
"name": "Tekaima I - Moon 1 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012268,
|
||||
"name": "Tekaima V - Moon 9 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005204": [
|
||||
{
|
||||
"station_id": 60012271,
|
||||
"name": "Yulai VIII - Moon 10 - CONCORD Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60012736,
|
||||
"name": "Yulai III - Moon 1 - Secure Commerce Commission Depository"
|
||||
},
|
||||
{
|
||||
"station_id": 60012916,
|
||||
"name": "Yulai VIII - Moon 12 - DED Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60012256,
|
||||
"name": "Yulai IX (Kjarval) - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012922,
|
||||
"name": "Yulai X - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005205": [
|
||||
{
|
||||
"station_id": 60012919,
|
||||
"name": "Tarta IX - Moon 14 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005206": [
|
||||
{
|
||||
"station_id": 60012262,
|
||||
"name": "Kemerk V - Moon 10 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30005315": [
|
||||
{
|
||||
"station_id": 60012994,
|
||||
"name": "Eletta VII - Moon 7 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30005319": [
|
||||
{
|
||||
"station_id": 60012988,
|
||||
"name": "Raneilles V - Moon 2 - DED Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012991,
|
||||
"name": "Raneilles III - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005322": [
|
||||
{
|
||||
"station_id": 60012931,
|
||||
"name": "Scolluzer VI - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30005323": [
|
||||
{
|
||||
"station_id": 60012925,
|
||||
"name": "Sortet VI - Moon 5 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30005328": [
|
||||
{
|
||||
"station_id": 60012928,
|
||||
"name": "Reblier VIII - Moon 7 - DED Logistic Support"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
290
priv/repo/data/route_by_systems/ss_cleaning.json
Normal file
290
priv/repo/data/route_by_systems/ss_cleaning.json
Normal file
@@ -0,0 +1,290 @@
|
||||
{
|
||||
"type_id": null,
|
||||
"generated_at": "2026-02-03T08:42:38.039Z",
|
||||
"bands": [
|
||||
"low"
|
||||
],
|
||||
"system_ids_by_band": {
|
||||
"high": [],
|
||||
"low": [
|
||||
30000012,
|
||||
30000014,
|
||||
30000015,
|
||||
30000205,
|
||||
30001385,
|
||||
30002060,
|
||||
30002062,
|
||||
30002065,
|
||||
30002246,
|
||||
30002249,
|
||||
30002402,
|
||||
30002404,
|
||||
30002406,
|
||||
30002407,
|
||||
30002414,
|
||||
30002419,
|
||||
30002420,
|
||||
30002725,
|
||||
30002726,
|
||||
30002728,
|
||||
30002730,
|
||||
30003057,
|
||||
30003059,
|
||||
30003061,
|
||||
30003818,
|
||||
30003819,
|
||||
30004280,
|
||||
30004281,
|
||||
30004284,
|
||||
30005079,
|
||||
30005080,
|
||||
30005328
|
||||
]
|
||||
},
|
||||
"system_stations": {
|
||||
"30000012": [
|
||||
{
|
||||
"station_id": 60012292,
|
||||
"name": "Asabona IX - Moon 5 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000014": [
|
||||
{
|
||||
"station_id": 60012298,
|
||||
"name": "Shamahi IX - Moon 12 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000015": [
|
||||
{
|
||||
"station_id": 60012301,
|
||||
"name": "Sendaya V - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30000205": [
|
||||
{
|
||||
"station_id": 60013045,
|
||||
"name": "Obe VI - Moon 2 - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30001385": [
|
||||
{
|
||||
"station_id": 60012334,
|
||||
"name": "Jan VI - Moon 21 - CONCORD Academy"
|
||||
}
|
||||
],
|
||||
"30002060": [
|
||||
{
|
||||
"station_id": 60012970,
|
||||
"name": "Evati IX - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002062": [
|
||||
{
|
||||
"station_id": 60012976,
|
||||
"name": "Todifrauan VII - Moon 8 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002065": [
|
||||
{
|
||||
"station_id": 60012973,
|
||||
"name": "Lasleinur VI - Moon 17 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002246": [
|
||||
{
|
||||
"station_id": 60012940,
|
||||
"name": "Neziel I - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002249": [
|
||||
{
|
||||
"station_id": 60012934,
|
||||
"name": "Ruchy I - DED Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002402": [
|
||||
{
|
||||
"station_id": 60012457,
|
||||
"name": "Istodard IX - Moon 5 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012460,
|
||||
"name": "Istodard IX - Moon 16 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002404": [
|
||||
{
|
||||
"station_id": 60012454,
|
||||
"name": "Half VII - Moon 1 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012469,
|
||||
"name": "Half VII - Moon 4 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002406": [
|
||||
{
|
||||
"station_id": 60012463,
|
||||
"name": "Hedaleolfarber VII - Moon 17 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002407": [
|
||||
{
|
||||
"station_id": 60012466,
|
||||
"name": "Altbrard IX - Moon 8 - CONCORD Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30002414": [
|
||||
{
|
||||
"station_id": 60012418,
|
||||
"name": "Klingt III - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012430,
|
||||
"name": "Klingt VIII - CONCORD Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60012433,
|
||||
"name": "Klingt IX - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30002419": [
|
||||
{
|
||||
"station_id": 60012421,
|
||||
"name": "Aeditide V - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002420": [
|
||||
{
|
||||
"station_id": 60012424,
|
||||
"name": "Egbinger XII - CONCORD Academy"
|
||||
},
|
||||
{
|
||||
"station_id": 60012427,
|
||||
"name": "Egbinger V - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002725": [
|
||||
{
|
||||
"station_id": 60012490,
|
||||
"name": "Goinard IV - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012499,
|
||||
"name": "Goinard III - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30002726": [
|
||||
{
|
||||
"station_id": 60012505,
|
||||
"name": "Raeghoscon VIII - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30002728": [
|
||||
{
|
||||
"station_id": 60012496,
|
||||
"name": "Lermireve VIII - Moon 15 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30002730": [
|
||||
{
|
||||
"station_id": 60012493,
|
||||
"name": "Esmes IV - Moon 2 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30003057": [
|
||||
{
|
||||
"station_id": 60012373,
|
||||
"name": "Groothese X - Moon 13 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30003059": [
|
||||
{
|
||||
"station_id": 60012364,
|
||||
"name": "Adeel VIII - Moon 1 - CONCORD Treasury"
|
||||
}
|
||||
],
|
||||
"30003061": [
|
||||
{
|
||||
"station_id": 60012376,
|
||||
"name": "Mormelot I - CONCORD Testing Facilities"
|
||||
}
|
||||
],
|
||||
"30003818": [
|
||||
{
|
||||
"station_id": 60012439,
|
||||
"name": "Aulbres X - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012442,
|
||||
"name": "Aulbres VII - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012445,
|
||||
"name": "Aulbres X - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012448,
|
||||
"name": "Aulbres VII - Moon 16 - CONCORD Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60012451,
|
||||
"name": "Aulbres V - Moon 4 - CONCORD Logistic Support"
|
||||
}
|
||||
],
|
||||
"30003819": [
|
||||
{
|
||||
"station_id": 60012436,
|
||||
"name": "Barleguet IV - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30004280": [
|
||||
{
|
||||
"station_id": 60013003,
|
||||
"name": "Nalnifan IV - Moon 2 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30004281": [
|
||||
{
|
||||
"station_id": 60013000,
|
||||
"name": "Jerhesh VI - Moon 11 - DED Logistic Support"
|
||||
}
|
||||
],
|
||||
"30004284": [
|
||||
{
|
||||
"station_id": 60012997,
|
||||
"name": "Defsunun IV - Moon 1 - DED Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005079": [
|
||||
{
|
||||
"station_id": 60012472,
|
||||
"name": "Zatamaka XI - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012478,
|
||||
"name": "Zatamaka VII - Moon 2 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012481,
|
||||
"name": "Zatamaka X - Moon 2 - CONCORD Bureau"
|
||||
}
|
||||
],
|
||||
"30005080": [
|
||||
{
|
||||
"station_id": 60012475,
|
||||
"name": "Rannoze V - Moon 8 - CONCORD Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012487,
|
||||
"name": "Rannoze VII - Moon 2 - CONCORD Assembly Plant"
|
||||
}
|
||||
],
|
||||
"30005328": [
|
||||
{
|
||||
"station_id": 60012928,
|
||||
"name": "Reblier VIII - Moon 7 - DED Logistic Support"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
355
priv/repo/data/route_by_systems/trade_hubs.json
Normal file
355
priv/repo/data/route_by_systems/trade_hubs.json
Normal file
@@ -0,0 +1,355 @@
|
||||
{
|
||||
"generated_at": "2026-02-03T09:56:41.703Z",
|
||||
"systems": [
|
||||
{
|
||||
"system_id": 30000142,
|
||||
"system_name": "Jita",
|
||||
"stations": [
|
||||
{
|
||||
"station_id": 60000361,
|
||||
"name": "Jita IV - Moon 6 - Ytiri Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60000364,
|
||||
"name": "Jita V - Moon 14 - Ytiri Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60000451,
|
||||
"name": "Jita IV - Moon 6 - Hyasyoda Corporation Refinery"
|
||||
},
|
||||
{
|
||||
"station_id": 60000463,
|
||||
"name": "Jita VI - Hyasyoda Corporation Refinery"
|
||||
},
|
||||
{
|
||||
"station_id": 60002953,
|
||||
"name": "Jita V - Moon 17 - Caldari Constructions Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60002959,
|
||||
"name": "Jita IV - Moon 10 - Caldari Constructions Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003055,
|
||||
"name": "Jita IV - Moon 11 - Expert Housing Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003460,
|
||||
"name": "Jita IV - Moon 10 - Caldari Business Tribunal Law School"
|
||||
},
|
||||
{
|
||||
"station_id": 60003463,
|
||||
"name": "Jita VII - Moon 2 - Caldari Business Tribunal Law School"
|
||||
},
|
||||
{
|
||||
"station_id": 60003466,
|
||||
"name": "Jita IV - Moon 4 - Caldari Business Tribunal Bureau Offices"
|
||||
},
|
||||
{
|
||||
"station_id": 60003469,
|
||||
"name": "Jita IV - Caldari Business Tribunal Information Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60003757,
|
||||
"name": "Jita IV - Moon 5 - Caldari Navy Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003760,
|
||||
"name": "Jita IV - Moon 4 - Caldari Navy Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60004423,
|
||||
"name": "Jita IV - Moon 6 - Caldari Provisions School"
|
||||
},
|
||||
{
|
||||
"station_id": 60015169,
|
||||
"name": "Jita VI - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"system_id": 30002187,
|
||||
"system_name": "Amarr",
|
||||
"stations": [
|
||||
{
|
||||
"station_id": 60002569,
|
||||
"name": "Amarr VIII (Oris) - Moon 4 - Expert Distribution Retail Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60008494,
|
||||
"name": "Amarr VIII (Oris) - Emperor Family Academy"
|
||||
},
|
||||
{
|
||||
"station_id": 60008950,
|
||||
"name": "Amarr VI (Zorast) - Moon 2 - Theology Council Tribunal"
|
||||
},
|
||||
{
|
||||
"station_id": 60015168,
|
||||
"name": "Amarr VII (Nemantizor) - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"system_id": 30002659,
|
||||
"system_name": "Dodixie",
|
||||
"stations": [
|
||||
{
|
||||
"station_id": 60001864,
|
||||
"name": "Dodixie IX - Moon 9 - Nugoeihuvi Corporation Development Studio"
|
||||
},
|
||||
{
|
||||
"station_id": 60001867,
|
||||
"name": "Dodixie VIII - Moon 3 - Nugoeihuvi Corporation Development Studio"
|
||||
},
|
||||
{
|
||||
"station_id": 60011866,
|
||||
"name": "Dodixie IX - Moon 20 - Federation Navy Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60015170,
|
||||
"name": "Dodixie V - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"system_id": 30002053,
|
||||
"system_name": "Hek",
|
||||
"stations": [
|
||||
{
|
||||
"station_id": 60004516,
|
||||
"name": "Hek IV - Krusual Tribe Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60005236,
|
||||
"name": "Hek II - Moon 1 - Minmatar Mining Corporation Mineral Reserve"
|
||||
},
|
||||
{
|
||||
"station_id": 60005686,
|
||||
"name": "Hek VIII - Moon 12 - Boundless Creation Factory"
|
||||
},
|
||||
{
|
||||
"station_id": 60011287,
|
||||
"name": "Hek VIII - Moon 17 - Aliastra Retail Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60015140,
|
||||
"name": "Hek VII - Tribal Liberation Force Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60015171,
|
||||
"name": "Hek IX - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"system_id": 30002510,
|
||||
"system_name": "Rens",
|
||||
"stations": [
|
||||
{
|
||||
"station_id": 60004588,
|
||||
"name": "Rens VI - Moon 8 - Brutor Tribe Treasury"
|
||||
},
|
||||
{
|
||||
"station_id": 60004594,
|
||||
"name": "Rens VII - Moon 17 - Brutor Tribe Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60005725,
|
||||
"name": "Rens VI - Six Kin Development Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60009106,
|
||||
"name": "Rens VIII - Moon 3 - TransStellar Shipping Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60012721,
|
||||
"name": "Rens VII - Moon 20 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012724,
|
||||
"name": "Rens VII - Moon 21 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012727,
|
||||
"name": "Rens VII - Moon 19 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60015172,
|
||||
"name": "Rens V - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"system_ids": [
|
||||
30000142,
|
||||
30002187,
|
||||
30002659,
|
||||
30002053,
|
||||
30002510
|
||||
],
|
||||
"system_stations": {
|
||||
"30000142": [
|
||||
{
|
||||
"station_id": 60000361,
|
||||
"name": "Jita IV - Moon 6 - Ytiri Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60000364,
|
||||
"name": "Jita V - Moon 14 - Ytiri Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60000451,
|
||||
"name": "Jita IV - Moon 6 - Hyasyoda Corporation Refinery"
|
||||
},
|
||||
{
|
||||
"station_id": 60000463,
|
||||
"name": "Jita VI - Hyasyoda Corporation Refinery"
|
||||
},
|
||||
{
|
||||
"station_id": 60002953,
|
||||
"name": "Jita V - Moon 17 - Caldari Constructions Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60002959,
|
||||
"name": "Jita IV - Moon 10 - Caldari Constructions Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003055,
|
||||
"name": "Jita IV - Moon 11 - Expert Housing Production Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003460,
|
||||
"name": "Jita IV - Moon 10 - Caldari Business Tribunal Law School"
|
||||
},
|
||||
{
|
||||
"station_id": 60003463,
|
||||
"name": "Jita VII - Moon 2 - Caldari Business Tribunal Law School"
|
||||
},
|
||||
{
|
||||
"station_id": 60003466,
|
||||
"name": "Jita IV - Moon 4 - Caldari Business Tribunal Bureau Offices"
|
||||
},
|
||||
{
|
||||
"station_id": 60003469,
|
||||
"name": "Jita IV - Caldari Business Tribunal Information Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60003757,
|
||||
"name": "Jita IV - Moon 5 - Caldari Navy Assembly Plant"
|
||||
},
|
||||
{
|
||||
"station_id": 60003760,
|
||||
"name": "Jita IV - Moon 4 - Caldari Navy Assembly Plant",
|
||||
"special": true
|
||||
},
|
||||
{
|
||||
"station_id": 60004423,
|
||||
"name": "Jita IV - Moon 6 - Caldari Provisions School"
|
||||
},
|
||||
{
|
||||
"station_id": 60015169,
|
||||
"name": "Jita VI - Paragon Fulfillment Center"
|
||||
}
|
||||
],
|
||||
"30002053": [
|
||||
{
|
||||
"station_id": 60004516,
|
||||
"name": "Hek IV - Krusual Tribe Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60005236,
|
||||
"name": "Hek II - Moon 1 - Minmatar Mining Corporation Mineral Reserve"
|
||||
},
|
||||
{
|
||||
"station_id": 60005686,
|
||||
"name": "Hek VIII - Moon 12 - Boundless Creation Factory",
|
||||
"special": true
|
||||
},
|
||||
{
|
||||
"station_id": 60011287,
|
||||
"name": "Hek VIII - Moon 17 - Aliastra Retail Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60015140,
|
||||
"name": "Hek VII - Tribal Liberation Force Logistic Support"
|
||||
},
|
||||
{
|
||||
"station_id": 60015171,
|
||||
"name": "Hek IX - Paragon Fulfillment Center"
|
||||
}
|
||||
],
|
||||
"30002187": [
|
||||
{
|
||||
"station_id": 60002569,
|
||||
"name": "Amarr VIII (Oris) - Moon 4 - Expert Distribution Retail Center"
|
||||
},
|
||||
{
|
||||
"station_id": 60008494,
|
||||
"name": "Amarr VIII (Oris) - Emperor Family Academy",
|
||||
"special": true
|
||||
},
|
||||
{
|
||||
"station_id": 60008950,
|
||||
"name": "Amarr VI (Zorast) - Moon 2 - Theology Council Tribunal"
|
||||
},
|
||||
{
|
||||
"station_id": 60015168,
|
||||
"name": "Amarr VII (Nemantizor) - Paragon Fulfillment Center"
|
||||
}
|
||||
],
|
||||
"30002510": [
|
||||
{
|
||||
"station_id": 60004588,
|
||||
"name": "Rens VI - Moon 8 - Brutor Tribe Treasury",
|
||||
"special": true
|
||||
},
|
||||
{
|
||||
"station_id": 60004594,
|
||||
"name": "Rens VII - Moon 17 - Brutor Tribe Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60005725,
|
||||
"name": "Rens VI - Six Kin Development Warehouse"
|
||||
},
|
||||
{
|
||||
"station_id": 60009106,
|
||||
"name": "Rens VIII - Moon 3 - TransStellar Shipping Storage"
|
||||
},
|
||||
{
|
||||
"station_id": 60012721,
|
||||
"name": "Rens VII - Moon 20 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012724,
|
||||
"name": "Rens VII - Moon 21 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60012727,
|
||||
"name": "Rens VII - Moon 19 - Sisters of EVE Bureau"
|
||||
},
|
||||
{
|
||||
"station_id": 60015172,
|
||||
"name": "Rens V - Paragon Fulfillment Center"
|
||||
}
|
||||
],
|
||||
"30002659": [
|
||||
{
|
||||
"station_id": 60001864,
|
||||
"name": "Dodixie IX - Moon 9 - Nugoeihuvi Corporation Development Studio"
|
||||
},
|
||||
{
|
||||
"station_id": 60001867,
|
||||
"name": "Dodixie VIII - Moon 3 - Nugoeihuvi Corporation Development Studio"
|
||||
},
|
||||
{
|
||||
"station_id": 60011866,
|
||||
"name": "Dodixie IX - Moon 20 - Federation Navy Assembly Plant",
|
||||
"special": true
|
||||
},
|
||||
{
|
||||
"station_id": 60015170,
|
||||
"name": "Dodixie V - Paragon Fulfillment Center"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user