Spaces:
Sleeping
Sleeping
Create utils.py
Browse files- services/utils.py +8 -0
services/utils.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import random
|
| 2 |
+
|
| 3 |
+
def simulate_gps_coordinates(frame_count):
|
| 4 |
+
# Simulate GPS coordinates for a road (e.g., along a straight path)
|
| 5 |
+
base_lat = 17.385044 # Example: Hyderabad coordinates
|
| 6 |
+
base_lon = 78.486671
|
| 7 |
+
offset = frame_count * 0.0001 # Small increment for simulation
|
| 8 |
+
return [base_lat + random.uniform(-0.001, 0.001), base_lon + offset]
|