The GeoJSON spec says that positions should be decimal values.
And the java driver correctly expects a BsonDouble .
However, mongod, allows one to index geometries with integer positions when a geo spatial index is defined.
I am not convinced that it should be okay to deserialize integral positions, but assuming one has them indexed in mongo, they won't be able to use codecs to read them.