feat: implement Bari bounds validation and update UI components for admin panel
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export const BARI_BOUNDS = {
|
||||
south: 41.0160584,
|
||||
north: 41.1697837,
|
||||
west: 16.7172376,
|
||||
east: 17.0334109,
|
||||
}
|
||||
|
||||
export const BARI_CENTER: [number, number] = [41.1257843, 16.8620293]
|
||||
|
||||
export const isWithinBariBounds = (latitude: number, longitude: number) =>
|
||||
latitude >= BARI_BOUNDS.south &&
|
||||
latitude <= BARI_BOUNDS.north &&
|
||||
longitude >= BARI_BOUNDS.west &&
|
||||
longitude <= BARI_BOUNDS.east
|
||||
|
||||
Reference in New Issue
Block a user