Hi I am working with google maps for the first time... I am getting lattitude and longitude but I want them to be converted to northing and easting using javascript and I can't find any approch for it...
Asked
Active
Viewed 1,503 times
2 Answers
0
A related question was asked here Convert Eastings/ Northings to Longitude/ Latitude?
By following the link in one of the comments, I managed to find this, which may be useful to you. http://www.uwgb.edu/dutchs/UsefulData/ConvertUTMNoOZ.HTM (See the source for the in-line js and ask for permission if you want to use it).

Kevin Lee
- 2,307
- 26
- 31
0
As JLRishe said, You can use proj4js to convert lonlat from google maps projection to utm.
Source projection is EPSG:3857 (Google Maps projection)
Your target projection should be like this
"+proj=utm +zone=<zone number> +ellps=WGS84 +datum=WGS84 +units=m"
Here is algorithm that calculates zone number.
Or you can convert point to MGRS and take first 1-2 numbers and first letter.
var zone_number = new proj4.Point([lon,lat]).toMGRS().match(/\d{1,2}[A-Z]{1}/)