https://github.com/protocol/filecoin-sp-locations
versioned query system to find SP locations
https://github.com/protocol/filecoin-sp-locations
Last synced: 3 months ago
JSON representation
versioned query system to find SP locations
- Host: GitHub
- URL: https://github.com/protocol/filecoin-sp-locations
- Owner: protocol
- License: mit
- Created: 2022-03-08T17:41:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-08T21:37:14.000Z (almost 4 years ago)
- Last Synced: 2024-12-29T08:41:32.746Z (about 1 year ago)
- Language: JavaScript
- Size: 85.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://youtu.be/PyxSRV0UlFc?t=2633)
Data pulled from [this textile bucket](https://hub.textile.io/thread/bafkwblbznyqkmqx5l677z3kjsslhxo2vbbqh6wluunvvdbmqattrdya/buckets/bafzbeibjg7kky45npdwnogui5ffla7dint62xpttvvlzrsbewlrfmbusya/synthetic-country-state-province-locations-latest.json)