I'm trying to come up with a function where...
Input: Geodesic distance in miles or km
Output: The euclidean distance between any two gps points that are the input distance apart
I feel like I have some of the components
import numpy as np
from numpy import linalg as LA
from geopy.distance import geodesic
loc1 = np.array([40.099993, -83.166000])
loc2 = np.array([40.148652, -82.903962])
This is the euclidean distance between those two points
LA.norm(loc1-loc2)
#0.2665175636332336
This is the geodesic distance in miles between those two points
geodesic(loc1,loc2).miles
#14.27909749425243
My brain is running low on juice right now, anyone have any ideas on how I can make a function like:
geodesic_to_euclidean(14.27909749425243)
#0.2665175636332336