I found THIS in the forums and I was wondering if there is a way to do the same but from NAD27 (WKID 4267) to web mercator. I tried changing that code; but the only thing I recognize there is the WGS84 curvature (6378137.0) and the radians per degree constant (0.017453292519943295). After changing those with the information for NAD27 the points get closer to where they need to be; but still off. I am not sure how to modify the rest. Any help would be appreciated.