Skip to content

Instantly share code, notes, and snippets.

@artemrys
Created July 21, 2019 23:47
Show Gist options
  • Save artemrys/d37ea96b8ce8982e0dc9e3e670775342 to your computer and use it in GitHub Desktop.
Save artemrys/d37ea96b8ce8982e0dc9e3e670775342 to your computer and use it in GitHub Desktop.
Get near coordinates
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