FOAM provides the tools to enable a crowdsourced map and decentralized location services.
This subgraph can be found on The Graph Hosted Service at https://thegraph.com/explorer/subgraph/blocklytics/foam.
You can also run this subgraph locally, if you wish. Instructions for that can be found in The Graph Documentation.
Below are a few ways to show how to query the Foam Subgraph for data. The queries show most of the information that is queryable, but there are many other filtering options that can be used, just check out the querying api.
{
listings(where: {whitelisted: true, wasRemoved: false, wasWithdrawn: false}) {
id
owner {
id
}
deposit
applicationExpiry
data
}
}
{
challenge(id: "0x10") {
votes {
id
voter {
id
}
isRevealed
isForChallenge
voteAmount
wonChallenge
rewardAmount
rewardClaimed
}
}
}
{
users(orderBy: numListingsWhitelisted, orderDirection: desc, first: 10) {
id
numListingsWhitelisted
}
}
{
users(orderBy: totalAmountStaked, orderDirection: desc, first: 10) {
id
totalAmountStaked
}
}