awhipp / evetrade

Frontend UI for the popular EVE Online market tool
https://evetrade.space
Apache License 2.0
79 stars 23 forks source link

Trading with stations around the start station #144

Closed psolyca closed 3 years ago

psolyca commented 4 years ago

Is your feature request related to a problem? Please describe. Currently, we can choose to trade from one station to another or to a complete system (or more). But could it be possible (is there an advantage) to trade with all stations in the vicinity of a station ? With a station in the same constellation as the start station, in the same region, @ 1 or X jumps (max ?)

Describe the solution you'd like Having a button / drop-down menu to choose directly without having to look in Dotlan all stations in the constellation / region / @ 1 to X jumps (max to define)

awhipp commented 4 years ago

It would have a benefit but complexity is a concern. It would require a number of API calls per station to determine order and distance from each station. Pretty similar to the traveling salesman problem because for every station of interest we would need to determine the number jumps away that each station is to determine if an order can be executed. Station to station this would not be a problem but if we included regions then it gets exponentially more challenging.

psolyca commented 4 years ago

Ok, I reread what I have written and I understand what you mean but it is not what I want ^^ Currently, to have a list of end stations, you have to select them one by one or use the "Shift" key to select all station in the system of end station. What I want is to add in the list of end stations, all stations in the constellation, the region or at X jump from the start station. Then it is the same algorithm from station to station.

awhipp commented 4 years ago

Ah I see. That does make it simpler .

psolyca commented 4 years ago

Same principle as #145 . Automatically fill end stations nearby start station in constellation (for the time being)

Only one start station can be used otherwise a message is displayed. This, to avoid to many requests.

With a drop-down menu Constellation_dropdown

With a button Constellation_button

With a checkbox Constellation_checkbox_unticked

Constellation_checkbox_ticked_noerror

Constellation_checkbox_ticked_error

After choosing the way to get it, I will expand the same to region and to X jumps (max not defined yet).

psolyca commented 4 years ago

Can not do it for all stations in the region of start station... too many requests to ESI server (not enough resources for the server).

psolyca commented 4 years ago

I am thinking of a way to cache the first request to avoid too many resquests to the ESI server as all requests are the same.

psolyca commented 4 years ago

I need to rethink on the subject... cause :