Closed NoFoolLikeOne closed 6 years ago
{
"id": 27,
"id64": 10477373803,
"name": "Sol",
"traffic": {
"total": 7367,
"week": 356,
"day": 78
},
"breakdown": {
"Adder": 1,
"Anaconda": 7,
"Asp Explorer": 13,
"Beluga Liner": 2,
"Cobra MkIII": 2,
"Diamondback Explorer": 8,
"Dolphin": 3,
"Federal Assault Ship": 1,
"Federal Corvette": 5,
"Federal Gunship": 1,
"Fer-de-Lance": 1,
"Hauler": 1,
"Imperial Clipper": 1,
"Imperial Courier": 2,
"Imperial Cutter": 4,
"Orca": 2,
"Python": 17,
"Type-9 Heavy": 1,
"Viper MkIII": 1,
"Viper MkIV": 1,
"Vulture": 1
}
}
oooh! I like it
Could you add a traffic report parameter to this API? eg showTraffic=1
https://www.edsm.net/api-v1/system
Proposed structure in bold
{ name : "Merope", coords : { x : -78.59375, y : -149.625, z : -340.53125 }, information : { allegiance : "Federation", government : "Democracy", faction : "Pleiades Resource Enterprise", factionState : "Expansion", population : 850000, reserve : "Pristine", security : "Medium", economy : "Industrial" }, primaryStar : { type : "B (Blue-White) Star", name : "Merope", isScoopable : true }, traffic :{ total: 3163, week: 81, day: 17 } }
I have two uses for this.
I have a EDMC plugin that uses a slow api call to EDSM. The traffic information combined with a local cache would allow me to avoid calling the EDSM API in areas that have cached data and heavy traffic.
I'd like to write a plugin that can show me the local population and the likelihood of encountering another commander.