Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadar/swiss-coordinates
Converter for Swiss-Coordinates and WGS-Coordinates.
https://github.com/nadar/swiss-coordinates
coordinates geodetic schweiz wgs
Last synced: 29 days ago
JSON representation
Converter for Swiss-Coordinates and WGS-Coordinates.
- Host: GitHub
- URL: https://github.com/nadar/swiss-coordinates
- Owner: nadar
- Created: 2016-04-18T08:43:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T12:49:06.000Z (over 6 years ago)
- Last Synced: 2024-08-23T01:42:16.660Z (3 months ago)
- Topics: coordinates, geodetic, schweiz, wgs
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Convert WGS (Word Geodetic System) coordinates into CH (Swiss-Coordinates) and vice versa.
====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:
```php
use swisscoordinates\Converter;echo Converter::CHtoWGSlat(679520, 212273); // 47.056709
echo Converter::CHtoWGSlong(679520, 212273); // 8.485306
```