Created
October 8, 2013 15:01
-
-
Save jondjones/6886108 to your computer and use it in GitHub Desktop.
Alterian ACM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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