These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
Getting started with the EVE API
module Stations require 'open-uri' require 'nokogiri' require 'json' def self.findStations(solarSystems) # This method checks for given Solar Systems all Staitions within those systems # it is required, because the quicklook api from eve-central doesn't return # solar systems (only regions and stations). Thus we need to perform one single # query on required goods and then select only the - here returned - stations facilities = Array.new url = "https://public-crest.eveonline.com/industry/facilities/" doc = Nokogiri::HTML(open(url)) data = JSON.parse(doc) data['items'].each_with_index do |item, index| # p index if solarSystems.include?(item["solarSystem"]["id"] ) facilities << item["facilityID"] end end return facilities endend
http://eve-trader.net - small web application for industrialist. Calculate your profits on blueprints in real time.
"id_str": "10000002","href": "https://public-crest.eveonline.com/regions/10000002/","id": 10000002,"name": "The Forge"
"id_str": "39","href": "https://public-crest.eveonline.com/types/39/","id": 39,"name": "Zydrine"