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.
Previous page123
 

A challenge with no prize!

First post First post
Author
Ortho Loess
Escalated.
OnlyFleets.
#41 - 2015-02-18 00:02:24 UTC
FoxFour, where's your entry?! :P

One thing that came up during this:

As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.

However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.

There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)

Is there a better way?
Chingy Chonga
Royal Amarr Institute
Amarr Empire
#42 - 2015-02-18 00:19:27 UTC
Ortho Loess wrote:
FoxFour, where's your entry?! :P

One thing that came up during this:

As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.

However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.

There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)

Is there a better way?


I want to say Steve just did a filter by regions that don't start with W0.
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#43 - 2015-02-18 12:41:58 UTC
Ortho Loess wrote:
FoxFour, where's your entry?! :P

One thing that came up during this:

As far as I can tell, we all used the regions endpoint to get the list of regions to display in a drop down menu. This is the obvious thing to do, as you need the links from that endpoint to get to the market orders.

However, the list included all the W-space and jove regions. There's only one wormhole system that has a market, so these really don't belong in the list. I couldn't think of any good way to filter them out though, other than to do a further call for each region, and see if it has a description. From looking it seemed that W-Space regions are missing the description, but I didn't check all regions to make sure.

There was little point implementing that, since it would be no less hacky to just include a list of regions to filter on (they really don't change very often!)

Is there a better way?




if (!value.name.match('.-R00')) {


Is what I did to filter out all the wormhole regions. They all start A to E, dash, R then a bunch of zeros. No other region is named like that, so it's a pretty reliable way to do it :)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Previous page123