Created
July 21, 2019 23:47
-
-
Save artemrys/d37ea96b8ce8982e0dc9e3e670775342 to your computer and use it in GitHub Desktop.
Get near coordinates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_near_coords(lat: float, lng: float, offset=0.1): | |
for r in [offset, -offset]: | |
yield (lat + r, lng) | |
for r in [offset, -offset]: | |
yield (lat, lng + r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment