mapbox / geojsonhint

IMPORTANT: This repo will be archived. Use @placemarkio/check-geojson instead
ISC License
258 stars 37 forks source link

MultiPolygon type for a Point feature breaks geojsonhint #39

Closed mcwhittemore closed 8 years ago

mcwhittemore commented 8 years ago

An error is thrown when MultiPolygon type is provided to a Point feature.

Uncaught TypeError: coords.forEach is not a function

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          -0.087890625,
          51.56341232867588
        ]
      }
    }
  ]
}