Geospatial data type

How does MongoDB identify that a data type is geospatial rather than just an array with 2 decimal values in it? Is it the use of the key name ‘coordinates’?

There are a couple different ways to specify geospatial data as per the documentation.