Exemplo n.º 1
0
 //method to use in repo
 public void GetDataFromLocalizationPoint(LocalizationPoint localizationPoint)
 {
     this.Point         = localizationPoint.Point;
     this.Point.SRID    = 4326;
     this.PostalCode    = localizationPoint.PostalCode;
     this.Region        = localizationPoint.Region;
     this.District      = localizationPoint.District;
     this.City          = localizationPoint.City;
     this.Street        = localizationPoint.Street;
     this.Number        = localizationPoint.Number;
     this.StaticScore   = localizationPoint.StaticScore;
     this.InnerDistance = localizationPoint.InnerDistance;
     this.InnerTime     = localizationPoint.InnerTime;
     this.DynamicScore  = localizationPoint.DynamicScore;
     this.ParentPointId = localizationPoint.ParentPointId;
 }
 //method to use in repo
 public void GetDataFromLocalizationPoint(LocalizationPoint localizationPoint)
 {
     //X is longitude, Y is latitude in NetTopologySuite.Geometries.Coordinate Class
     this.Point         = new Point(new Position(localizationPoint.Point.Coordinate.Y, localizationPoint.Point.Coordinate.X));
     this.PostalCode    = localizationPoint.PostalCode;
     this.Region        = localizationPoint.Region;
     this.District      = localizationPoint.District;
     this.City          = localizationPoint.City;
     this.Street        = localizationPoint.Street;
     this.Number        = localizationPoint.Number;
     this.StaticScore   = localizationPoint.StaticScore;
     this.InnerDistance = localizationPoint.InnerDistance;
     this.InnerTime     = localizationPoint.InnerTime;
     this.DynamicScore  = localizationPoint.DynamicScore;
     this.ParentPointId = localizationPoint.ParentPointId;
 }