5 ms·
I'm fairly convinced the most badass part of that is that he can just do ".distinace.m" and get it in meters. Of course there are other units if you prefer: ht
by kingkilr 17y ago
I'm fairly convinced the most badass part of that is that he can just do ".distinace.m" and get it in meters. Of course there are other units if you prefer: http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/measure.py#L87 http://code.djangoproject.com/browser/django/trunk/django/co... :)
- jbronn 17y agoThe distance/area objects in GeoDjango are an under-appreciated feature. The docs have a more readable version of the supported units: http://geodjango.org/docs/measure.html#supported-units http://geodjango.org/docs/measure.html#supported-units
- lsb 17y agoRails' ActiveSupport has a similarly nifty feature, where 15.days.ago is a valid Time object, and it all just works out of the box.