Spatial Stream

FREE
By autsia
Updated 20 days ago
Location
5.6/10
Popularity Score
5027ms
Latency
87%
Success Rate

Spatial Stream API Documentation

Service for accepting and storing geospatial data and performing queries on it

View API Details
GETGet entity
POSTPost entity
GETGet nearby
GETGet entity

Get coordinates by ID

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idSTRING
REQUIRED
Code Snippet
unirest.get("https://spatial-stream.p.rapidapi.com/entity/0")
.header("X-RapidAPI-Host", "spatial-stream.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://spatial-stream.p.rapidapi.com/entity/{id}
Request Method: GET
Response Headers
"content-type": "application/json"
"date": "Fri, 28 Jun 2019 14:26:04 GMT"
"server": "RapidAPI-1.0.16"
"via": "1.1 2d6af3776c34132f3eb21a362bdd0a84.cloudfront.net (CloudFront)"
"x-amz-apigw-id": "b_p7gHPqAi0F3ag="
"x-amz-cf-id": "uJ-oOmi1DuMfg4bCq2FTjVg5zusLD8-JmcE01aXn5oZouFulTlC0EA=="
"x-amz-cf-pop": "DUB2-C1"
"x-amzn-requestid": "a981556f-99b0-11e9-8f4c-f73c0d2c159f"
"x-amzn-trace-id": "Root=1-5d16237c-2318740c5e82b58f5b1f3bef;Sampled=0"
"x-cache": "Miss from cloudfront"
"x-rapidapi-region": "AWS - eu-west-1"
"x-rapidapi-version": "1.0.16"
"content-length": "52"
"connection": "Close"
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://spatial-stream.p.rapidapi.com/entity/0")
.header("X-RapidAPI-Host", "spatial-stream.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication