EDSM-NET / FrontEnd

Issues tracker for EDSM
https://www.edsm.net/
37 stars 0 forks source link

Expand `stations` endpoint to find stations #200

Open Uriei opened 6 years ago

Uriei commented 6 years ago

Add a new parameter to https://www.edsm.net/api-system-v1/stations so it can return a list of stations with that name on each system.

It would help to be able to find not just stations by name, also moving megaships like The Gnosis or the AEGIS ones, Acropolis and Vanguard.

Something like this: https://www.edsm.net/api-system-v1/stations?stationName=Abasheli Dock

[
    {
        "id": 53165,
        "marketId": 3227548928,
        "type": "Outpost",
        "name": "Abasheli Dock",
        "distanceToArrival": 2151.051025,
        "allegiance": "Federation",
        "government": "Corporate",
        "economy": "Extraction",
        "secondEconomy": null,
        "haveMarket": true,
        "haveShipyard": false,
        "haveOutfitting": true,
        "otherServices": [
            "Refuel",
            "Repair",
            "Contacts",
            "Universal Cartographics",
            "Missions",
            "Crew Lounge",
            "Tuning",
            "Search and Rescue"
        ],
        "controllingFaction": {
            "id": 23193,
            "name": "Gold Allied Solutions"
        },
        "updateTime": {
            "information": "2017-11-06 16:08:14",
            "market": "2017-10-30 13:09:33",
            "shipyard": null,
            "outfitting": "2017-10-30 13:09:33"
        }
    },
    {
        "id": 43353,
        "marketId": 3227778816,
        "type": "Outpost",
        "name": "Abasheli Dock",
        "distanceToArrival": 13.067385,
        "allegiance": "Independent",
        "government": "Corporate",
        "economy": "Industrial",
        "secondEconomy": "Extraction",
        "haveMarket": false,
        "haveShipyard": false,
        "haveOutfitting": false,
        "otherServices": [
            "Restock",
            "Refuel",
            "Repair",
            "Contacts",
            "Universal Cartographics",
            "Missions",
            "Search and Rescue"
        ],
        "controllingFaction": {
            "id": 57874,
            "name": "Baroju Legal Holdings"
        },
        "updateTime": {
            "information": "2018-09-04 14:32:00",
            "market": null,
            "shipyard": null,
            "outfitting": null
        }
    }
]
SadieSwanson commented 6 years ago

+1 this would be very useful.