curl -X POST "https://plaza.fyi/api/v1/isochrone" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"time": [
900
],
"mode": "auto"
}'
const response = await fetch("https://plaza.fyi/api/v1/isochrone", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"time": [
900
],
"mode": "auto"
}),
});
const result = await response.json();
console.log(result);
import requests
response = requests.post(
"https://plaza.fyi/api/v1/isochrone",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"time": [
900
],
"mode": "auto"
},
)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
payload := "{\"time\":[900],\"mode\":\"auto\"}"
req, err := http.NewRequest("POST", "https://plaza.fyi/api/v1/isochrone", strings.NewReader(payload))
if err != nil {
panic(err)
}
req.Header.Set("X-API-Key", "YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}