Example #1
0
        public PlaceDto(OsmPlace osmPlace)
        {
            Id = osmPlace.PlaceId;
            Name = osmPlace.Namedetails?.Name;
            DisplayName = osmPlace.DisplayName;
            Coordinate = osmPlace.Lat.HasValue && osmPlace.Lon.HasValue
                ? new CoordinateDto(osmPlace.Lat, osmPlace.Lon)
                : null;

            if (osmPlace.Address != null)
            {
                Address = new AddressDto(osmPlace.Address);
            }
        }