movisio / jtsk-converter
Converter between JTS-K and WGS84 coordinates
Installs: 2 236
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 5
Language:JavaScript
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-03-25 03:45:31 UTC
README
Conversion example in Python
converter = JtskConverter() latlon = converter.jtsk_to_wgs84(1104335.13, 707849.38) # returns dict {'lat', 'lon'} jtsk = converter.wgs84_to_jtsk(49.582556081943, 15.015852481984) # returns dict {'x', 'y'}
Conversion example in Javascript
var converter = new JTSK_Converter(); var wgs = converter.JTSKtoWGS84(1104335.13, 707849.38); // returns object {'lat', 'lon'} var jtsk = converter.WGS84toJTSK(49.582556081943, 15.015852481984); // returns object {'x', 'y'}
Conversion example in PHP
$converter = new JTSK\Converter(); $latlon = $converter->JTSKtoWGS84(1104335.13, 707849.38); // returns array ['lat', 'lon'] $jtsk = $converter->WGS84toJTSK(49.582556081943, 15.015852481984); // returns array ['x', 'y']
Live demo
Check a live demo for examples of conversion accuracy