mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Addded initial heatmap rendering
This commit is contained in:
parent
15b14a32e8
commit
058b120ce9
3 changed files with 158 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as Location from "expo-location";
|
||||
import { GetStudentStatus } from "../components/Api/Api";
|
||||
import { Float } from "react-native/Libraries/Types/CodegenTypes";
|
||||
|
||||
export interface IconProps {
|
||||
size: number;
|
||||
|
@ -124,8 +125,8 @@ export interface PatchUserInfoType {
|
|||
}
|
||||
|
||||
interface Location {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
latitude: Float;
|
||||
longitude: Float;
|
||||
}
|
||||
|
||||
export interface StudentStatusType {
|
||||
|
@ -136,9 +137,19 @@ export interface StudentStatusType {
|
|||
active?: boolean;
|
||||
}
|
||||
|
||||
export interface StudentStatusFilterType {
|
||||
active: boolean;
|
||||
distance: number;
|
||||
landmark: string | null;
|
||||
location: Location;
|
||||
study_group?: string;
|
||||
subject: string;
|
||||
user: string;
|
||||
}
|
||||
|
||||
export type StudentStatusReturnType = [boolean, StudentStatusType];
|
||||
|
||||
export type StudentStatusListType = Array<StudentStatusType>;
|
||||
export type StudentStatusListType = Array<StudentStatusFilterType>;
|
||||
export type StudentStatusListReturnType = [boolean, StudentStatusListType];
|
||||
|
||||
export type LocationType = Location.LocationObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue