File size: 536 Bytes
a517b11
98596a8
a517b11
 
98596a8
a517b11
98596a8
a517b11
98596a8
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import random
import math

def simulate_gps_coordinates(frame_count):
    base_lat = 17.385044  # Hyderabad coordinates
    base_lon = 78.486671
    # Simulate a more realistic movement pattern (e.g., a slight curve)
    offset = frame_count * 0.0001
    lat_offset = math.sin(frame_count * 0.01) * 0.0005  # Add sinusoidal variation
    lon_offset = offset + math.cos(frame_count * 0.01) * 0.0003
    return [base_lat + lat_offset + random.uniform(-0.0002, 0.0002), 
            base_lon + lon_offset + random.uniform(-0.0002, 0.0002)]