(location=None, maxMeters=70)
| 52 | |
| 53 | |
| 54 | def getRandomPoint(location=None, maxMeters=70): |
| 55 | origin = geopy.Point(location[0], location[1]) |
| 56 | b = randint(0, 360) |
| 57 | d = math.sqrt(random()) * (float(maxMeters) / 1000) |
| 58 | destination = VincentyDistance(kilometers=d).destination(origin, b) |
| 59 | return (destination.latitude, destination.longitude) |
| 60 | |
| 61 | |
| 62 | # TODO: This method is suuuuper inefficient. |
no outgoing calls
no test coverage detected