Implemented GEOSNearestPoints function.