I have a problem which draws my back in some project for some time now.
Im basically looking to trap a polygon using x,y points drawn by some script ive written.
lat1,lon1 are the center gps cords of the polygon and im looking for its surrounding polygon.
here is a part of my code in python:
Why don't you use nice libraries?
from geopy import Point from geopy.distance import distance, VincentyDistance # given: lat1, lon1, bearing, distMiles lat2, lon2 = VincentyDistance(miles=distMiles).destination(Point(lat1, lon1), bearing)
For lat1, lon1, distMiles, bearing = 42.189275,-76.85823, 0.5, 30 it returns 42.1955489, -76.853359.