Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def generate_poi(lati, long):
- u = random.uniform(0.1,1.0)
- v = random.uniform(0.1,1.0)
- r = 200/111139
- w = r * math.sqrt(u)
- t = 2 * math.pi * v
- x = w * math.cos(t)
- y = w * math.sin(t)
- gen_lati = lati+x
- gen_long = long+y
- return gen_lati, gen_long
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement