mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-04 22:46:53 +02:00
add operators
This commit is contained in:
1 parent
61d27c1b0f
commit
6c5f95a180
6 files changed
+137
-7
No files matched your search
@@ -71,6 +71,12 @@ export const getClusters = async () => {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export const getCities = async () => {
|
||||
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/flock_cameras.json";
|
||||
const response = await apiService.get(s3Url);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
export const geocodeQuery = async (query: string, currentLocation: any) => {
|
||||
const encodedQuery = encodeURIComponent(query);
|
||||
const results = (await apiService.get(`/geocode?query=${encodedQuery}`)).data;
|
||||
|
||||
Reference in new issue
Block a user