I'm trying to implement google map with marked locations while taking zip, city state street address from database
((iTS NOT WORKING) hOW i can do it in a good way)
This is how I'm doing
Created a address class
public class Address
{
public string Description { get; set; }
public double Longitude { get; set; }
public double Latitude { get; set; }
}
//HERE IS THE CONTROLLER
public class GoogleMapController : Controller
{
//
// GET: /GoogleMap/
public ActionResult Index()
{
var db= new edcEntities();
var userAddress = db.JobSites.AsQueryable().ToList().Select(
u => new JobSite()
{
Street_Address = u.Street_Address,
City = u.City,
StateCode = u.StateCode,
...
Go to the complete details ...