GeoCoord: added out-of-bounds checking