Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
How to convert MGRS to Lat Long?

I was looking at geodesy's library, but it seems buggy since the parser breaks using the wikipedia examples.

For example, Wikipedia's "4QFJ 12345 67890" value throws an error, because the first two characters are not a number.

Here is the Wikipedia article for reference. https://en.wikipedia.org/wiki/Military_Grid_Reference_System

I also saw https://github.com/codice/usng.js/ but it only has lat Lon to MGRS. Is there a library that already does this conversion?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

What I gather from looking at the source code of the library is that MGRS is assumed to be the same as USNG but without spaces. When you call the LLtoMGRS function, behind the scenes all the library is doing is removing the spaces and calling the LLtoUSNG function. The library does have a USNGtoLL function, so I assume if you remove the spaces from the MGRS, you can just call the USBGtoLL function? Alternatively, this exists https://github.com/proj4js/mgrs I've not used it but it says that it converts both way between LL and MGRS

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda