check type of coordinates