using System;
using System.Device.Location;
namespace GPSlonandlat
{
public static class GeoLocation
{
public static double geoloclon { get; set; }
public static double geoloclat {get;set;}
static GeoLocation()
{
GeoCoordinate coordinate = new GeoCoordinate();
geoloclon = coordinate.Longitude;
geoloclat = coordinate.Latitude;
}
}
}
geoloclon and geoloclat gets 'NaN'.. i am getting empty..
Note: i am running this project in local host. may be if i run in local host, i will be getting longitude and latitude to be empty.
Go to the complete details ...