16 lines
398 B
TypeScript
16 lines
398 B
TypeScript
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
|
|
|