jondjones
10/8/2013 - 3:01 PM

Alterian ACM

Alterian ACM

location = CallGeoTaggingService(address);  
  
if (location != null)  
{  
    var dp = new DataProvider(ReturnFields.All);  
    var itemToEdit = dp.GetItem(itemUrl);  
  
    if (itemToEdit.Editable)  
    {  
          itemToEdit.ForceEditState();  
          itemToEdit.setFieldValue("latitude", location.Latitude);  
          itemToEdit.setFieldValue("longitude", location.Longitude);  
  
          itemToEdit.saveChanges();  
     }  
}