using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSamples.Entities;
using WebSamples.Entities.Interfaces;

namespace WebSamples.Repositories.Translators
{
    public static class GeoCityTranslator
    {
        #region Translation methods

        public static IGeoCity ToServiceEntity(GeoPoint point)
        {
            return new GeoCity()
            {
                CityName = point.Title,
                CityInformation = "Pop: " + point.Population.ToString(),
                Latitude = point.Latitude,
                Longitude = point.Longitude,
                DemographicInformation = point.Population
            };
        }

        #endregion
    }
}
