Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdecker-mobilecomputing/ionic_geografischeentfernung

Ionic app to demonstrate use of a plugin to retrieve current geographic location.
https://github.com/mdecker-mobilecomputing/ionic_geografischeentfernung

ionic plugin

Last synced: 5 days ago
JSON representation

Ionic app to demonstrate use of a plugin to retrieve current geographic location.

Awesome Lists containing this project

README

        

# Ionic-App "Entfernungsberechung" (Distance Calculation) #


Simple [Ionic](https://ionicframework.com) app that tries to obtain current (GPS) location
from device and the calculates the distance to a hard-coded coordinate.


----

## Plugin for locating ##


Add plugin [geolocation](https://ionicframework.com/docs/native/geolocation) for GPS locating:

````
ionic cordova plugin add cordova-plugin-geolocation

npm install @ionic-native/geolocation
````

Add `Geolocation` to array `providers` in file [src/app/app.module.ts](src/app/app.module.ts).


----

## Stand-alone program for testing distance calculation ##


Stand-alone programm for test of distance calculation:
[DistanzZwischenZweiKoordinaten.js](DistanzZwischenZweiKoordinaten.js)

````
node DistanzZwischenZweiKoordinaten.js
````


----

## Screenshots ##


![Screenshot 1](screenshot_1.png) ![Screenshot 2](screenshot_2.png)


----

## License ##


See the [LICENSE file](LICENSE.md) for license rights and limitations (BSD 3-Clause License)
for the files in this repository.