Skip to content

Returns the coordinates and description for a region's pin

GET
/api/region/{regionId}/pin

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

regionId*
Typestring
Required

Responses

Success
JSON
{
"lat": 52.5,
"lon": 13.4,
"description": "string",
"status": 0
}
Authorization
api_key
Variables
Key
Value
regionId*
cURL
curl -X GET \
'http://localhost/api/region/{regionId}/pin'

Samples

cURL
curl -X GET http://localhost/api/region/{regionId}/pin
JavaScript
fetch("http://localhost/api/region/{regionId}/pin")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/region/{regionId}/pin");
Python
import requests
response = requests.get("http://localhost/api/region/{regionId}/pin")
print(response.json())