public override string ToString() { GeoMode geolocation_Encoding = this.encoding; if (geolocation_Encoding == GeoMode.GEO) { return("Geo :" + this.latitude + "," + this.longitude); } if (geolocation_Encoding != GeoMode.GoogleMaps) { return("Geo :"); } return("http://maps.google.com/maps?q=" + this.latitude + "," + this.longitude); }
public Geolocation(string latitude, string longitude, GeoMode encoding = GeoMode.GEO) { this.latitude = latitude.Replace(",", "."); this.longitude = longitude.Replace(",", "."); this.encoding = encoding; }