Search notices
curl --request GET \
--url https://api.campflare.com/v2/notices/searchimport requests
url = "https://api.campflare.com/v2/notices/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.campflare.com/v2/notices/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.campflare.com/v2/notices/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.campflare.com/v2/notices/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.campflare.com/v2/notices/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.campflare.com/v2/notices/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"notices": [
{
"id": "<string>",
"title": "<string>",
"source": {
"name": "<string>",
"url": "<string>"
},
"description": "<string>",
"kind": "weather",
"severity": "info",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"geometry_summary": {
"kind": "point",
"point": {
"latitude": 123,
"longitude": 123
},
"bbox": {
"min_latitude": 123,
"max_latitude": 123,
"min_longitude": 123,
"max_longitude": 123
}
},
"target": {
"kind": "campground",
"id": "<string>"
},
"geometry": {}
}
]
}{
"error": {
"message": "<string>",
"kind": "<string>"
}
}Notices
Search Notices
Search notices
Search notices
curl --request GET \
--url https://api.campflare.com/v2/notices/searchimport requests
url = "https://api.campflare.com/v2/notices/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.campflare.com/v2/notices/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.campflare.com/v2/notices/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.campflare.com/v2/notices/search"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.campflare.com/v2/notices/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.campflare.com/v2/notices/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"notices": [
{
"id": "<string>",
"title": "<string>",
"source": {
"name": "<string>",
"url": "<string>"
},
"description": "<string>",
"kind": "weather",
"severity": "info",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"geometry_summary": {
"kind": "point",
"point": {
"latitude": 123,
"longitude": 123
},
"bbox": {
"min_latitude": 123,
"max_latitude": 123,
"min_longitude": 123,
"max_longitude": 123
}
},
"target": {
"kind": "campground",
"id": "<string>"
},
"geometry": {}
}
]
}{
"error": {
"message": "<string>",
"kind": "<string>"
}
}GET /notices/search
Query Parameters
Latitude,Longitude (e.g. 37.74,-119.59). Returns notices whose geometry intersects this point. Mutually exclusive with bbox.
Pattern:
^-?\d+\.\d+,-?\d+\.\d+$Bounding box in minLon,minLat,maxLon,maxLat order (WGS-84). Returns notices that intersect the box. Mutually exclusive with point.
Pattern:
^-?\d+\.\d+,-?\d+\.\d+,-?\d+\.\d+,-?\d+\.\d+$Comma-separated list of notice kinds to include (weather, fire, closure, safety, access).
Comma-separated list of severities to include (info, minor, moderate, severe, extreme).
If true, embed full GeoJSON geometry in each notice. Defaults to false.
Response
Search response
Show child attributes
Show child attributes