This tool generates valid GeoJSON — a FeatureCollection of random Point, LineString, or Polygon features with fake property data — for testing mapping libraries without hand-writing fixtures. The output follows RFC 7946 exactly, including the spec’s longitude-first coordinate order and properly closed polygon rings.
How it works
GeoJSON wraps geometry in Feature objects, which are collected into a FeatureCollection. The tool builds each feature around the center point you provide:
- Point — a single
[lon, lat]position jittered near the center. - LineString — a chain of 2 to 5 connected positions that wander from the center.
- Polygon — a ring of vertices placed around the center on a small circle, with the first vertex repeated at the end to close the ring as the spec requires.
Each feature also receives a properties object with an id, name, category, numeric value, and active flag so you can exercise popups, styling, and filtering.
Tips and notes
- Always remember GeoJSON positions are
[longitude, latitude]— the reverse of how people usually say coordinates aloud. - Set the center to your map’s focus area so the random features render inside the visible viewport.
- Use Mixed mode to confirm your renderer handles all three geometry types in a single collection.