Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Geojson Random | 64 | 148 | 14 | 3 years ago | 7 | January 29, 2019 | 3 | JavaScript | ||
Generate random GeoJSON features. | ||||||||||
Random Points Generator | 13 | 2 | 11 days ago | 16 | January 26, 2023 | 1 | mit | JavaScript | ||
Generates random points | ||||||||||
Json Api Generator | 13 | 8 years ago | JavaScript | |||||||
Generates json api endpoints from templates | ||||||||||
Turf Random | 4 | 9 years ago | 1 | JavaScript | ||||||
Generates random GeoJSON data for testing purposes | ||||||||||
Randgeojson | 3 | 8 years ago | C | |||||||
Fast random geographic coordinates (Lat/Lon) generator (Output stored in GeoJSON format). Software library developed with C but Python accessible through Cython. | ||||||||||
Random Coordinates | 3 | 8 years ago | mit | JavaScript | ||||||
Generate a random coordinates, which are latitude and longitude, comma separated. | ||||||||||
Randompositioninpolygon | 2 | a year ago | mit | JavaScript | ||||||
Return random position inside geoJson Feature<(Polygon|MultiPolygon)>. (npm package) | ||||||||||
Random Geojson Stream | 2 | 9 years ago | JavaScript | |||||||
Stream that emits random GeoJSON Point features |
Return random position inside geoJson Feature<(Polygon|MultiPolygon)>
.
See Turf.js
npm install random-position-in-polygon
# OR
yarn add random-position-in-polygon
randomPositionInPolygon(polygon: Feature<(Polygon|MultiPolygon)>): Array<number>
polygon
: geoJson Feature<PolygonMultiPolygon>
or geoJson Feature<MultiPolygon>
position
: {Array<number>}
Position [longitude, latitude]const randomPositionInPolygon = require('random-position-in-polygon');
const polygon = `{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[
[0, 0.0], [10.0, 0.0], [10, 20],
[0.0, 20], [0, 0.0] ]]
}
}`
const positionRandom = randomPositionInPolygon(JSON.parse(polygon))
under MIT license