lokesh341 commited on
Commit
1e0cac2
·
1 Parent(s): 18e1ecc

Update services/utils.py

Browse files
Files changed (1) hide show
  1. services/utils.py +1 -2
services/utils.py CHANGED
@@ -1,8 +1,7 @@
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]
 
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]