shape_invalid (400)
A shape sent as location.shape (a search or a map) or as geometry (a saved shape) is not
one closed ring that can be searched. field names where it came in and reason what was
wrong:
reason |
Meaning |
|---|---|
not_a_polygon |
not a GeoJSON object of type: "Polygon" with coordinates |
holes_not_allowed |
more than one ring |
bad_coordinate |
a position that isn't exactly [longitude, latitude] inside ±180 and ±90 |
not_closed |
the last position doesn't repeat the first |
too_few_vertices |
fewer than three corners |
self_intersecting |
the ring crosses or touches itself |
The error never repeats a coordinate. See drawn shapes.
Fix: send one closed ring of [longitude, latitude] positions that doesn't cross itself.