A path GeoJSON layer can display data like trip routes or contours. Stroke color can be set with a numerical field.
A polygon GeoJSON layer is essentially a choropleth layer and works best for rendering geofences. Fill color or height can be set with a numerical field. For example, it can display population by census tracts.
To add a polygon layer, your dataset must contain geometry data.