Spaces:
Sleeping
Sleeping
Create utils.py
Browse files- services/utils.py +7 -0
services/utils.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import random
|
| 2 |
+
|
| 3 |
+
def simulate_gps_coordinates(frame_count):
|
| 4 |
+
base_lat = 17.385044 # Example: Hyderabad coordinates
|
| 5 |
+
base_lon = 78.486671
|
| 6 |
+
offset = frame_count * 0.0001
|
| 7 |
+
return [base_lat + random.uniform(-0.001, 0.001), base_lon + offset]
|