# Get Latitude and Longitude from GeoLocation

**URL:** <https://forum.ionicframework.com/t/get-latitude-and-longitude-from-geolocation/62233>\
**Category:** ionic-v1\
**Created:** [August 31, 2016, 11:25pm UTC](https://forum.ionicframework.com/t/get-latitude-and-longitude-from-geolocation/62233 "2016-08-31T23:25:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gulyfurlan](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@gulyfurlan](https://forum.ionicframework.com/u/gulyfurlan)\
**Post date:** [August 31, 2016, 11:25pm UTC](https://forum.ionicframework.com/t/get-latitude-and-longitude-from-geolocation/62233/1 "2016-08-31T23:25:39Z")

</div>

How Can I Get a latitude and longitude of the User and display alert huh? already added the plugion do cordova .

---

<div class="post-metadata">

**Author:** ![harith5757](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/harith5757/32/100263_2.png) [@harith5757](https://forum.ionicframework.com/u/harith5757)\
**Post date:** [September 1, 2016, 7:11am UTC](https://forum.ionicframework.com/t/get-latitude-and-longitude-from-geolocation/62233/2 "2016-09-01T07:11:40Z")

</div>

```
navigator.geolocation.getCurrentPosition(function(pos){
			alert(pos.coords.latitude + ',' + pos.coords.longitude)
		},function(err){
		
		});
```
