AnyPlace.MainPage.intobuilding C# (CSharp) Method

intobuilding() private method

private intobuilding ( ) : bool
return bool
        private bool intobuilding()
        {
            if (_allbuildingfloors != null)
            {

                foreach (var obj1 in _allbuildingfloors.floors)
                {
                    var BBox = new GeoCoordinatesHelper(obj1.top_right_lat, obj1.top_right_lng, obj1.bottom_left_lat, obj1.bottom_left_lng);

                    //BBox.IncreaseBoundingBox(500);

                    var top_right_lat = BBox.NeLat;
                    var top_right_lon = BBox.NeLon;
                    var bottom_left_lat = BBox.SwLat;
                    var bottom_left_lon = BBox.SwnLon;

                    if (_myLatitude > bottom_left_lat && _myLatitude < top_right_lat &&
                      _myLongitude > bottom_left_lon &&
                      _myLongitude < top_right_lon)
                    {
                        return true;
                    }
                }

            }
            return false;
        }
MainPage