C# Geographic/UTM Coordinate Converter Class
This class allows for converting between Geographic (Latitude and Longitude) to UTM (X and Y positions) and vice-versa. Using the GPS on WP7 returns Latitude and Longitude coordinates while the JSON API provided by Trafikanten utilizes X and Y positions.
Using the class is very simple; first you have to import the namespace
and to convert to UTM you can type
[box]GeoUTMConverter gutmConverter = new GeoUTMConverter();
or the other way around
[box]gutmConverter.ToLatLon(X, Y, Zone, Hemisphere.Northern|Hemisphere.Southern)[/box]
That’s all there is to it.
Download source: GeoUTMConverter.cs
[box icon="info"]Copyright 1997-1998 by Charles L. Taylor