These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

crest api to get all stations within a region.

First post
Author
foxjazz
Asylum Misfits
Brave Collective
#1 - 2016-06-19 01:23:53 UTC
I have looked at this, but haven't figured out if this can be done without going after order info.
given a region, I would like to get a station name list with stationID or all places that would contain a place to buy or sell goods.

Let me know if anyone has any ideas. I really do appreciate the effor foxFour has made.

Also I know we are going after cached data, and I was wondering how often the cache is updated.

Would it be possible to subscribe to data changes based on a stationid / itemid?

foxjazz
salacious necrosis
Garoun Investment Bank
Gallente Federation
#2 - 2016-06-19 12:54:19 UTC
I'm not sure I completely understand what you're asking for, but it sounds like you just want a list of all stations where there's either a buy or sell order in a given region. If so, I don't know of any other way to do this than to pull the orders for a region and extract the station IDs. Pulling the bulk orders (e.g. https://crest.eveonline.com/market/10000002/orders/all/) is definitely the fastest way to do this.

I don't think there's an easy way to map stationID to stationName in CREST at the moment. It's easy to do with the SDE. I host the SDE online; I can give you some javascript for the lookup if you're interested.

If you're asking about the cache timer for market orders from CREST, this is encoded in the caching instructions in the HTTP response header:

Quote:
Cache-Control:max-age=300


In other words, 5 minutes. There's no way to "subscribe" to changes. You have to poll.

Use EveKit ! - Tools for EVE Online 3rd party development

Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#3 - 2016-06-19 19:08:44 UTC
From crest, not easily. Because you'd need to iterate through every constellation, then system in the region.

What's probably easier is to use something like https://www.fuzzwork.co.uk/dump/latest/staStations.csv.bz2

Which is a conversion from the SDE, and lists all stations.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

foxjazz
Asylum Misfits
Brave Collective
#4 - 2016-07-05 21:25:47 UTC
Yes I may have to leverage fuzzy work. Currently I am getting stations from a list of buy/sell tritium because it's the most common element in eve. But it so happens that maybe not all stations buy or sell that. Therefore the station wouldn't show up on my list.

My app eveMarket my app
Currently I just want the user to be able to get a list of buy sell types from selected stations.

fox