ALPR Stats (#2)

* set up lambda to get total ALPR counts

* show total counts on map, updated hourly
This commit is contained in:
Will Freeman
2024-11-20 14:49:19 -06:00
committed by GitHub
parent 6bb2c1ea99
commit 0d062296a3
9 changed files with 215 additions and 175 deletions
+6
View File
@@ -65,6 +65,12 @@ export const getALPRs = async (boundingBox: BoundingBox) => {
return response.data;
}
export const getALPRCounts = async () => {
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/alpr-counts.json";
const response = await apiService.get(s3Url);
return response.data;
}
export const getClusters = async () => {
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/alpr_clusters.json";
const response = await apiService.get(s3Url);