I have started making a flat earth version of this. Here is some code to setup the space… with these variables you should be able to find the lat long of blender x y position. Something is still screwy with the math but it’s real close. I don’t think I am calculating x and y properly with x = d * cos(heading) & y = d * sin(heading). d=distance

```
import Blender
from Blender import NMesh
import math
from math import *
#bounding coordinates
lat1 = 41.0
long1 = 70
lat2 = 41.5
long2 = 70.5
# this should be the average of the bounding coordinates or for tracks the average of extreme 2 values
originlat = (lat1 + lat2)/2
originlong = (long1 + long2)/2
## effort to calculate xy of region 1 bounding coordinate using distance, bearing, and xy result
R = 6372.795477598; # earth's mean radius in km
dlat = lat1 - originlat
dlong = long1 - originlong
a = sin(dlat/2) * sin(dlat/2) + cos(lat1) * cos(lat1) * sin(dlong/2) * sin(dlong/2)
c = 2 * atan2(sqrt(a), sqrt(1-a))
d = R * c
heading = atan2( sin(dlong)*cos(lat2), cos(lat1)*sin(lat2) - sin(lat1)*cos(lat2)*cos(dlong) )
x = d * cos(heading)
y = d * sin(heading)
##draw bounding box
boundry = NMesh.GetRaw()
v=NMesh.Vert(x,y,0.0)
boundry.verts.append(v)
v=NMesh.Vert(-x,y,0.0)
boundry.verts.append(v)
v=NMesh.Vert(-x,-y,0.0)
boundry.verts.append(v)
v=NMesh.Vert(x,-y,0.0)
boundry.verts.append(v)
f=NMesh.Face()
f.v.append(boundry.verts[0 ])
f.v.append(boundry.verts[1 ])
f.v.append(boundry.verts[2 ])
f.v.append(boundry.verts[3 ])
boundry.faces.append(f)
NMesh.PutRaw(boundry, " plane", 1)
Blender.Redraw()
```