
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@w3bstream/geostream
Advanced tools
pnpm i @w3bstream/geostream
import { GeostreamSDK } from "@w3bstream/geostream";
const sdk = new GeostreamSDK({
mode: "dev" | "prod", //Optional, default is 'dev'
signer: ethers.Signer, // signer extends ethers.Signer
});
const proof = await sdk.pol.getProof({
owner: "0x6457cb57dAF5DB29adbE7a137904b2042652E4bA", // The wallet address of the user of which you want to prove the location. This must be the IoTeX wallet address that the user associated to Metapebble.
locations: [
{
from: 1676879793, // The start of the time range of interest (Unix timestamp).
to: 1676015793, // The end of the time range of interest (Unix timestamp).
scaled_latitude: 30400000, // The GPS latitude where the user is supposed to be. tip:(4.131637, 10.168213) => (4131637, 10168213)
scaled_longitude: 120520000, // The GPS longitude where the user is supposed to be. tip:(4.131637, 10.168213) => (4131637, 10168213)
distance: 1000, // The maximum distance from the GPS location you allow the user to be (integer, meters)
},
],
});
// if you want to use mock api, you can use this
const proof = await sdk.pol.getMockProof({
owner: "0x6457cb57dAF5DB29adbE7a137904b2042652E4bA", // The wallet address of the user of which you want to prove the location. This must be the IoTeX wallet address that the user associated to Metapebble.
locations: [
{
imei: "123456789012345", // The imei of the device, you can set any value you want
from: 1676879793, // The start of the time range of interest (Unix timestamp).
to: 1676015793, // The end of the time range of interest (Unix timestamp).
scaled_latitude: 30400000, // The GPS latitude where the user is supposed to be. tip:(4.131637, 10.168213) => (4131637, 10168213)
scaled_longitude: 120520000, // The GPS longitude where the user is supposed to be. tip:(4.131637, 10.168213) => (4131637, 10168213)
distance: 1000, // The maximum distance from the GPS location you allow the user to be (integer, meters)
},
],
});
FAQs
```bash pnpm i @w3bstream/geostream ```
The npm package @w3bstream/geostream receives a total of 3 weekly downloads. As such, @w3bstream/geostream popularity was classified as not popular.
We found that @w3bstream/geostream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.