/filecoin-sp-locations

versioned query system to find SP locations

Primary LanguageJavaScriptMIT LicenseMIT

filecoin-sp-locations

Versioned query system to find SP locations

How to use

findLocation takes as input:

{ "minerID": string, // the SP minerID you are searching for the location of
"loc_version": string } // version of the location information used 

And returns as output:

{ "minerID": string, // the SP minerID you are searching for the location of
"loc_version": string, // version of the location information used 
"country": string, // If all locations are from the same country, contains country code
"locations": [ // array of the locations found for this minerID in this location version
  {"region_code": string, // varies based on version, generally COUNTRY-PROVINCE
  "long": num, // longitude
  "lat":num} //latitude
  ...]
  }
  

Versions

v 1.2.0

Uses synthetic location information from Jim Pick's provider quest project See Jim's presentation on the methodology here Data pulled from this textile bucket