Was'nt sure of the title, but I have this task which I am having trouble with.
I have a List downloaded from a WCF service.
ie:
List<Stops_edited_small> StopsList = new List<Stops_edited_small>(e.Result);
The list has several items
two being:
LatitudeField
LongitudeField
Basically, what I need to do is make a Geocoordinate value for each record in the list by doing this:
GeoCoordinate(Convert.ToDouble(LatitudeField), Convert.ToDouble(LongitudeField));
Then add the Geocoordinate value in each record in a new List which I can then use.
Make sense? I am not sure on how I would go about this. Would i need some kind of foreach loop to do the Geocoordinate conversion on my original list someone? Would i have to convert it into a class first to do this?
Thanks, any help or thinking welcome.
(EDIT: just to add this is on windows phone, so .net 4 is available)