@XanderBakker how are you determining the value "6378137.0"?
I am trying to use this NICE! Function you created but I think I am missing this portion.
Im trying to convert x/y NAD83 New Jersey State Plane(EPSG:3424) coordinates to WGS84(EPSG:4326)
here is an example of the x/y coordinates:
x = 570384, y= 475445
I should get the following in lat/lon
-74.2201199 (long), 40.13836 (lat)