nadar/swiss-coordinates

Converting swiss coordinates to Lat/Long global coordinates.

Installs: 662

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nadar/swiss-coordinates

1.0.0 2016-05-31 16:33 UTC

This package is auto-updated.

Last update: 2025-10-06 12:26:30 UTC


README

Wrapper class with composer support based on http://www.swisstopo.admin.ch/internet/swisstopo/de/home/products/software/products/skripts.html

Informations about coordinates:

  • Lat/Long = Latitude And Longitude
  • WGS = Word Geodetic System
  • Lat = Y-Axis
  • Long = X-Axis

Example swiss coordinates:

  • Rigi: Y = 679520, X = 212273
  • Zürich-Seebach: Y = 684592, X = 252857

Installation

composer require nadar/swiss-coordinates

Usage example:

use swisscoordinates\Converter;

echo Converter::CHtoWGSlat(679520, 212273); // 47.056709
echo Converter::CHtoWGSlong(679520, 212273); // 8.485306