refactoring for GeoJSONDecoder