Example #1
0
        private int find_location_id(SNote note)
        {
            int    location_id = 0;
            string landmark    = find_landmark(note);

            if (landmark != "")
            {
                try { location_id = Convert.ToInt32(landmark.Substring(Configurations.GetSiteNameForServer().Length + "landmark".Length + 1)); }
                catch (Exception) { location_id = Configurations.FindLocationID(note.latitude, note.longitude); }
            }
            else
            {
                location_id = Configurations.FindLocationID(note.latitude, note.longitude);
            }
            return(location_id);
        }