MySQL has some powerful, and perhaps underused spatial extensions, but the most interesting functions are still unimplemented: “Note: Currently, MySQL does not implement these functions…”
Among those as-yet unimplemented functions is DISTANCE()
. Alternatives can be found here and here, though neither is clean or simple. I wonder if a simple MBRContains()
is good enough, though…