Skip to content

Instantly share code, notes, and snippets.

@jondjones
Created October 8, 2013 15:01
Show Gist options
  • Save jondjones/6886108 to your computer and use it in GitHub Desktop.
Save jondjones/6886108 to your computer and use it in GitHub Desktop.
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();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment