Extensions to the planar p-median problem