SkillAgentSearch skills...

Coordinates

Convert UTM to LatLong and vice versa

Install / Use

/learn @maroofi/Coordinates
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

coordinates

// Convert UTM to LatLong and vice versa.

Usage:

<?php  

  require_once("coordinates.php");   

  echo ll2utm(36.311665575277935,59.55385813725379);   

  echo "<br/>";   
  
  echo utm2ll(729286.9550018794,4021544.8279992654,40,true);   
  
?>   
/*  
  output:  
  {"success":true,"attr":{"x":729286.95500188,"y":4021544.8279993,"zone":40,"aboveEquator":true}}  
  {"success":true,"attr":{"lat":36.311665575271,"lon":59.553858137274}}  
*/  

Functions

utm2ll() --> This function convert UTM to Lat and long.

ll2utm() --> This function convert LatLong to UTM.

Reference: based on the javascript code: http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html

Related Skills

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated3y ago
Forks7

Languages

PHP

Security Score

60/100

Audited on Feb 8, 2023

No findings