Uniformly random coordinates land in the ocean roughly seventy per cent of the time, which makes for a strange-looking map. The land mode clusters points near real cities, so pins fall where a reviewer expects to see them.
What you can control
- Land mode scatters points within a few kilometres of real populated places.
- Custom bounding boxes take
minLng,minLat,maxLng,maxLat, the same order GeoJSON uses. - Four output formats, including GeoJSON points ready to drop into a
FeatureCollection. - Precision is adjustable from one to eight decimal places — six is about a metre.
Testing ideas
- Hemispheres. Generate anywhere on Earth to get negative latitudes and longitudes, which find sign errors in mapping code.
- Formats. Compare decimal degrees, DMS and GeoJSON — and remember GeoJSON orders longitude before latitude.
- Bounding boxes. Use a custom box to cluster points in your service area for map tests.
- Precision. Six decimal places is about 10 cm; check your database column does not round it away.
What this is not
GeoJSON puts longitude before latitude, and almost every other format does the opposite. That reversal is the most common bug in mapping code, so check which one your consumer expects.