Duplicates:
- How do I convert coordinates to a Latitude & Longitude?
- How to convert from UTM to LatLng in python or Javascript2
My current project is interfacing with a central geocoding service published by the local city planning department. The service is designed primarily for surveying, and as such returns coordinates in a UTM X-Y format. My system stores coordinates as decimal latitude and longitude for integration with Google Earth and other mapping tools.
I'd like to come up with an algorithm for converting from X-Y to latitude and longitude for all cases. I have not been able to locate any texts describing the conversion; the most I've been able to find via Google is raw source code in the form of Excel Visual Basic and FORTRAN. I believe a useful general solution would be beneficial to the community at large.