4 ms·
In the demo wombats code, shouldn't 'miles' be in a constant somewhere? That seem messy.
by elinchrome 12y ago
In the demo wombats code, shouldn't 'miles' be in a constant somewhere? That seem messy.
- uptown 12y agoThe source has awareness of miles, kilometers, radians, and degrees as units of measure. Passing it in the demo is just specifying which one you're expecting results to use in its calculations.
- maxerickson 12y agoDoes it just punt on miles<->longitude? I looked at the code some and don't see where it would ever deal with projections. (jsts mentions coordinates systems in comments, but I don't where it ever does anything about them)
- morganherlocker 12y agoWgs84 data is assumed for distance calculations. If you need to convert your data on the fly, I typically recommend proj4js.
- maxerickson 12y agoI'm talking about buffering and such, "1 mile" isn't a sensible measure in latlong. I didn't carefully analyze the code, so maybe I'm just missing something.
- ldng 12y agoMaybe you could document that more explicitly. Basically defining the scope of the project and where to look for complementary tools like proj4js and rbush for instance.