Spatial REST API Gateway
Experience real-time deterministic S2 spatial ranking audits. Choose a real storefront below or input your own coordinates to inspect walking perimeter rankings and competitor displacement in sub-second latency.
Interactive Radius Tracking Simulator
Target Keywords:
50m
100m
200m
500m
1,000m
Starbucks Araya (Target)
Niko Cafe (75m)
Kopi Kenangan (140m)
Janji Jiwa (220m)
Excelso (460m)
Point Coffee (780m)
Perimeter Audit
Select distance to inspect local visibility
50m
Storefront Entrance
#1
Local 3-Pack
100m
Immediate Block
#1
Local 3-Pack
200m
Nearest Intersection
#1
Local 3-Pack
500m
5-Minute Walk
#2
Local 3-Pack
1,000m
Commercial District
#4
Displaced
Top Brands at 200m
5 competing businesses near intersection
Developer Integration
Integrate deterministic S2 multi-radius audits directly into your backend pipelines using the official NPM package or REST API.
// Installation: npm install ypym-radius
const { RadiusClient } = require('ypym-radius');
const client = new RadiusClient({ apiKey: 'ypym_radius_demo_9876543210abcdef' });
// Execute multi-radius matrix audit for Starbucks Araya Malang
const result = await client.auditSERP({
keyword: 'cafe di araya malang',
targetName: 'Starbucks',
latitude: -7.9405, longitude: 112.6565,
radii: [50, 100, 200, 500, 1000]
});
console.log(result.brandPosition, result.competitors);|
const { RadiusClient } = require('ypym-radius');
const client = new RadiusClient({ apiKey: 'ypym_radius_demo_9876543210abcdef' });
// Execute multi-radius matrix audit for Starbucks Araya Malang
const result = await client.auditSERP({
keyword: 'cafe di araya malang',
targetName: 'Starbucks',
latitude: -7.9405, longitude: 112.6565,
radii: [50, 100, 200, 500, 1000]
});
console.log(result.brandPosition, result.competitors);|
// 1. Audit 5 deterministic S2 coordinate perimeters
curl -X POST 'https://radius-api.ypym.app/api/v1/spatial/analyze' \
-H "Authorization: Bearer ypym_radius_demo_9876543210abcdef" \
-H "Content-Type: application/json" \
-d '{
"keyword": "cafe di araya malang",
"target_name": "Starbucks",
"latitude": -7.9405, "longitude": 112.6565,
"radii_meters": [50, 100, 200, 500, 1000]
}'|
curl -X POST 'https://radius-api.ypym.app/api/v1/spatial/analyze' \
-H "Authorization: Bearer ypym_radius_demo_9876543210abcdef" \
-H "Content-Type: application/json" \
-d '{
"keyword": "cafe di araya malang",
"target_name": "Starbucks",
"latitude": -7.9405, "longitude": 112.6565,
"radii_meters": [50, 100, 200, 500, 1000]
}'|
# Direct HTTP API Request
import requests
headers = {"Authorization": "Bearer ypym_radius_demo_9876543210abcdef"}
payload = {
"keyword": "cafe di araya malang",
"target_name": "Starbucks",
"latitude": -7.9405, "longitude": 112.6565,
"radii_meters": [50, 100, 200, 500, 1000]
}
res = requests.post("https://radius-api.ypym.app/api/v1/spatial/analyze", json=payload, headers=headers)
print(res.json())|
import requests
headers = {"Authorization": "Bearer ypym_radius_demo_9876543210abcdef"}
payload = {
"keyword": "cafe di araya malang",
"target_name": "Starbucks",
"latitude": -7.9405, "longitude": 112.6565,
"radii_meters": [50, 100, 200, 500, 1000]
}
res = requests.post("https://radius-api.ypym.app/api/v1/spatial/analyze", json=payload, headers=headers)
print(res.json())|
// ── Postman 4-Step Production Setup ──
// 1. Method & URL : POST https://radius-api.ypym.app/api/v1/spatial/analyze
// 2. Authorization: Tab Authorization → Type: Bearer Token → Token: 'ypym_radius_demo_9876543210abcdef'
// 3. Headers : Tab Headers → Content-Type: application/json
// 4. Body (raw) : Tab Body → raw → JSON
// Sample Request JSON Payload:
{
"keyword": "cafe di araya malang",
"center_lat": -7.9405, "center_lng": 112.6565,
"grid_size": 1, "step_meters": 500, "s2_level": 14,
"target_entity": { "brand_name": "Starbucks", "auto_discover_missing": true }
}
// 1. Method & URL : POST https://radius-api.ypym.app/api/v1/spatial/analyze
// 2. Authorization: Tab Authorization → Type: Bearer Token → Token: 'ypym_radius_demo_9876543210abcdef'
// 3. Headers : Tab Headers → Content-Type: application/json
// 4. Body (raw) : Tab Body → raw → JSON
// Sample Request JSON Payload:
{
"keyword": "cafe di araya malang",
"center_lat": -7.9405, "center_lng": 112.6565,
"grid_size": 1, "step_meters": 500, "s2_level": 14,
"target_entity": { "brand_name": "Starbucks", "auto_discover_missing": true }
}
// Go 1.22+ Native Client Execution
package main
import (
"bytes", "fmt", "io", "net/http"
)
func main() {
body := []byte(`{"keyword":"cafe di araya malang","center_lat":-7.9405,"center_lng":112.6565,"grid_size":1,"step_meters":500,"s2_level":14,"target_entity":{"brand_name":"Starbucks"}}`)
req, _ := http.NewRequest("POST", "https://radius-api.ypym.app/api/v1/spatial/analyze", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer ypym_radius_demo_9876543210abcdef")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
res, _ := io.ReadAll(resp.Body)
fmt.Println(string(res))|
}
package main
import (
"bytes", "fmt", "io", "net/http"
)
func main() {
body := []byte(`{"keyword":"cafe di araya malang","center_lat":-7.9405,"center_lng":112.6565,"grid_size":1,"step_meters":500,"s2_level":14,"target_entity":{"brand_name":"Starbucks"}}`)
req, _ := http.NewRequest("POST", "https://radius-api.ypym.app/api/v1/spatial/analyze", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer ypym_radius_demo_9876543210abcdef")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
res, _ := io.ReadAll(resp.Body)
fmt.Println(string(res))|
}
// PHP / Laravel Http Client
use Illuminate\Support\Facades\Http;
$response = Http::withToken('ypym_radius_demo_9876543210abcdef')
->post('https://radius-api.ypym.app/api/v1/spatial/analyze', [
'keyword' => 'cafe di araya malang',
'center_lat' => -7.9405,
'center_lng' => 112.6565,
'grid_size' => 1,
'step_meters' => 500,
's2_level' => 14,
'target_entity' => [
'brand_name' => 'Starbucks',
'auto_discover_missing' => true,
],
]);
$data = $response->json();
print_r($data);|
use Illuminate\Support\Facades\Http;
$response = Http::withToken('ypym_radius_demo_9876543210abcdef')
->post('https://radius-api.ypym.app/api/v1/spatial/analyze', [
'keyword' => 'cafe di araya malang',
'center_lat' => -7.9405,
'center_lng' => 112.6565,
'grid_size' => 1,
'step_meters' => 500,
's2_level' => 14,
'target_entity' => [
'brand_name' => 'Starbucks',
'auto_discover_missing' => true,
],
]);
$data = $response->json();
print_r($data);|
{
"status": "success",
"keyword": "cafe di araya malang",
"brand_position": { "name": "Starbucks Araya", "rank_50m": 1, "rank_200m": 1, "rank_500m": 2 },
"top_competitors": [
{ "name": "Kopi Kenangan Plaza Araya", "distance": "140m", "rank_200m": 2 },
{ "name": "Janji Jiwa Blimbing", "distance": "220m", "rank_200m": 3 }
],
"credits_charged": 5,
"idempotency_key": "rad_araya_live_7a8b"
}
API Gateway
https://radius-api.ypym.app
Sub-second synchronous Go microservice backend
Package Registry
npm install ypym-radius
Official SDK v1.0.0 with TypeScript types
Auth & Idempotency
Bearer Token + 24h Guard
Zero double-billing on upstream network timeouts
Check token quota guide